Zød Jayson's Schemanizer

Convert  JSON → Zod → JSON Schema

Input

JSON

Define

Zod Type

Output

JSON Schema

How to Use

Conversion Flow

  1. Paste JSON data → Click "JSON → Zod"
  2. Edit Zod Schema (optional)
  3. Click "Zod → Schema" for result
  4. Or start with Zod code directly

Supported Types

  • Objects with nested properties
  • string, number, boolean, arrays
  • Validation rules & constraints
  • Optional and required fields
  • Enum values & default values

References

JSON Schema | Zod | JSON

API Reference

Endpoint

POST /api/convert

Request Body

{
  "code": "z.string()",
  "mode": "zod"
}

Modes

  • "json" - JSON to Zod Type
  • "zod" - Zod Type to JSON Schema

Response

{"schema": {...}} OR
{"zodCode": "z.object({...})"}