JSON Formatter
Format, minify and validate JSON right in your browser — nothing is sent to a server.
Text
I colori sono negli attributi style, quindi il frammento resta
colorato ovunque lo incolli senza portarsi dietro un foglio di stile.
What a JSON formatter does
JSON is how most web interfaces exchange data. It is meant to be read by machines, and once it arrives minified on a single line it becomes unreadable for anyone who needs to understand it. A formatter makes it readable by adding indentation and line breaks, without changing its meaning.
How to use it
Paste your JSON into the left box and pick an operation:
- Format indents the document using the spacing you choose.
- Minify collapses it onto one line, as needed for transmission.
- Validate only checks correctness, reporting the line and column of the error.
Your data never leaves the browser
Everything runs on your own machine, using functions the browser already provides. What you paste is never sent to a server, never stored and never written to any log — so it is safe to use with responses containing access keys or customer data.
Common mistakes
The most frequent errors are trailing commas before a closing bracket, single quotes instead of double quotes, and unquoted keys. JavaScript accepts these forms; JSON does not, and is stricter than most people expect.
Frequently asked questions
No. Everything runs inside your browser: the content never leaves your computer and is not stored anywhere.
The limit is your browser's memory. Documents of a few megabytes are handled without trouble; beyond that the operation may slow down, because it runs on your own machine.
The usual causes are a trailing comma before a closing bracket, single quotes instead of double quotes, and unquoted keys. These are valid in JavaScript but not in JSON.