Tool Logo

JSON Validator

Check whether your JSON is valid and see exactly where any error is.

0 characters

Loading tool…

How to use the json validator

The validator parses your JSON as you type, using the same strict JSON rules as every browser and API. If something is wrong you get the error message with its line and column, so a missing quote or a trailing comma takes seconds to find. Valid JSON gets a summary of its type, size and top-level structure.

  1. Paste your JSON into the box, upload a .json or .txt file, or load it from a URL.
  2. Read the result: a green "Valid JSON" or the error with its line and column.
  3. Fix the line shown and the result updates as you type.

When to use it

  • API responses

    Check a response body before you debug the code that reads it.

  • Config files

    Catch a stray comma in package.json, tsconfig.json or app settings before deploying.

  • Hand-written JSON

    Validate test fixtures and mock data you typed by hand.

Frequently asked questions

What makes JSON invalid?

The most common causes are trailing commas, single quotes instead of double quotes, keys without quotes, comments, and unescaped line breaks inside strings. Standard JSON allows none of these.

Does it show where the error is?

Yes. You get the error message with the line and column of the first problem, so you can go straight to it.

Does it accept JSON5 or comments?

No. It checks standard JSON (RFC 8259), the format APIs and JSON.parse expect, so comments and trailing commas are reported as errors.

Is my JSON uploaded?

No. Everything runs in your browser; nothing you paste or upload is sent to our servers.

How large a file can I check?

Files up to 10 MB can be uploaded. Very large documents may take a moment because everything runs on your device.