JSON Formatter
Format, minify and validate JSON with clear error positions.
Indent and tidy minified or messy HTML, CSS and JavaScript so it is readable again.
Your files stay on your device
Everything runs in your browser. What you paste is never sent to a server.
Prettier, the same formatter many projects run on save. Its rules are opinionated, so the output matches what a Prettier-formatted project would produce, with the options you choose.
No. Only whitespace, line breaks and, for JavaScript, quote style and semicolons change. The program behaves the same.
No. Minifiers throw away the original names, so a beautified file is easier to read but a, b and c stay a, b and c.
The code could not be parsed. The message gives the line and column and a few lines of context. Fix that spot and the result appears again.
JSX in JavaScript is accepted. TypeScript is not supported in this tool.