JSON Schema Generator

Generate a JSON Schema from sample JSON. Detects types, formats like email and date, required keys and nested arrays, for draft 2020-12, 2019-09 or draft-07.

  • Free, no sign-up
  • Runs in your browser
  • Your data stays private

How to use the JSON Schema Generator

  1. Paste a sample JSON document.
  2. Choose the draft and options such as required keys and formats.
  3. Copy the schema.

Why use this JSON Schema Generator

  • Smart inferenceDetects integers, numbers, booleans, nulls, nested objects and arrays.
  • Format detectionRecognises email, uri, date, date-time, uuid and ipv4 strings.
  • Merges array itemsCombines every item in an array so optional keys are handled correctly.
  • Three draftsDraft 2020-12, 2019-09 and draft-07.

Frequently asked questions

How is the schema generated?

Each value is checked for its type and structure. Arrays are merged so keys missing in some items are not required.

Is the schema ready to use?

It is a strong starting point. Review required keys, ranges and formats because one sample cannot show every case.

Can I validate data against it?

Yes. Use the JSON Validator and paste the schema in its second box.

Related tools

More Developer Tools

User Reviews

–
No ratings yet
Write a review
Your rating *

Your email is never published. Reviews are moderated, and links aren't allowed.

What users are saying

No reviews yet

Be the first to share your experience with this tool — your feedback helps others.