JSON
Pretty-print, minify, and validate JSON instantly — with the exact line and column of any syntax error.
Your JSON is processed locally in your browser. It is never uploaded to our servers.
JSON (JavaScript Object Notation) is the most common data-interchange format on the web: APIs return it, config files use it, and databases store it. A JSON document is built from a small set of structures — objects { }, arrays [ ], strings, numbers, booleans, and null.
The syntax is strict: keys must be double-quoted strings, trailing commas are not allowed, and single quotes or unquoted identifiers make the document invalid. Formatting adds indentation and line breaks so humans can read it; minifying removes every unnecessary character so it takes less space on the wire. Neither changes the data itself — a formatter and a minifier produce semantically identical documents.
This tool parses your input with the browser's native JSON parser, so the validation rules match exactly what JavaScript runtimes accept. Since everything runs client-side, it is also safe for private data such as API responses, credentials files, or production configs.
Your API returns a compact one-line JSON blob. Paste it in, click Format, and the nested structure becomes readable in seconds.
Your app fails to start with a JSON parse error. Paste the config here — the validator reports the exact line and column of the missing comma or quote.
Write a readable, indented payload, then Minify it before pasting into curl or a request body where whitespace should be minimal.
Format both versions with the same 2-space indentation first — line-based diff tools only give meaningful results on consistently formatted JSON.
Check JSON syntax with precise line and column error location, plus a structural summary of the document.
Compare two JSON documents and see every added, removed, and changed value by path.
Explore JSON as a collapsible tree with syntax highlighting — great for large API responses.
Edit JSON with live validation, statistics, and one-click format or minify while you type.
Looking for something else? Browse all tools