JSON Schema Validator
This tool validates JSON data against a JSON Schema. It lists each problem with its path, such as a wrong type, a missing key or a value out of range.
- Free, no sign-up
- Nothing is sent to a server
- Worldwide
How to use JSON Schema Validator online
- Paste the data. In the first box.
- Paste the schema. In the second box.
- Read the answer. See Yes or No and the problems.
- Fix and retry. Change the data or the schema.
Why use this free JSON Schema Validator
- Path for each problem
- Common keywords supported
- anyOf, oneOf and allOf
- Local references
- Names which text is invalid
- Share by link
What a schema is
A JSON Schema is a JSON document that describes what other JSON should look like: which keys are needed, what type each value has, which ranges and patterns are allowed. APIs and configuration files use schemas to check data before they use it. A schema turns a vague expectation into a check that anyone can run.
How to use the page
Paste your data in the first box and the schema in the second. The tool reports whether the data is valid and, if not, lists each problem with the path to the value, such as $.age, and what is wrong. Both texts must be valid JSON, and the tool names which one is not if there is a syntax error.
A worked example
The data has a name, an age of -3 and an email without an at sign. The schema asks for a name and an age, an integer age of at least 0, and an email in email form. The tool finds 2 problems: the age must be at least 0, and the email must be an email address. Fix them and the answer turns to Yes.
Supported keywords
The tool supports the common keywords: type, enum, const, required, properties, additionalProperties, items, minimum, maximum, exclusive limits, multipleOf, minLength, maxLength, pattern, format email, minItems, maxItems, uniqueItems, allOf, anyOf, oneOf, not, and references that start with #. Other keywords are ignored, so a rule outside this list is not checked.
Limits
Schema drafts differ in small details, and full validators support more formats and remote references. This tool is for quick checks while you write a schema or a sample. Results are shown for up to 200 problems. For a production check, use a full validator in your own code, and use this to understand why data fails.
Using the tool
Change the text or any option of the JSON Schema Validator and the answer moves straight away. Undo and redo step back through your earlier text.
JSON Schema Validator: frequently asked questions
What is JSON Schema?
Which keywords are supported?
What does the path mean?
Does it fetch remote references?
What if my schema is invalid JSON?
Does the JSON Schema Validator keep a copy of my text?
Can I save what the JSON Schema Validator gives me?
Related searches for JSON Schema Validator
- JSON Schema Validator online
- free JSON Schema Validator
- JSON Schema Validator online free
- JSON Schema Validator for mobile
- JSON Schema Validator without sign up
- JSON Schema Validator – Text & Writing Tools
JSON Schema Validator is a free online tool on MAITBOX, in the Text & Writing Tools group. It runs in your browser, so what you type is not sent to a server. It works on Android and iPhone, and on Windows, Mac and Linux, with no download and no account.