JSON Formatter & Validator

Paste JSON, get it pretty-printed, minified or checked - locally in your browser, nothing is uploaded.

Messy code turning into neat curly braces

What this does

Is my JSON sent to a server?

No. Parsing and printing happen with the JSON engine built into your browser. Close the tab and the text is gone.

Why does it say my JSON is invalid?

Common causes: trailing commas, single quotes instead of double quotes, or unquoted keys. JSON is strict - the validator message usually points at the first problem spot.