A practical, dependency-free schema check
The validator implements a focused JSON Schema subset for everyday API payloads: type, required, properties, items, enum, const, minLength, pattern, minimum, maximum and additionalProperties.
Readable errors
Every issue includes a JSON path such as $.user.email or $.items[2]. Multiple errors are collected in one pass, making it easier to correct a whole payload at once.
Local-only: both JSON values are parsed and checked in this tab with a small built-in validator. Nothing is sent to an external engine or server.
Edge cases and hard limits
The validator is written from scratch in about forty lines, with no library and no network call. Both boxes are parsed with JSON.parse() first, then a recursive function walks your document and the schema together, reporting every failure it finds with a path such as $.roles[0] rather than stopping at the first one. It understands type (including integer, which rejects 4.5 while number accepts it), required, properties, items, enum, const, minLength and maxLength counted in Unicode code points so emoji count as one character, minimum and maximum for finite numbers, and additionalProperties: false. You get a Valid or Invalid verdict, the list of problems with their paths, and the input pretty-printed with two-space indentation for easier reading.
Formats, sizes and other limits
This is a deliberate subset, so a schema that leans on modern keywords will not be checked the way you expect. $ref and $defs are ignored — references are simply not followed, which can make an invalid document look valid — and neither allOf, anyOf, oneOf, not, if/then/else, pattern, format, multipleOf, patternProperties, uniqueItems, minItems nor the draft-04 boolean form of exclusiveMinimum is supported. The schema itself is never meta-validated, so a nonsense schema can pass silently. Validation runs synchronously on the main thread, meaning a very large paste can freeze the tab for a moment, and only one document/schema pair is checked at a time.
Privacy: processed in your browser
Both the JSON and the schema stay in the page: they are read from the textareas, checked in memory and rendered back to you. Nothing is posted anywhere — there is no API, no logging and no backend on this site, and the page works with the network switched off.
Frequently asked questions
Which JSON Schema keywords are actually supported?
<code>type</code> (including <code>integer</code>), <code>required</code>, <code>properties</code>, <code>items</code>, <code>enum</code>, <code>const</code>, <code>minLength</code>, <code>maxLength</code>, <code>minimum</code>, <code>maximum</code> and <code>additionalProperties: false</code>. Anything else in a schema is read but not enforced.
My schema uses $ref — will the result be correct?
No, and that is the most important limitation here. References are ignored rather than resolved, so parts of your document that a full validator would reject can be reported as valid. Inline the referenced definitions before validating.
Does it check that my schema is a valid schema?
No. There is no meta-validation against any JSON Schema dialect, so a misspelled keyword such as <code>requried</code> is silently ignored and the document passes. Keep an eye on spelling if a rule seems to have no effect.