JSON Formatter
Pretty-print, minify, or validate JSON and copy the result without sending your data anywhere.
JSON input
Paste JSON up to 10 MiB. Formatting preserves number precision, key order, and repeated keys.
Result
Formatted or minified JSON appears here.
Paste JSON, then select Format, Minify, or Validate.
Runs in your browser. Nothing is uploaded.
Also known as: pretty print json, json validator, minify json
How to use
- Paste a JSON document up to 10 MiB.
- Choose two or four spaces for formatted output.
- Format, minify, or validate it, then review any line and column error.
- Copy or download the complete result.
Frequently asked questions
Does formatting round large numbers?
No. Formatting changes only the whitespace between JSON tokens. Numbers, key order, and duplicate keys stay as written.
Can I use JSON with comments or trailing commas?
No. Comments, trailing commas, and single-quoted strings are not valid JSON.
What do the line and column mean?
They point to where the parser first detected a problem. Both start at 1.
Is the preview the complete document?
Large results show only a preview. Copy and Download use the complete result.