Base64 (defined in RFC 4648) converts arbitrary binary bytes or UTF-8 text into a 64-character ASCII alphabet (A-Z, a-z, 0-9, +, /, with = padding) so data survives text-only transports such as HTTP headers, JSON payloads, email MIME bodies, and XML documents without corruption.
Authorization: Basic credentials, embedding small assets as Data URIs, and passing tokens or binary blobs inside JSON.