JSON formatter and validator

JSON is a text data format with strict syntax. Paste yours to format or minify it, or to find the exact line and column of an error. Free, in your browser.

62 B
Output shape

Valid JSON

88 B
{
  "name": "VulCode",
  "active": true,
  "services": [
    "vulbio",
    "flaem"
  ]
}

How to use it in three steps

Step by step, with this page's example.

  1. 01

    Paste the JSON.

  2. 02

    Choose pretty-print or minify.

  3. 03

    Copy the result, or fix the error at the given line and column.

What you enter

{"a":1,"b":[1,2,}

What you get
Unexpected token } in JSON
Line 1, column 17

Questions

What is JSON?
It is a text format for data built from curly braces, quoted keys and values, used by most APIs. Its syntax is strict: no comments and no comma after the last item.
How do I check whether JSON is valid?
Paste it into the tool. Valid JSON gets formatted, and invalid JSON shows an error message with the line and column.
Can I put comments in JSON?
No. The JSON standard does not allow them, just like single quotes instead of double quotes. Comments only work in related formats such as JSONC.
How do I minify JSON to one line?
Paste the JSON and choose minify instead of pretty-print. The tool removes the extra spaces and line breaks.
Does my JSON go anywhere?
No. Parsing happens in your browser and nothing is sent to a server.
Why is a trailing comma an error?
The JSON spec does not allow a comma after the last item, even though JavaScript accepts it. It is the most common mistake in hand-written files.

Tell us what you want to build.

A free quote comes back within an hour during working hours. You talk to the person who writes the code.