Choose the grammar first
Strict JSON is the initial mode. JSONC permits line and block comments, but still rejects trailing commas. Switching modes checks again immediately, so a previous result is not treated as a check under the new rules.
JSON tools
Paste JSON to mark the error, duplicate keys and oversized integers. Choose a location to return to that line.
JSONC allows // and /* */ comments. Trailing commas are still invalid.
Paste JSON, or load the example to see a duplicate key and a large integer.
Paste JSON, or load the example to see a duplicate key and a large integer.
Input stays in this browser tab. It is not uploaded or stored.
Up to 500,000 UTF-16 units, depth 100, 50,000 values and 1,000 diagnostics.
The export contains diagnostics and short source excerpts, not corrected JSON.
An API response can parse successfully and still contain two values for the same field. This JSON validator keeps that evidence visible instead of replacing the first value with the last one. It separates a broken document from a document that deserves a closer look.
Use this JSON syntax checker when debugging a payload or reviewing configuration. You can validate JSON online without reformatting the source. The JSON lint report describes the selected grammar and the locations it actually checked.
A regular JavaScript object cannot retain two members with the same name. Here the scanner reads each member directly from the source. It reports the later occurrence, links it to the first location, and continues through otherwise valid structure. Escaped spellings such as "a" and "\u0061" are compared as the same key.
A long identifier may be legal JSON yet exceed the safe integer range of a consumer using JavaScript Number. The original digits stay in the editor. A warning points to the numeric token; no rounding, quoting or substitution is applied to your document.
Strict JSON is the initial mode. JSONC permits line and block comments, but still rejects trailing commas. Switching modes checks again immediately, so a previous result is not treated as a check under the new rules.
Line and column numbers start at one. Click a location to move the cursor there and open the excerpt for that finding. The reported position is where parsing failed; a missing comma or bracket can originate on an earlier line. Long lines are shortened around the location.
The check updates about 400 ms after you stop typing, and the previous findings stay in place. Copy and download wait until that check finishes. The list shows 50 findings at a time, while the export includes every diagnostic collected. Ctrl or Cmd + Enter checks immediately.
The JSON validator distinguishes syntax failure, valid syntax with warnings, and an incomplete check. A duplicate key is an interoperability warning rather than a claim that the JSON grammar forbids it. The same name in different objects is not a duplicate.
Integers outside −9007199254740991 through 9007199254740991 are flagged, including mathematical integers written with a decimal point or exponent. A token that becomes infinity in Number receives a separate overflow warning. This does not certify arbitrary decimal precision.
Diagnostics include a stable code, severity, JSON Pointer, offset, line, column and a short context excerpt. Repeated keys also include the first occurrence. Offsets and columns count UTF-16 units; CRLF counts as one line break. Slash and tilde in pointer segments are escaped.
Syntax validation checks whether text follows the selected grammar. Schema validation checks requirements such as properties and types. This page provides the former plus duplicate-key and numeric-risk diagnostics; a successful result is not evidence of API compatibility.
Inspect the highlighted location and the preceding member or array element. Common causes include a missing comma, a single quote, or text after the root value. Correct the original input and validate again; the tool does not guess a repair.
Select JSONC to permit // and /* */ comments. Trailing commas remain errors, and JSON5 features such as single quotes and unquoted names are unsupported. The report records which mode was used.
The input limit is 500,000 UTF-16 units, not a byte-size promise. Depth, value count, number length and report limits also apply. When a limit interrupts the check, the report explicitly records unknown syntax validity.
Formatting changes indentation; minifying removes insignificant whitespace. Neither is performed here. The JSON validator preserves the text used for every reported position. Use the related formatting tool when you are ready to change its presentation.
Found an unexpected result?
Load the example to compare a repeated-name warning with a numeric-risk warning. The JSON validator lets you inspect each original location before choosing what to change.