Toolskits

Online tool

JSON formatter and validator

Paste JSON to make it readable, check that it is valid, or shrink it to one line. Errors show the line and column.

Loading the tool…

  1. Paste your JSON
  2. Press Format or Minify
  3. Copy the result

More text and generator tools

See all text and generator tools · All utilities

About json formatter

This JSON formatter indents your JSON so that it is easy to read, checks that it is valid and reports where the first error is. Minify removes all unneeded whitespace for smaller payloads.

Your JSON is parsed by your browser and is not sent to any server, so it is safe to paste configuration and API responses.

How to format JSON

  1. Paste your JSONInto the box.
  2. Press Format or MinifyChoose the indent first.
  3. Copy the resultPress Copy.

Good to know

Frequently asked questions

Is my JSON uploaded?

No. It is processed locally.

Why is my JSON invalid?

The usual causes are a trailing comma, single quotes instead of double quotes, or an unquoted key. The message shows the line and column.

Other Toolskits tools