Convert a schema between Zod, Pydantic, JSON Schema and TypeScript — instantly, privately
JSON Schema is the pivot: your source is parsed into a schema, then written out in the format you need. Free, no account, nothing leaves your browser.
Try an example below — instant, no setup needed.
JSON Schema is the pivot between all four formats — 12 directions in total.
Your converted schema will appear here — click Convert, or load an example above.
“Validate this schema” copies the schema and opens the Validator — paste it in the right box.
Tip: press Ctrl+Enter to convert. Conversion runs entirely in your browser — nothing is uploaded.
Result
What V1.5 does not do (yet)
- Unions of non-literal types (z.union, TypeScript A | B) — only literal enums and “| null” are supported.
- z.discriminatedUnion, z.record with non-string keys, and recursive types.
- Pydantic v1 (validators, v1 constr) — V1.5 reads and writes Pydantic v2 only.
- TypeScript generics (Array<T> with a type parameter, interfaces with <T>).
- Cross-file references ($ref to another file, imported types) — every type must be defined in the pasted text.
- Pydantic cannot say “optional but not null”: an optional field becomes Optional[...] = None. A field with a default is never required in Pydantic.
When something is not supported, the converter says so clearly — it never invents a wrong result.
Conversion is deterministic: same source, same result, every time. No AI, no server, no surprises. Need a schema from words instead? Generate from a description with StrictJSON →