JSON Formatter
About this tool
Format (pretty-print), minify, or validate JSON. Catches syntax errors with a clear message and can optionally sort object keys alphabetically.
How to use it
- Paste your JSON.
- Choose format, minify, or validate mode.
- For format mode, optionally set the indent width and whether to sort keys.
- Get the result instantly, or a clear error message if the JSON is invalid.
Frequently asked questions
- What happens if my JSON is invalid?
- You'll get a clear error message describing what's wrong, instead of a cryptic parser exception.
- Is there a size limit?
- Input is capped at about 5MB of text, which comfortably covers virtually all everyday JSON documents/API responses.