About this tool
Paste JSON and press Format and validate. If it is valid, you get neatly indented text. If it is not, you get a message that says what is wrong and, where the browser gives it, the line and column.
Minify removes spaces and line breaks to make the text as short as possible.
Common JSON mistakes
Single quotes, missing quotes around keys, trailing commas and comments are the most common reasons for an error.
How to use it
- Paste your JSON.
- Press Format and validate, or Minify.
- Copy the result.
Good to know
- JSON needs double quotes around keys and text, and does not allow a trailing comma.
- Comments are not part of JSON and cause an error.
- Nothing is sent to a server, so it is fine for private data, but do not paste secrets into any tool you do not control.
Key features
- Instant result with copy or download.
- Validation with clear messages for bad input.
Limitations
- Results are only as good as the input; check them before you rely on them.
Privacy and security
Runs in your browser; the file is not sent to any server.
Frequently asked questions
How do I validate JSON?
Paste it and press Format and validate. A valid file is formatted. An invalid one shows an error.
Why does my JSON fail with a trailing comma?
JSON does not allow a comma after the last item. Remove it.
Can I change the indent?
Yes. Choose 2 spaces, 4 spaces or a tab.
Is my JSON uploaded?
No. It stays in your browser.
More tools you may need
Related guides
Last reviewed: 2026-11-22. Found a mistake? Tell us. See our tool accuracy policy.