About this JSON formatter
Paste minified, poorly indented, or hand-written JSON and get a clean, consistently indented version — or go the other direction and minify JSON to save bytes before sending it over the wire. Parsing happens with the browser's native JSON.parse, so validation is exact and error messages point at the character position where parsing failed.
Common JSON errors this catches
- Trailing commas after the last property or array item (not valid in JSON, unlike JS).
- Unquoted or single-quoted keys — JSON requires double quotes.
- Missing commas between properties.
- Comments — JSON has no comment syntax, unlike JSON5 or JSONC.
FAQ
Does my JSON get uploaded anywhere?
No. Formatting and validation both happen locally in your browser tab.
What's the difference between formatting and minifying?
Formatting adds indentation and line breaks for readability. Minifying strips all non-essential whitespace to produce the smallest possible payload — useful for production API responses or config files where every byte counts.