Home › Blog › How to check if JSON is valid
Developer Tools guide

How to check if JSON is valid

A single missing comma can break a whole API request. The validator parses your JSON the same way a browser does and points to the first error.

Open the JSON Validator tool

Step by step

  1. Paste your JSON. Paste it into the left box.
  2. Read the verdict. The result says Valid or Invalid and shows the line and column.
  3. Fix and recheck. Edit the text; the verdict updates immediately.

Tips for better results

  • Look at the line and column in the message, then check the character just before it.
  • Standard JSON has no comments, trailing commas or single-quoted strings.
  • Use the JSON Formatter once the data is valid to make it readable.

Limits to know

  • Formats: JSON (RFC 8259)
  • Size: Limited by browser memory
  • Notes: Runs fully in your browser. Very large inputs (several MB) can slow the page.

At a glance

ToolJSON Validator
CategoryDeveloper Tools
Works withJSON (RFC 8259)
Size limitLimited by browser memory
Where it runsIn your browser tab; your input is not uploaded
CostFree, no sign-up

Frequently asked questions

What counts as valid?

Anything that a standard JSON parser accepts: objects, arrays, strings in double quotes, numbers, true, false and null.

Does it check a schema?

No. It checks syntax only, not whether the fields match a particular schema.

If something does not work

  • The result is empty. Check that you typed or pasted text into the input box and that the options are not hiding everything.
  • The page feels slow. Very large text slows any browser tool. Work on smaller parts.
  • Characters look wrong. Make sure the text is saved as UTF-8 in the program you copied it from.
  • Copy does not work. Some browsers block automatic copying; select the result and copy it yourself.

Still stuck? Use Report a Problem and tell us the tool, your browser and what happened, or read the Help Center.

Related tools and guides

More tools like this are in Developer Tools, or browse all tools.