Format JSON
Beautify JSON with clean indentation, minify it to a single line, or catch syntax errors instantly. Paste your JSON below.
Format JSON
JSON is easy for machines to read and painful for humans when it arrives as one enormous line. Paste it here and tap Format to get clean two-space indentation, with every object and array on its own level. Tap Minify to do the opposite and squeeze it back into a single compact line for production.
Both buttons parse your JSON first, so the tool doubles as a validator. If something is wrong — a missing comma, a trailing comma, single quotes instead of double, an unclosed bracket — you get an error message describing the problem instead of a silent failure, and your original text is left untouched so nothing is lost.
Trailing commas after the last item, comments (JSON does not allow them), single quotes around keys or strings, unescaped quotes inside strings, and NaN or undefined values. The error message will point you at the character where parsing stopped.
Is my data sent anywhere? No. Parsing happens entirely in your browser, so you can safely paste API responses and config files. Does it change my values? No — key order and values are preserved; only whitespace changes.
Also useful for web work: URL encode and decode for query strings, and extract URLs and emails for pulling links out of a payload.