Beautify and validate JSON

A free online JSON formatter — debug a 50 MB API response that returned on a single line, find the unbalanced bracket in a 5000-line config, or minify a JSON blob before shipping it in a build. Paste any JSON, hit Beautify for clean indented output, or Minify to strip whitespace before transport. Validation surfaces the exact line and column of any syntax error so you don't hunt through deeply-nested payloads. Auto-formats as you type. Three indent presets (2 spaces, 4 spaces, Tab) — match jq -c, prettier or your team's style guide. Output matches what JSON.stringify produces, so it round-trips cleanly through any consumer.

How to format JSON

1
Paste your JSON

Click Paste or paste manually into the left pane.

2
Pick an indent

2 spaces by default, switch to 4 or Tab if you prefer.

3
Beautify or Minify

Beautify pretty-prints; Minify strips whitespace.

4
Copy or download

Copy to clipboard or save as a .json file.

Live validation, accurate error line and column, three indent presets

In: 0 Out: 0 Lines: 0
Published Updated