JSON formatter that pretty-prints or minifies
Paste raw JSON and get clean, indented output - or strip it down to a single line. Choose 2-space, 4-space, or tab indentation, sort keys A-Z, and copy the result. Everything runs in your browser.
Paste raw JSON and get clean, indented output - or strip it down to a single line. Choose 2-space, 4-space, or tab indentation, sort keys A-Z, and copy the result. Everything runs in your browser.
Reformat any JSON document in three steps. The tool parses your input, so you also find out instantly if it is valid.
Drop in an object, array, or API response - compact or already indented. The formatter parses it the moment you paste.
Choose pretty-print or minify, set 2-space, 4-space, or tab indentation, and optionally sort every object's keys A-Z.
Read the formatted result, check the key count in the status line, then copy it or download a .json file.
No accounts, no uploads, no surprises - just a fast, predictable formatter that does exactly what the buttons say.
Your JSON is parsed and reformatted entirely in the browser tab. Nothing is sent to a server, logged, or stored anywhere.
If the JSON is malformed, you get the parser's exact error message and position instead of broken output - so it doubles as a quick validator.
The same input and settings always produce byte-for-byte the same result, which makes the output safe to commit or diff.
Switch between pretty and minified, pick your indent, and sort keys recursively to make two documents directly comparable.