Zod 4 Released: Faster, Smaller, and More Efficient Type Validation

2025-05-19
Zod 4 Released: Faster, Smaller, and More Efficient Type Validation

After a year of active development, Zod 4 is now stable! It's faster, slimmer, more tsc-efficient, and implements some long-requested features. Published alongside Zod 3 for easier migration, Zod 4 boasts performance improvements of 6.5x to 14.7x in various benchmarks. Generics have been overhauled, significantly reducing TypeScript type instantiation. A lightweight `zod/v4-mini` variant offers an 85% reduction in core bundle size. New features include support for recursive types, JSON Schema conversion, custom metadata, and improved error handling.

Development type validation