Format and validate JSON
Pretty-print, minify and validate JSON with precise error messages.
- 01Paste
- 02Adjust
- 03Copy
Paste text to begin. Free
01 — Steps
How to format and validate JSON
- Paste JSON
From an API response, config file or log.
- Format or minify
Choose 2 or 4 spaces, tabs, or minified. Keys can be sorted.
- 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
Related tools
04 — More
All developer tools