Python code Input
JSON Schema Output
Choose which class, dataclass, or BaseModel should be used as the root of the JSON Schema.
Parsing runs entirely in your browser. Your source never leaves the page.
Paste Python classes to produce a JSON Schema instantly.
Supports dataclasses, BaseModel classes, enums, TypedDicts, and modern type-hint syntax.