EN
PortuguêsEnglishEspañolDeutschFrançaisItaliano日本語Русский中文
Home Favorites
Voltar

JSON Schema validator

Validate a JSON against a JSON Schema and see each error with its exact path, or generate a schema from a sample JSON.

How to use

Validate JSON against a schema.

Available in: PortuguêsEspañolEnglishDeutschFrançaisItaliano日本語Русский中文

Next toolNDJSON validator (JSON Lines)→
Advertisement

JSON Schema validator: what it is for

Paste the JSON Schema and the JSON and instantly see whether it is valid. Each error shows the exact field path (such as /items/2/price) and the rule that failed: missing required field, wrong type, minimum value, text pattern and more. The Generate schema button creates a starting schema from a sample JSON, with types and required fields.

Everything runs in your browser: nothing you paste or open is sent to a server.

How to use

  1. Paste the JSON Schema on the left.
  2. Paste the JSON on the right.
  3. Fix the errors shown by path.

When to use it

  • Test API contracts.
  • Validate configuration files.
  • Create a schema from an example.

Frequently asked questions

Which JSON Schema versions work?

Validation uses Ajv with draft 2020-12, which also accepts the vast majority of schemas written for draft-07 and 2019-09. The $schema field is ignored so it does not block validation.

What does Generate schema do?

It reads the JSON on the right and builds a basic schema with the type of each field and the list of required fields. It is a starting point for you to add formats, limits and enums.

Does my data leave the browser?

No. Validation runs entirely in your browser.

Is it really free?

Yes, 100% free. No sign-up, no subscription and no usage limits. All Tools123 are free.

Similar tools

Thank you so much for helping!

Every donation helps keep the site online. The tools were made to help you, but we have server costs. If you can chip in, it helps a lot! Pick or type an amount:

Secure payment by Stripe. Opens in a new tab.

The tools are provided as is, without warranty. We are not responsible for the results or for how they are used.