JSON Formatter & Validator

Paste JSON to check it is valid and to format or minify it. It is parsed locally with your browser’s own JSON parser, so API responses and config files stay private.

  • Free, no sign-up
  • Runs in your browser
  • Verified

How to use it

  1. Paste your JSON.
  2. Choose the output style.
  3. Read the error message if it is invalid, or copy the formatted result.

How it works

The text is parsed with the standard JSON parser, then written out again with the indentation you chose. Strict JSON is required: double-quoted keys and strings, no comments and no trailing commas.

The error message comes from your browser and usually points to the position of the problem.

Examples

  • {"a":1,"b":[true,null]} becomes a readable multi-line version, or stays on one line when minified.

Limitations

  • JavaScript cannot represent integers above 9,007,199,254,740,991 exactly. The tool warns if your input contains very long integers, which can be altered.
  • Duplicate keys are collapsed (the last one wins).
  • Very large documents (tens of megabytes) may be slow.

References

Last verified . See our Accuracy & Editorial Policy. Found a problem? Email contact@tools.gift.