JSON Formatter
Format and beautify JSON with 2 spaces, 4 spaces or tabs. Minify JSON. Fast, free and private.
How to format JSON
- Paste your JSON, open a file, or drag & drop it onto the page.
- Choose 2 spaces, 4 spaces or tabs.
- Click Format to beautify, or Minify to remove all whitespace.
Why use this formatter?
Formatting runs in a background thread, so even files of hundreds of megabytes don't freeze your browser. Nothing is uploaded: your JSON stays on your device.
Guides
More free tools
JSON ViewerTree view, search, copy path. Handles huge files.JSON ValidatorClear errors with exact line and column.JSON RepairFix broken JSON in one click.JSON to CSVFlatten nested JSON into a spreadsheet.JSON ⇄ YAMLConvert between JSON and YAML.JSON to TypeScriptGenerate TS interfaces from sample data.JSON DiffSee what changed between two JSON files.JSONPath TesterQuery JSON with JSONPath expressions.