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 to use it

  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 it does

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 more than 60 JSON tools in one page. Related ones:

Runs entirely in your browser. Nothing you paste is uploaded. Privacy policy