JSON Schema to Zod
Zod schemas with inferred types from a JSON Schema — string formats, min/max and enums become Zod checks.
Frequently asked questions
Which JSON Schema features are supported?
$ref to #/definitions or #/$defs, required, enum, const, oneOf/anyOf (unions), allOf, nullable types (type: ["string","null"] or nullable: true), nested objects, arrays, additionalProperties maps and common formats. External $ref URLs are not fetched.
Which Zod version?
The output uses the Zod 3 API (z.object, z.string().datetime(), z.record(z.string(), …)), which also works in Zod 4.
Is JSON Schema to Zod free?
Yes. JSON Schema to Zod is free to use. You get 3 free conversions a day without an account, and unlimited use when you sign in with Google.
Are my files uploaded?
No. The conversion runs inside your browser, so your files stay on your device and are never sent to our servers.
Does it work on mobile?
Yes. PixKaro works in Chrome, Safari, Edge and Firefox on Android, iPhone, Windows and Mac.