JSON formatter & validator
Make messy JSON readable, check that it's valid, or shrink it to one line.
How to use the JSON formatter & validator
- Paste your JSON.
- Choose 2 spaces, 4 spaces or Minify.
- Copy or download the result — errors show the line and column.
When it's useful
- Reading API responses
- Finding a missing comma or bracket
- Minifying config files
Limits to know
- Strict JSON only: comments and trailing commas are reported as errors.
Your privacy
Everything is worked out in your browser. What you type isn't uploaded, saved or shared, and there's no sign-up.
Questions
Is my JSON sent to a server?
No. It's parsed in your browser, so private data stays on your device.