JSON formatter and validator

Make JSON readable, check it for errors, or minify it.

Runs in your browser. Nothing is uploaded.

How to use it

  1. Paste your JSON into the input box.
  2. Select Format to make it readable, or Minify to make it compact.
  3. Copy or download the result.

About this tool

JSON from APIs and log files is often squeezed onto one line. Formatting adds indentation and line breaks so you can read the structure.

If the JSON is invalid, the error message shows the line and column so you can find the problem quickly. Common causes are trailing commas, single quotes and missing brackets.

API responses can contain tokens and personal data. This formatter never sends your JSON anywhere.

Questions

Why is my JSON invalid?

The most common reasons are a comma after the last item, keys without double quotes, and single quotes instead of double quotes.

Related tools