JSON formatter
Paste JSON to beautify, validate, or minify it. Choose your indentation, optionally sort object keys, and copy the result. Everything runs in your browser — nothing is uploaded.
What this does
The input is parsed by Python's standard json module and
re-serialized — so validation is exactly as strict as a real parser.
Comments, trailing commas, and single-quoted strings are
not valid JSON and will be flagged. When parsing fails, you
get the parser's own message together with the line and column of the
offending character, so you can jump straight to the problem.
Minify strips every optional space and newline for the smallest
payload. Sort keys orders each object's keys alphabetically,
which makes two JSON documents easy to diff. Non-ASCII text (accents,
emoji, other scripts) is kept as-is rather than escaped to
\uXXXX.