JSON Formatter.
Format, minify and validate JSON with the exact error position when it breaks.
RUN
status IDLE
how it works
- Paste JSON into the Input pane.
- Pick an indent — 2 spaces, 4 spaces, tab, or minify — and optionally check sort keys.
- Press Format or just keep typing; the Formatted pane updates live. Copy the result or Paste from clipboard in one click.
validation and sorting
Formatting is just JSON.parse followed by JSON.stringify with your chosen indent. When parsing fails the browser's message — including the position — is shown inline, so you can jump straight to the syntax error.
Checking sort keys runs the value through quorin's stableStringify, which sorts every object key deterministically by UTF-16 order before re-indenting. The output is still standard JSON, just in a canonical order that diffs cleanly.
Everything runs locally in your browser. Nothing is uploaded or stored — paste with confidence, even with private payloads.