Why format JSON?
Minified or inconsistently indented JSON is painful to read and review. Paste any JSON document above to pretty-print it instantly — or minify it for production payloads.
How it works
The formatter parses your JSON locally (so syntax errors are caught and shown with their position) and re-serializes it with the indentation you pick: 2 spaces, 4 spaces or compact. Enable Sort keys to order object keys alphabetically at every level, which makes versioned files diff cleanly.