Why it matters
APIs often publish JSON Schema or OpenAPI, while TypeScript apps validate with Zod or Valibot. Rewriting by hand drifts from the source.
Paste the schema and get both libraries' code with the same rules.
How to use it
- Type or paste your input; the example shows the format.
- Press Convert schema. Results also update as you type.
- Read the summary line, then the table, notes or output below it.
- Copy or download what you need. Nothing leaves this page.
FAQ
Does it handle recursive schemas?
References are emitted by name. For a schema that references itself, wrap the reference in z.lazy() or v.lazy().
Is my input uploaded?
No. The tool runs in your browser and nothing you type, paste or open is sent anywhere.
Can I rely on the result?
It follows the public specification or formula named on this page and says where it simplifies. Check anything critical against the official tool or documentation before you ship it.