Skip to content
Back to tools
DeveloperOfficial tool

JSON Formatter

Format, validate, or compact JSON.

Processed locally — your data stays in your browser. Nothing is uploaded.

How to use it

  1. Paste your JSON into the box.
  2. Choose Format JSON to make it easy to read, or Compact JSON to make it as small as possible.
  3. Copy the result. If the JSON has a mistake, the error message helps you find it.

Questions and answers

Is it safe to paste private JSON?

Your JSON is checked and formatted in your browser. It is never sent to a server.

Why did a long number change?

Browsers cannot store every very large or very precise number exactly. The tool warns you and shows the number before and after. To keep such a number exact, put it in quotes so it is stored as text.

What happens if a key appears twice?

Only the last value in the same object is kept. The tool names the repeated keys, so you can check whether you lost something.