JSON Formatter & Validator

Format, validate and minify JSON with clear, inline error messages.

Processed on your device. Files are not uploaded

How to format JSON

  1. Paste your JSON

    Paste or type your JSON into the box.

  2. Format or minify

    Press Format to pretty-print it, or Minify to make it compact.

  3. Copy the result

    Copy the result, or use it straight away.

Worked example

This is what JSON Formatter & Validator gives for its own sample values. Open the tool above and change anything to try your own.

JSON

{"name":"Ada","skills":["math","code"],"address":{"city":"London","zip":"N1 9GU"},"active":true}

Formatted

{
  "name": "Ada",
  "skills": [
    "math",
    "code"
  ],
  "address": {
    "city": "London",
    "zip": "N1 9GU"
  },
  "active": true
}

Minified

{"name":"Ada","skills":["math","code"],"address":{"city":"London","zip":"N1 9GU"},"active":true}

About JSON Formatter & Validator

Make JSON readable, check that it is valid, or shrink it for transport. If there is a mistake, the error message shows where it is.

FAQs

What if my JSON is invalid?

An inline message points to the problem.

Is there an example?

Yes. Press Try an example to see how it works.

Related tools