JSON Formatter and Validator

Paste JSON to make it readable, check that it is valid, or squeeze it down for production.

How to use it

  1. Paste your JSON into the Input box.
  2. Press Format to indent it, or Minify to remove all spacing.
  3. Copy the result. If the JSON is invalid, the message says what is wrong.

About this tool

JSON is the most common format for sending data between apps and websites. Formatted JSON is easier to read and debug, while minified JSON is smaller to transfer.

Your data stays in your browser. Nothing is sent to a server, so it is safe for private configuration and API responses.

Frequently asked questions

Why does it say my JSON is invalid?

Common causes are trailing commas, single quotes instead of double quotes, and unquoted keys.

Is my data sent anywhere?

No. It is parsed locally.

Can it sort keys?

Yes. Tick Sort keys A to Z.

What is the difference between format and minify?

Format adds indentation for readability. Minify removes all unnecessary spacing.

More free tools