Skip to content
masterclass Buddy

Pydantic · Type Alias

Base64Str

Base64Str is a Pydantic string type for standard, non-URL-safe base64 data. It decodes input during validation and serializes the value back to base64 text.

Last updated

Syntax

Base64Str

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

Subscribe
  • Base64Bytes
  • Base64UrlBytes
  • EncodedStr
  • Base64Encoder

Source: Pydantic Types. Checked 2026-11-03.