JSON Toolkit
Format JSON
Beautify, minify, stats
Format Options
Indent, beautify, minify, and reset sample
Indent
Loading...
Loading...
How this tool works
Beautify parses your input with JSON.parse, then writes it back with JSON.stringify(data, null, indent) using the indent you pick (spaces, tab, or fixed width). Minify uses JSON.stringify(data) with no whitespace. Statistics reflect the last successful parse only. All processing is local to your browser.
How to use
- Edit JSON in the left editor or use Reset sample above.
- Choose indent under Format Options, then Beautify or Minify.
- Copy from the read-only output pane or use its toolbar (copy / download).
Tips
- Comments and trailing commas are not valid JSON—use Repair elsewhere in the toolkit if needed.
- Minify before embedding in URLs or logs to save space; beautify for review and diffs.
- Very large pastes may make the page slow; prefer the large-file viewer for huge documents.