Free online JSON Schema Generator. Automatically infer and generate standards-compliant JSON Schemas (Draft 2020-12, 2019-09, Draft-07, 06, 04) with format detection, required fields, multiple sample merging, and schema validation.
Provide 2 or more JSON samples. The engine merges discovered properties, infers optional fields, and handles nullable/union types.
JSON Schema has evolved through multiple draft versions. Below is an architectural overview of the supported drafts, their identifier schemes, and feature availability.
| Specification Draft | $schema URI | Identifier Keyword | Definitions Keyword | Key Additions / Notes |
|---|---|---|---|---|
| Draft 2020-12 (Latest Standard) Recommended | https://json-schema.org/draft/2020-12/schema |
$id |
$defs |
Latest standard specification. Standardizes prefixItems for tuple validation, unevaluatedProperties, and dynamic references. |
| Draft 2019-09 Modern | https://json-schema.org/draft/2019-09/schema |
$id |
$defs |
Major overhaul introducing $defs, unevaluatedProperties, and separate vocabularies for core, validation, and metadata. |
| Draft-07 (Most Widely Supported) Industry Standard | http://json-schema.org/draft-07/schema# |
$id |
definitions |
The most universally supported JSON Schema draft across backend SDKs, OpenAPI 3.0/3.1, Postman, and IDEs. |
| Draft-06 Legacy | http://json-schema.org/draft-06/schema# |
$id |
definitions |
Introduced $id (replacing id) and boolean schemas (true / false), propertyNames, and examples array. |
| Draft-04 (Classic Spec) Classic | http://json-schema.org/draft-04/schema# |
id |
definitions |
Classic specification using "id" (no dollar sign) and older schema validator conventions. |
typeDefines the valid data type(s): string, number, integer, boolean, object, array, or null.
requiredAn array of property names that MUST exist in the JSON object instance.
propertiesA dictionary where each key represents an object property name and the value is its corresponding sub-schema.
itemsDefines the schema rule applicable to all elements contained within an array instance.
additionalPropertiesWhen set to false, strictly prohibits properties not explicitly declared under properties.
formatSemantic validation for strings, such as email, uuid, date-time, date, and uri.
JSON Schema is an industry-standard specification for describing and validating JSON data structures. It acts as a clear contract between client applications, API endpoints, microservices, and databases. Using the PaceTools JSON Schema Generator, you can instantly turn any JSON payload or collection of sample payloads into an accurate, standards-compliant JSON Schema.
Paste your JSON data into the editor, drag-and-drop a .json file, or click any of the pre-built sample buttons (User, Order, API Response, Product).
Select your preferred specification draft (Draft 2020-12, Draft 2019-09, Draft-07, 06, or 04), choose required field rules, and toggle string format detection.
Copy the generated JSON Schema to your clipboard, download it as a .json file, or run live instance validation in the built-in testing tab.