JSON formatter and validator

Paste JSON to beautify it, minify it or find exactly where it's broken.

Common JSON errors

  • Trailing commas: {"a": 1,} is valid JavaScript but not valid JSON.
  • Single quotes: JSON strings and keys must use double quotes.
  • Unquoted keys: {a: 1} must be {"a": 1}.
  • Comments: standard JSON has no comments. Remove // and /* */.
  • Special values: undefined, NaN and Infinity aren't allowed; use null or a string.

Private by default

Everything runs in your browser. Nothing you paste is uploaded, logged or stored on a server, so it's safe to use with private data.

Questions

Does this upload my JSON?

No. Parsing and formatting happen entirely in your browser.

Can it sort JSON keys?

Yes. Tick "Sort keys" to sort object keys alphabetically at every level, which makes two JSON documents easier to compare.

How big a file can it handle?

Several megabytes is fine on a modern computer. Very large files may take a moment to format.

Related tools