JSON formatter
Paste JSON (starting with { or [). You get pretty-printed, colour-highlighted output. Enter copies exactly what is shown.

Options
Section titled “Options”- Pretty / Minified.
- Indent: 2 spaces, 4 spaces or tabs.
- Sort keys.
- Stats: type, depth and size.
It is forgiving
Section titled “It is forgiving”- Comments, trailing commas, single quotes and unquoted keys are accepted. The badge then says “relaxed JSON → fixed”.
- JSON that has been encoded as a string (
"{\"a\":1}") is unwrapped automatically. - Errors show the line and column with a caret under the problem.
Short text like [wip] fix is not treated as JSON: the error view only appears when the input is clearly meant to be JSON.
Next to CSV
Section titled “Next to CSV”An → CSV button turns an array of objects into a table: see CSV ⇄ JSON. Copied JSON up to 20 KB is kept in Recent.
Support the project: Buy Me a Coffee or GitHub Sponsors.