JSON Formatter
Developer ToolsFormat, validate & minify JSON
Similar tools you may like
History
All history →JSON Formatter — at a glance
Turn messy one-line JSON into neat, indented, easy-to-read JSON — and check it for errors.
How to use it — step by step
You can also minify JSON to make it as small as possible.
Paste JSON
Paste your JSON (from an API, file or code) into the input box.
Choose mode
Pick Format to beautify or Minify to compress. Set indent to 2 or 4 spaces.
Press the button
If there is a mistake, you will see an error telling you where.
Copy output
Copy the clean JSON with one click.
Pro tips
Small things that make the result better.
Quick facts
Frequently Asked Questions
Why does my JSON show a syntax error?+
Common causes: a trailing comma, single quotes instead of double quotes, a missing comma between items, or an unclosed bracket.
Format vs Minify — what is the difference?+
Format adds spaces and line breaks so humans can read it. Minify removes them to make the file smaller.
Can JSON have comments?+
No. Standard JSON does not allow comments.
Is my data safe?+
Yes. Everything runs inside your own browser. Your text, files and images are never uploaded to any server.

