JSON Checker – Validate JSON Online

Paste your JSON into this free JSON checker to validate it instantly. Any error is pinpointed by line and column, so you can fix it in seconds.

JSON input

1

Result

Waiting for input

About this tool

A JSON validator checks that text follows the JSON specification: double-quoted keys and strings, no trailing commas, matching brackets and valid values. This checker parses your input as you type and reports the exact position of the first syntax error, then shows a neatly formatted version of valid data.

What is a JSON checker?

A JSON checker, also called a JSON validator, reads your text and confirms it follows the JSON standard (RFC 8259). When it does not, the checker tells you where parsing failed, so you can fix the problem instead of guessing.

This checker validates as you type, shows the line and column of the first error, marks that line in the line-number gutter, and displays a clean formatted version when the JSON is valid. Everything runs in your browser, so your data is not uploaded.

Common JSON errors and how to fix them

Most invalid JSON comes from a short list of mistakes. Here is each one with its fix.

Trailing comma     {"a": 1,}           ->  {"a": 1}
Single quotes      {'a': 1}            ->  {"a": 1}
Unquoted key       {a: 1}              ->  {"a": 1}
Missing comma      {"a": 1 "b": 2}     ->  {"a": 1, "b": 2}
Comment            {"a": 1 // note}    ->  remove the comment
Unclosed bracket   {"a": [1, 2}        ->  {"a": [1, 2]}

What does "Unexpected token" mean in JSON?

"Unexpected token" means the parser found a character that is not allowed at that position. It is usually a stray comma, a quote of the wrong type, or text outside the braces. The line and column shown in the red status bar point to that character.

"Unexpected end of JSON input" means the text stops too early, most often because a closing bracket, brace or quote is missing.

JSON syntax rules at a glance

Data is written as name and value pairs inside curly braces, and every name must be a string in double quotes.

A value can be a string, number, true, false, null, an object or an array. Strings must use double quotes, never single quotes.

Items are separated by commas, with no comma after the last item. Comments and undefined values are not allowed in standard JSON.

How to use it

  1. Paste your JSON, or open a .json file from your device.
  2. A green bar means the JSON is valid. A red bar gives the line and column of the first error.
  3. Click the red bar to jump the cursor to the problem, fix it, and the result updates instantly.

Frequently asked questions

What is JSON?

JSON (JavaScript Object Notation) is a lightweight text format for exchanging data between servers, apps and configuration files. It uses objects in curly braces, arrays in square brackets, strings, numbers, booleans and null.

What are the most common JSON errors?

Trailing commas after the last item, single quotes instead of double quotes, unquoted keys, missing commas between items, and unmatched brackets. Standard JSON does not allow comments.

Is my data uploaded?

No. Validation runs entirely in your browser, so your JSON never leaves your device.

More JSON tools

Online JSON Editor with Find and ReplaceEdit JSON online with live validation, find and replace (including regex), key sorting and undo. Everything runs in your browser.JSON Formatter and BeautifierFormat and pretty print JSON online. Turn minified or messy JSON into readable, indented, syntax-highlighted text with 2 spaces, 4 spaces or tabs.JSON Minifier – Compress JSON OnlineMinify JSON online by removing every unnecessary space and line break. See the size before and after, then copy or download the result.JSON to CSV ConverterConvert JSON to CSV online. Paste an array of JSON objects and get a CSV ready for Excel, Google Sheets or a database, with nested objects flattened into columns.CSV to JSON ConverterConvert CSV to JSON online. The first row becomes the keys, and each following row becomes a JSON object. Dotted headers are rebuilt into nested objects.JSON to YAML ConverterConvert JSON to YAML online for Kubernetes manifests, Docker Compose files, CI pipelines and other configuration. Paste valid JSON and copy the YAML.YAML to JSON ConverterConvert YAML to JSON online. Paste YAML from a config file and get valid, formatted JSON, with syntax errors explained.JSON Diff Checker – Compare JSON OnlineCompare two JSON documents online and see exactly what was added, removed or changed, listed by path. Click any difference to jump to it.JSON Tree Viewer – Explore JSON VisuallyView JSON as a collapsible tree online. Expand only the branches you need instead of scrolling through long, deeply nested text.

Advanced JSON tools

Need more than the basics? Our developer tools go further.