Home › Developer Tools › JSON Formatter & Validator

JSON Formatter & Validator

Paste JSON to make it readable, check it is valid, or minify it.

  • Free & unlimited
  • No sign-up
  • Instant results

How to use the JSON Formatter & Validator

  1. Paste your JSON (or drop a .json file).
  2. Choose 2 spaces, 4 spaces, tabs or Minify.
  3. Copy or download the result.

Common JSON errors

  • Single quotes: JSON needs "double" quotes around strings and keys.
  • Trailing comma: [1, 2,] is not allowed.
  • Unquoted keys: {name: 1} must be {"name": 1}.
  • Comments: JSON does not allow // comments.

The validator shows the line and column of the first problem.

Minify vs format

Formatted JSON is easy to read and diff. Minified JSON removes all spaces and line breaks, making API payloads and config files smaller.

Frequently asked questions

Is my JSON sent to a server?

No. It is parsed by your browser, so API keys or customer data in it stay private.

Can it handle big files?

Yes, files of several megabytes format in well under a second on a normal computer.

What does Sort keys do?

It orders the keys of every object alphabetically, which makes two JSON files easier to compare.

Related tools