Skip to content
Simple Tools

JSON Schema validator

Check JSON data against a declared 2020-12 schema profile without network references or data mutation.

Enter data

A JSON Schema 2020-12 schema and a separate JSON data document. Fields marked with an asterisk are required.

Up to 50,000 UTF-16 units. Paste an anonymized document, not secrets.

Up to 50,000 UTF-16 units. Paste an anonymized document, not secrets.

About this tool

Valid JSON syntax does not establish required members or types. This validator checks data against a declared bounded JSON Schema 2020-12 profile. Unsupported keywords are rejected instead of producing misleading approval. References are not fetched, code is not executed and the document is not changed: no default insertion or string-to-number coercion.

How to use the calculator

  1. Paste a 2020-12 schema and review the supported keyword list.
  2. Paste JSON data separately and select “Process”.
  3. Review valid and issues; an empty path is the root, and /city is member city.

Calculation details

Formula and calculation method

All constraints at a schema location apply together. anyOf requires at least one matching alternative. Numbers are compared decimally without converting data tokens to Number, and string length counts Unicode code points. Reports contain paths and keywords, not data values.

Worked example

With type: object, city as string, required: ["city"] and additionalProperties: false, {"city":"Łódź"} returns valid: true. {"city":12} returns valid: false and an issue with path: "/city" and keyword: "type".

Limitations

  • Bounded JSON Schema 2020-12 profile: type (including type arrays), properties, required, additionalProperties, items, anyOf, enum, const, minimum, maximum, exclusiveMinimum, exclusiveMaximum, minLength/maxLength, minItems/maxItems and minProperties/maxProperties. title, description, default and examples are annotations. $schema may only identify https://json-schema.org/draft/2020-12/schema. Other keywords are rejected, not ignored.
  • Up to 50,000 UTF-16 units per field, 10,000 JSON values and 32 container levels; 256 schema nodes, 16 subschema levels, 64 properties/required/enum entries and 16 anyOf alternatives. A 100,000-operation budget applies. Numbers have up to 1,000 characters and exponents from −1000 to 1000. Duplicate member names and unpaired Unicode are rejected.
  • This is not a complete validator for every 2020-12 keyword. No $ref/$defs, format, pattern, multipleOf, uniqueItems, prefixItems, oneOf, allOf, not or conditionals. No schema fetching, API or business-rule checks. A report capped at 20 issues is not exhaustive.

Sources

Frequently asked questions

Are default values inserted?

No. default is an annotation. Data remains unchanged.

Does integer mean spelling without a decimal point?

No. The mathematical value counts: 1.0 and 1e2 are integers. The string "1" is not a number.

Does passing guarantee API correctness?

No. Only supplied rules in the supported profile are checked. Authorization and application rules are separate.

Is my data uploaded?

Content and output are not sent to a server or analytics or saved in the URL or form history. Copying is a separate action. Reset cannot remove clipboard copies, printouts or extension data. Use anonymized examples.

Read the supporting guide

Generator

Sample JSON generator

Create one deterministic sample from a bounded schema and check it before returning output.

Open tool
Generator

JSON to XML converter

Write JSON in a declared typed profile or reconstruct elements from an XML tree without guessing types.

Open tool
Generator

XML to JSON converter

Read the typed profile or ordinary XML as a tree retaining attributes, text and child order.

Open tool