Code Formatter
Apply lightweight formatting to JSON, HTML, CSS, and JavaScript snippets.
Loading interactive controls…
Frequently asked questions
How is code formatted?
JSON retains the original number tokens. JavaScript and CSS are parsed with language-specific parsers before printing.
What happens with invalid or unsupported syntax?
The error identifies its location and leaves the original input and previous result intact. TypeScript and JSX are unsupported.