JSON to JSON Schema

Generate draft 2020-12 schemas in your browser

Paste a JSON sample and generate a JSON Schema that describes its shape. The tool infers types, marks present keys as required, builds item schemas for arrays (merging mixed elements), recurses into nested objects, detects common string formats (date-time, email, uri, uuid), and turns small repeated string sets into enums. Nothing leaves this page.

Required properties
additionalProperties
Detection
All parsing and inference happen locally. Your JSON is never sent to any server.
JSON Schema (draft 2020-12)

    
The $schema keyword pins this to JSON Schema draft 2020-12. Change it if your validator targets an older draft.