JSON Formatter & Validator
Format, validate, and minify JSON.
Input
About
Paste JSON and get pretty-printed output. Click minify to compact it. Click copy to grab the result. Errors get the exact line and character so you can fix them fast.
How to use
- Paste your JSON into the input box.
- Click Format to pretty-print it, or Minify to compact it.
- Click Copy to grab the output. If the JSON is invalid, the exact line and character of the error are shown.
FAQ
Does my JSON leave my browser?+
No. Formatting and validation happen entirely locally. Nothing is uploaded.
Does it support trailing commas or comments?+
Strict JSON does not allow either, and this tool follows the strict spec. If you have JSON5 or JSONC, remove the extras first.