Code Tower · room 26
Code Formatter (Prettier)
Format JavaScript, TypeScript, CSS, HTML, Markdown, YAML and GraphQL.
🔒 Processed in your browser · No upload · No sign-up
Format code with Prettier — in your browser
Paste messy or minified code and format it with Prettier, the opinionated formatter used by millions of projects. Supports JavaScript, TypeScript, JSX, JSON, CSS, SCSS, Less, HTML, Vue, Markdown, YAML and GraphQL, with the same options you'd put in a .prettierrc.
Why is my code not formatting?
Prettier has to parse your code first, so a syntax error (a missing bracket, a stray comma) stops formatting. The error message shows the line and column — fix it there and the output updates automatically. Make sure the selected language matches your code.
Is it the same as running Prettier locally?
Yes — this page runs the official Prettier 3 standalone build. Each language's parser is downloaded the first time you use it, and your code never leaves your device.