JSON Formatter

Make messy JSON neat, or check it for mistakes.

Indent:

Private: this works on your device. Nothing is uploaded.

How to use it

  1. Paste your JSON in the box.
  2. Press “Beautify” or “Minify”.
  3. Press “Copy” to copy the result.

About JSON Formatter

Paste JSON and press Beautify to indent it neatly, or Minify to squeeze it onto one line. If the JSON has a mistake, you will see what is wrong and on which line.

Common JSON mistakes

A comma after the last item, single quotes instead of double quotes, and keys without quotes are the three most common errors. The validator points to the line so you can fix it fast.

Is my data private?

Yes. Your JSON is processed in your browser and never sent to a server, so it is safe for API keys and private data.

Questions people ask

What is the difference between beautify and minify?

Beautify adds spaces and line breaks so people can read it. Minify removes them so the file is as small as possible.

Can I choose the indent size?

Yes: 2 spaces, 4 spaces, or tabs.

More free tools