JSON Formatter
The JSON Formatter pretty-prints, validates and minifies JSON entirely in your browser. Well-formatted JSON is far easier to read and diff, while minified JSON is smaller on the wire — this tool does both, and pinpoints syntax errors by line and column.
Why use JSON Formatter
- Pretty-print with 2-space indentation or minify to a single line.
- Validate with the exact line and column of the first error.
- Syntax highlighting and line numbers for fast scanning.
- Upload, drag-and-drop or download JSON; handles large files.
How to use JSON Formatter
- 1Paste or drop JSON. Paste JSON into the editor, or drag a .json file onto it.
- 2Format or minify. Click Format to pretty-print or Minify to compact it; invalid JSON is flagged with the error location.
- 3Copy or download. Copy the result or download it as a .json file.