Skip to content
masterclass Buddy

Zod · Type Alias

ZodString

ZodString is the core schema type for validating strings. In the normal Zod API, create one with z.string(), then parse data or add string-format and length checks.

Last updated

Syntax

z.string()

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • $ZodType
  • $ZodStringFormatTypes
  • $ZodCheck
  • z.string()
  • z.email()
  • z.url()
  • z.parse
  • z.safeParse

Source: Zod Core | Zod. Checked 2026-11-03.