Skip to content

JavaScript Formatter

Format JavaScript and JSX with Prettier without executing the code.

Input

30 chars1 lines

Result

Type or paste on the left — the result updates as you type.

Uses the Babel parser, two-space indentation and an 80-column target. TypeScript syntax is outside this tool’s parser.

Up to 100,000 UTF-16 units per input and 1,000,000 per result. See the supported formats and examples below.

Format references

Tool page updated: