Paste valid JSON into the input area on the left.
Set the root schema name (defaults to 'Root') using the option field.
Toggle export statements and readonly arrays to match your project style.
Click Convert or press ⌘↵ (Mac) / Ctrl+Enter (Windows) to generate a Zod schema.
Copy the generated schema or download it as a .ts file.
Generates Zod v3 schemas from any JSON object or array.
Supports nested objects — creates separate named schemas for each nested structure.
Correct Zod primitives: z.string(), z.number(), z.boolean(), z.null(), z.array(), z.object().
Optional export keyword on all generated schemas.
Optional z.array().readonly() and z.object() with .readonly() for immutable schemas.
Works entirely in your browser — JSON never leaves your device.
Keyboard shortcut ⌘↵ for instant conversion.