JSON is the dominant data interchange format on the web. It is also one of the easiest formats to break by hand: a missing comma, an unmatched bracket, a single quote where a double quote belongs, or a stray trailing comma will all cause the entire document to fail to parse. This tool formats any JSON you paste so you can read it easily, validates it against the JSON spec to catch syntax errors before they hit production, and minifies it back to a compact single-line form when you want to send it over the wire. The parser uses the browser's native JSON engine, which means the validation matches exactly what your server or any other JSON library will see. The tool runs entirely in your browser; pasted content never leaves the page. Useful for reading API responses, cleaning up exported config files, comparing two JSON documents side by side, or shrinking a payload before pasting it into a tool that has a character limit.
Frequently asked questions
Two spaces by default, which is the convention in most JavaScript projects. You can switch to four-space or tab indentation in the controls. The output is purely cosmetic; the underlying data is unchanged.
Related tools
- Base64 Encoder & DecoderConvert any text or binary data to and from Base64 in your browser.
- JWT DecoderPaste a JWT to see its header, payload, and signature.
- XML Formatter & MinifierFormat any XML, RSS feed, SOAP response, or SVG with proper indentation.
- CSV to JSON ConverterConvert between CSV and JSON in either direction, in your browser.