Format JavaScript, TypeScript, JSON, CSS, HTML, Markdown, and YAML in your browser with Prettier.
Formatted output will appear here.
Uses Prettier standalone in the browser for familiar formatting results.
Supports JavaScript, TypeScript, JSON, CSS, HTML, Markdown, and YAML.
Tune print width, tab size, semicolons, quotes, and trailing commas.
Copy formatted output or download it with the selected file extension.
Load realistic snippets for quick parser checks and demos.
Source code stays in the browser tab and is not uploaded.
No. Formatting runs in your browser with Prettier standalone.
This page supports JavaScript, TypeScript, JSON, CSS, HTML, Markdown, and YAML.
Prettier needs syntactically valid input for the selected parser. Switch parsers or fix the syntax error shown in the output panel.