๐Ÿงฐ
Consultant Survival

Swiss army knives for people who paste payloads all day

Online JSON formatter and validator

Paste your JSON to make it readable, squash it onto one line or find out where it broke. It runs entirely in your browser: the client's payload never leaves your machine.

0
0

๐Ÿ”’ 100% local processing: no data leaves the browser and your input is never stored.

Ctrl + Enter runs the main action

What you can do

  • Pretty-print with 2 or 4 spaces or tabs, and minify to a single line.
  • Validation with the error's line, column and context, including the classic trailing comma.
  • Alphabetical key sorting, handy before comparing two API responses.
  • A built-in parser that keeps numbers exactly as written: 19-digit IDs are not rounded.
  • JSON that ended up inside a string with escaped quotes is unwrapped and formatted.

Frequently asked questions

Why do other formatters change my numeric IDs?

Because they use JavaScript's JSON.parse, which turns numbers into doubles and loses precision beyond 2^53. This parser keeps the original text of every number, so 9007199254740993123 stays 9007199254740993123.

Is the JSON I paste saved or sent anywhere?

No. Formatting happens in JavaScript in your browser, the input is not sent to any server and is not saved.

How do I find the error in invalid JSON?

Press "Validate": the message gives the line and column of the error and shows the surrounding text, so you can find it even in very long files.

More developer tools

โ† All tools