JSON Formatter
Format, repair, and validate JSON, JSONC, or JSON5. Everything runs locally in your browser.
Your Data Never Leaves Your Device
Every tool runs entirely in your browser. Nothing you type is uploaded, stored, or logged on our servers.
The JSON Formatter cleans up messy JSON in one step. Paste strict JSON, JSONC, or JSON5 and get back readable, consistently indented output — or switch to Compact to minify it onto a single line.
If the input is malformed, the Repair button fixes common issues like trailing commas and missing quotes on a best-effort basis before formatting. Everything runs locally in your browser — nothing you paste is ever uploaded.
FAQ
Yes. The Repair button fixes common issues like trailing commas, missing quotes, and minor structural mistakes before formatting, on a best-effort basis.
Yes. Set Mode to JSON5 or JSONC to parse comments, trailing commas, and unquoted keys, or leave it on Auto detect to have the tool figure it out.
Yes. Switch Style to Compact to collapse the formatted output onto a single line with no extra whitespace.
It reorders every object's keys alphabetically in the formatted output, which makes it easier to diff two JSON payloads that only differ in key order.
No. Parsing and formatting run entirely in your browser, so nothing you paste here is ever sent to a server.