JSON Formatter / Minifier / ValidatorJSON Escape / UnescapeJSON DiffSort JSON KeysJSON ⇄ StringJSON ⇄ XMLXML ⇄ JSONJSON to CSVCSV to JSONJSON ⇄ YAMLJSON to CodeQuery Params ⇄ JSONCookie ⇄ JSONJSON ⇄ Properties
Input JSONCtrl+Enter to format
Formatted result
JSON Formatter / Minifier / Validator
Beautify or minify JSON; validation errors show the exact position
How to use
Formatting re-indents the JSON to highlight structure; minifying strips all whitespace into a single line. Validate-only checks syntax without changing anything.
FAQ
What does "position 12" mean in the error?
It means a syntax problem occurs near the 12th character. The tool shows a short snippet around that position so you can locate the missing comma, quote or bracket.
Why did my Chinese text turn into \uXXXX?
That is not caused by this tool. Some languages such as Java escape non-ASCII characters when serializing JSON. Just format it here to see the normal Chinese text.
Will my data be uploaded?
No. Everything runs locally in your browser with native JSON.parse and JSON.stringify; there are no network requests.