Tools / Format & convert / 01
JSON formatter
Runs locally · nothing uploadedPretty-print, minify, validate and compare JSON. Syntax errors point at the exact line and column.
1 line · 0 B
Output
The result appears here. Press Format or Ctrl↵.
Waiting for input
How it works
Parsing runs in this tab with a strict parser that accepts exactly what JSON.parse accepts (RFC 8259). Nothing is sent to a server. Inputs over 512 KB are parsed in a background worker so the page stays responsive.
Numbers and strings are kept exactly as written: an ID like 12345678901234567890 is not rounded, and 1.0 stays 1.0. Duplicate keys are kept and flagged.
Compare matches keys, not lines, so a different key order is not reported as a change.
Shortcuts
- Ctrl↵
- Run
- C
- Copy the result (outside the editor)
- CtrlK
- Jump to another tool
- ?
- All shortcuts