How to format JSON
- Paste your JSON, drop a file on the box, or press the folder button (Open file).
- The formatted result appears automatically. Choose Text, Tree or Compact.
- Press Copy or Download.
Why big numbers matter
JavaScript numbers hold integers exactly only up to 9,007,199,254,740,991. A formatter that parses and rewrites a larger ID can silently change its last digits. This tool checks that the JSON is valid, then re-indents your original text, so the digits stay as you typed them.
{"orderId": 12345678901234567890}
Common JSON errors
- A trailing comma after the last item.
- Single quotes instead of double quotes.
- Property names without quotes.
- Comments, which standard JSON does not allow.
For these, try the JSON repair tool.
Questions
Does formatting change my values?
No. Only the whitespace between tokens changes.
What file size works?
You can open files up to 5 MB. Performance near that limit has not been benchmarked.