IIX Lab ← All tools

JSON Validator & Formatter

Validate JSON, find the exact line and column of a syntax error, then format or minify it in one click.

No subscription.$9 once, unlimited. Not $12 a year for an occasional export.
No silent failures.Every error names the line, the column and the likely fix.
No cleanup afterwards.Merged cells expanded, leading zeros kept — ready to import.

Need this in a pipeline, not a browser tab?

Validating a folder of JSON files by hand does not scale. One API call does.

Get the All-Access Bundle — $49 once

Free for 10 rows per table · $9 once, no subscription

Runs entirely in your browser. No upload, no account, no analytics.

Why valid-looking JSON fails to parse

Three defects are invisible in an editor and fatal to a parser.

A trailing comma. {"a": 1,} is invalid JSON and valid JavaScript. If your file was written by hand or produced by a template, this is the first thing to look for at the reported offset.

Smart quotes. A word processor turns " into “ and ”. They look like quotes and are not.

A byte-order mark. If the file starts with EF BB BF, the first character before { is not whitespace and not a brace. Most parsers reject it with a message that mentions token 0 but does not mention a BOM.

How to find the real position. The byte offset in the error message counts bytes, not characters. If the file contains non-ASCII text, the line you are looking at may be several lines away from the offset.

Questions

Why does the error not give a line number?

Many parsers report only a byte offset. Convert it to line and column before reading the file.

Is a trailing comma really invalid?

In JSON, yes. JavaScript object literals allow it; JSON does not.

Can I fix structure with find and replace?

No. Changes inside strings break values. Parse, modify, then re-serialise.