Clean Up, Shrink or Validate JSON
Reindent messy JSON, strip it down for production, or find the exact character where parsing fails. Helpful when an API response will not load.
About this tool
JSON pasted from logs, chat or a minified API reply is usually one long line and often has a stray comma somewhere. This page makes it readable, removes unnecessary whitespace, or tells you where the parser gave up.
- Indent with two or four spaces
- Minify before shipping a payload
- Report the position of a syntax error
Frequently asked questions
How do I locate a broken comma or quote?
Run the check. When parsing fails, the tool reports the parser message and the position so you can jump straight to the problem.
Does formatting alter the values inside my document?
No. Indentation and minification only change whitespace; keys, strings and numbers are left untouched.
Can it handle a big API response?
The document is parsed in your browser, so the practical limit is the memory available on your device rather than a fixed size cap.