Formats JS, TS, JSON, CSS, HTML and Markdown with Prettier.
The Code Formatter runs Prettier in your browser to clean up and beautify source code with consistent indentation and style. It supports JavaScript, TypeScript, JSON, CSS, SCSS, LESS, HTML and Markdown, so you can paste messy or minified code and get a readable, formatted result. It is handy whenever you want quick formatting without installing Prettier or wiring it into your editor.
No. Formatting runs entirely in your browser using Prettier's standalone build, and nothing you paste is uploaded or stored anywhere.
JavaScript, TypeScript, JSON, CSS, SCSS, LESS, HTML and Markdown. You pick the language from the Language option before formatting.
Not currently. The tool formats with Prettier's default settings; the only choice exposed is the language/parser to use.
Prettier needs parseable input, so invalid syntax for the selected language will produce a parse error instead of formatted output. Make sure the language selection matches your code.
Yes. It loads Prettier's standalone engine and the matching language plugins on demand, so output matches what Prettier produces with its defaults.