Skip to the tool
GigaJSON

JSON Validator

All tools
Format and check
View and query
Convert
JSON to code
Encode and decode
Sample files
Guides Open GigaJSON
Input JSON
Output Result

The result appears here as you type.

Ready Runs in your browser

Check whether text is valid JSON. The page parses it the way a JSON parser in your code would, as strictly as the JSON standard. An error comes with its line, its column and what the parser expected there. Most mistakes can be fixed with "Repair", here or in JSON Repair.

How to use it

  1. Paste JSON or open a file.
  2. The result updates as you type: "Valid JSON" with a summary, or the first error and where it is.
  3. Use "Repair" to fix common mistakes, then copy or download the corrected JSON.

Read more: A JSONLint alternative for large JSON files · n8n $json expressions explained: paths, items and $jmespath · How to open a JSON file on Windows, Mac, a phone or in Excel · How to fix invalid JSON: the 10 most common errors

Private, and made for big files

This tool runs in your browser, in a background worker: nothing you paste or open is uploaded, and nothing is kept after you leave. JSON and XML input can be up to 1 GB, depending on available memory. Processing runs in a background worker; large analyses can take a minute or more. Already loaded features keep working if your connection drops. Loading another tool or jq for the first time needs a connection. When one tool isn't enough, GigaJSON opens your data with a tree, a table, JSONPath/JMESPath/jq queries, transforms, diff and history.

Read an error message

This object is missing a comma after 149:

{
  "id": "ord_002",
  "total": 149
  "status": "pending"
}

The validator reports Invalid JSON at line 4, column 3: Expected ',' or '}', found '"'. Line 4 is where the parser noticed the problem, at the quote that starts "status". The missing comma belongs at the end of the line before it. That's typical: look at the reported position first, then at the end of the previous line.

Other messages you're likely to see, for the same object written differently:

InputMessageFix
"tags": ["new", "gift",]Trailing commaRemove the comma before ] or }
id: "ord_002"Expected a "quoted" key, found 'i'Put the key in double quotes
"note": 'gift'Unexpected '''Use double quotes for strings

When the text is valid, the result says what it holds, such as Valid JSON: an object with 5 keys or a list of 120 items, so you can check that a file has the shape you expect. To fix these errors automatically, use JSON Repair; it lists every change it makes.

Questions

What makes JSON invalid?

Usually single quotes instead of double quotes, keys without quotes, trailing commas, comments, a missing comma or bracket, or values like NaN, undefined or Python's True and None.

Is my data uploaded?

No. The tool runs in your browser, in a background worker. Nothing you paste or open goes to a server, and nothing is kept after you leave the page.

How large a file can it handle?

JSON, XML and CSV input can be up to 1 GB, depending on memory. YAML input and JSON repair are limited to 128 MB. Validation runs in a background worker. jq, text editing and text-based exports have separate limits, shown when you use them.

Does it validate against a JSON Schema?

This page checks syntax only. To check data against a schema, open it in GigaJSON and use Types, then Validate.

Why does the error point at the line after my mistake?

The parser reports where it noticed the problem. A missing comma is only noticed at the start of the next value, so the error points at the following line. Check the end of the line before the reported one too.

Is JSON with comments valid?

No. Standard JSON has no comments. Files such as tsconfig.json allow them because their tools read a looser format (JSONC). To use one as plain JSON, JSON Repair removes the comments.

Is this a JSONLint alternative?

For large files, yes. JSONLint works well for a pasted snippet. This validator also opens files of hundreds of MB, up to 1 GB, and shows the line and column of the first error.

All tools