Format JavaScript and JSX with Prettier without executing the code.
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.
Tool page updated: 2026-09-27