Beautify code
Prettier in your browser for JS, TS, CSS, HTML, JSON, Markdown, YAML.
Runs on your device — never uploaded
How to beautify code
- Paste code
The language is guessed from the content; override it if needed.
- Set style
Print width, tabs or spaces, semicolons, single or double quotes.
- Copy
Formatted output appears instantly.
Frequently asked questions
Which formatter is used?
Prettier, the standard used by most JavaScript projects, loaded as a browser bundle.
Can it minify?
No, this tool formats for readability. Use your build tool to minify.
Is my code sent anywhere?
No. Prettier runs entirely in your browser.