JSON formatter and validator
Pretty-print, validate and minify JSON with clear errors.
About this tool
Paste JSON to make it readable, check that it is valid, or minify it for production. If something is wrong, you get the exact line and column so you can fix it fast.
At a glance
- What it does
- Pretty-print, validate and minify JSON with clear errors.
- Price
- Free, no sign-up
- Works in
- Your browser, on phone or computer. Works offline after the first visit.
- Privacy
- What you type never leaves your device.
How to format JSON
- Paste your JSON on the left, open a .json file or drop it on the box.
- Choose pretty printing with 2 spaces, 4 spaces or tabs, or Minify. The result appears on the right as you type.
- Copy or download formatted.json. If the JSON is invalid, the failing line is marked in the line numbers; press "Go to line" to jump to it.
Private
Your text stays in your browser and is never sent to a server.
Instant
Results update as you type, with nothing to install.
Free
No sign-up, no limits and no ads inside your writing space.
Frequently asked questions
Is it safe to paste API responses or config files?
Yes. Formatting happens in your browser; nothing is uploaded or logged.
Why is my JSON invalid?
The usual causes are a trailing comma, single quotes instead of double quotes, keys without quotes, or comments. JSON allows none of these.
Is my text sent anywhere?
No. Everything runs in your browser and your text never leaves your device. Nothing is stored on any server.



