Developer — Free

Format and validate JSON

Pretty-print, minify and validate JSON with precise error messages.

  1. 01Paste
  2. 02Adjust
  3. 03Copy
Paste text to begin. Free
01 — Steps

How to format and validate JSON

  1. Paste JSON

    From an API response, config file or log.

  2. Format or minify

    Choose 2 or 4 spaces, tabs, or minified. Keys can be sorted.

  3. Fix errors

    Invalid JSON shows the line and column of the problem.

02 — Questions

Frequently asked questions

Can it handle large files?
Yes. Multi-megabyte documents format in well under a second.
Does it support comments or trailing commas?
Strict JSON does not allow them, and the validator flags them. Use the relaxed option to strip comments and trailing commas first.
Can I sort keys?
Yes. Turn on key sorting to order object keys alphabetically at every level.
03 — Related
04 — More

More developer tools

All developer tools