Code formatter
Format HTML, CSS, JavaScript, TypeScript, JSON, Markdown and YAML with Prettier, right in your browser, with indent and quote options.
Questions
Is this the real Prettier?
Yes. It runs Prettier's official standalone build with its parsers for each language, so the output matches Prettier with the same options. The parsers load the first time you format.
Why does it say my code has an error?
Prettier has to parse code before it can lay it out, so it stops on syntax errors and reports the line and column. Fix that spot, or check that the right language is selected.
Is my code uploaded?
No. Formatting happens in your browser and the page makes no network requests with your code.