JSON Formatter & Validator

Turn a one-line blob of JSON into readable, indented text — or squeeze it back into a single line. Syntax errors are pinned to a line and column, and you're warned before large integers lose digits in the process.

Paste here

Result

 
About this tool

How to use it

  1. 1 Paste your JSON into the left box. The JSON tab is already open, so it's formatted as you paste.
  2. 2 Pick an indent: 2 spaces, 4 spaces or Minify (one line).
  3. 3 Copy the result. If something can't be read, the line and column appear above the output.

Good to know

  • The page audit reads HTML you paste — use the Link checker to follow a link
  • YAML support covers the widely used syntax only
  • JWT decoding unpacks the contents; it does not verify the signature

Frequently asked questions

It says there's an error — where is it?

Look near the line and column shown. The usual culprits are a trailing comma after the last item, single-quoted strings and unquoted keys.

A large number changed after formatting.

JavaScript numbers can't hold integers beyond 2^53 exactly, so the last digits shift. You're warned when that happens — wrap the value in quotes to keep it as a string.

Is the JSON I paste sent to a server?

No. Formatting and validation happen inside this browser.

Esc