Format and validate JSON.
Paste minified or messy JSON and get clean, indented, validated output back instantly.
Loading the tool…
Key points
- Paste minified or messy JSON and get clean, indented output back instantly.
- Catches syntax errors and points to the exact line where the JSON breaks.
- Switch between pretty-printed and minified output with a click.
- Runs entirely in your browser. Your JSON never leaves your machine.
Minified JSON is fine for machines and miserable for humans. The formatter above re-indents it into something readable, and when the JSON is broken it reports the parse error with the line number where the syntax gives out. All of that happens in the page you are already on, so nothing is uploaded and nothing is logged.
Once your JSON is clean, you can inspect a JSON file online to read through it. The viewer gives you expandable nodes rather than one long wall of text, which helps when an object runs to hundreds of lines. If you need to hand the file to a teammate, you can share a JSON file as a link instead of pasting all of it into chat.
Formatting JSON is rarely the only thing you're doing. You'll often need to encode or decode Base64, URL-encode a string, or decode a JWT in the same session, and NudgeHost's browser-based dev tools are collected on one page.
Every tool on the site is free and needs no signup. The paid side of NudgeHost is hosting and sharing rather than the tools, and you can drop a file to get started whenever a formatted file needs to go to someone.
Drop a file here and get a shareable link in seconds.
Try it freeFrequently asked questions
Does my JSON get sent to a server?
No. Formatting runs entirely in your browser. The JSON you paste never leaves your machine.
Will it tell me what's wrong with invalid JSON?
Yes. The formatter reports the parse error and points to the line where the syntax breaks.
Can it minify as well as format?
Yes. You can switch between pretty-printed output and a minified single line.
Get file-sharing tips that actually help.
One email a month. No spam, no fluff.
Related tools
Other things you can do on NudgeHost.
Ready to try the dev tools?
Free forever, no credit card needed. The whole thing takes a few seconds.
Get started free