Paste JSON to pretty-print it, minify it for transport, or find exactly where it breaks. Sort keys and choose your indent.
6 answers to what people ask most about the JSON Formatter.
Paste it into the Input box and leave the mode on Format. The pretty-printed result appears on the right with syntax colors, ready to copy or save as formatted.json.
Paste it in and read the status line under the editors. It shows the line and column where parsing failed, for example a missing comma between two array items.
The usual causes are a trailing comma, single quotes instead of double quotes, unquoted keys, or comments. Strict JSON allows none of these, so the tool reports them as errors.
Switch from Format to Minify. All spaces and line breaks are removed, and the status line shows the size before and after.
No. Sort keys reorders the keys of every object alphabetically, including nested ones. Values and the order of items inside arrays stay exactly the same.
Yes. It's free with no sign-up or limits, and it runs entirely in your browser, so what you type or paste never leaves your device. It works on phones and computers alike.
Something not working? Tell us and we'll fix it.
Report an issue