Zod to JSON Schema Converter

JSON →
library 3.25.2 ·javascript deprecated
verified May 27, 2026

zod-to-json-schema is a utility library designed to convert Zod schemas into JSON schemas, supporting various features like `$ref` resolution for recursive and recurring schemas, targeting OpenAPI 3.0 specifications, and enabling OpenAPI strict mode. The library is currently at version 3.25.2 and has seen a steady release cadence with recent minor updates. However, it is officially deprecated as of November 2025, with active maintenance ceasing due to Zod v4's native support for JSON schema generation. Users are strongly advised to migrate to Zod v4's built-in `z.toJSONSchema()` function. While `zod-to-json-schema` supports Zod v4 as a peer dependency since v3.25, it still primarily expects Zod v3-style schemas for conversion, making it a transitional solution.

total hits 16
actors 6 distinct systems
last hit 6d ago Script
GPTBot
5
ChatGPT-User
4
Script
1
Search engines
1
Humans
1

top countries 🇺🇸 United States · 🇨🇦 Canada · 🇩🇪 Germany · 🇫🇷 France · SI