JSON formatter & validator
Paste JSON from an API response, a log line or a config file to pretty-print, minify or find the syntax error.
Runs in your browser
Common JSON mistakes
- Trailing commas after the last item:
[1, 2,]is invalid. - Single quotes: keys and strings must use double quotes.
- Comments are not allowed in JSON (they are in YAML and JSON5).
- Unescaped backslashes in Windows paths: write
"C:\\temp".