JSON Schema Generator

Input
Output

JSON Schema Generator and Validator

Generate a JSON Schema from a sample in one paste, or switch to Validate to check JSON against a schema you already have. There is also a visual schema builder if you prefer to design one from scratch.

How do I use the JSON Schema Generator?

  1. Paste a sample JSON document.
  2. The generated schema appears in the Output box.
  3. To validate, choose Validate against schema and paste the schema in the second box.

What does the JSON Schema Generator do?

  • Generates types, required keys and formats from a sample
  • Validates with clear errors and the path of each one
  • Visual Schema builder for designing schemas by hand
  • Mock data generator that creates records from a schema

Frequently asked questions

Which JSON Schema drafts are supported?
Generated schemas use draft 2020-12. Validation supports the core keywords of draft-07 and 2020-12.
Can it load linked schemas?
Yes, if you allow it: choose Linked schemas: load from the web.
Can I make test data from a schema?
Yes. The Mock data tool generates realistic records from a schema or a sample.

More JSON tools

Bracely has 108 JSON tools in one page. Related ones:

Runs entirely in your browser. Nothing you paste is uploaded. Made by Saurabh Pagrut · About · Privacy policy
Last updated · Version 6.7 · Changelog
Saurabh Pagrut on GitHub · LinkedIn · X · YouTube · Instagram