Format and validate JSON
Paste JSON to tidy it, shrink it or find what's wrong with it. API responses often contain private data, so this runs entirely in your browser.
Deskshed, our desktop app for Windows. It has real save dialogs, works offline, and adds whole-folder jobs for photos and PDFs. Pay once: $5 for the first 1,000 buyers, then $9.
See DeskshedJSON formatter at a glance
- Cost
- Free, with no watermark
- Account
- None needed
- Your data
- Stays in your browser. How to check
- You get
- Formatted or minified JSON
- Limits
- Your browser's memory
How to use it
Paste your JSON
An API response, a config file or a log line.
Format or minify
Format makes it readable. Minify removes the spacing. Both check that it's valid.
Fix any errors
If it's invalid, the message gives the line and column.
JSON formatter: common questions
Why does my JSON fail with an error near the end?
The most common causes are a trailing comma after the last item, single quotes instead of double quotes, and an unclosed bracket. The error points to where the parser gave up, and the real mistake is often just before that.
Are comments allowed in JSON?
No. Standard JSON doesn't allow them, though some config formats that look like JSON do. Remove them before validating here.
Is it safe to paste API responses with tokens in them?
The parsing happens in your browser and our security policy stops this page from sending data to other servers. It's still good practice to rotate any secret you've pasted somewhere you didn't intend.