JSON Formatter

Runs locally

Paste JSON to beautify or minify it instantly; invalid JSON reports the exact error location.

Loading tool…

This tool runs locally in your browser — your content is never uploaded to a server.

How to use

  1. 1Paste your JSON into the input box, or click “Example” to load a valid sample.
  2. 2Click “Beautify” to format with 2-space indentation, or “Minify” to strip extra whitespace.
  3. 3If the JSON is invalid, the tool reports the reason with the line and column number — fix and retry.
  4. 4Click “Copy” or “Download .json” to save the result, or “Clear” to start over.

FAQ

Related tools