Skip to main content

Convert Base64 to Binary

Instantly convert Base64 (b64) to Binary (0b) with our free online calculator.

Reviewed by Christopher FloiedUpdated
Base64Binary

How to Convert Base64 to Binary

Formula

To convert Base64 (b64) to Binary (0b): Convert Base64 to Binary

About Base64 (b64)

Base64 is a binary-to-text encoding scheme per RFC 4648 (replacing RFC 3548 and earlier RFC 2045 MIME encoding) that represents binary data using a 64-character alphabet of printable ASCII characters: A-Z + a-z + 0-9 + '+' + '/' with '=' as padding. The encoding maps every 3 bytes (24 bits) of input to 4 characters of output, producing a ~33% size overhead. Variants include URL-safe Base64 (replaces '+' with '-' and '/' with '_' for URL parameter compatibility per RFC 4648 §5), MIME Base64 (RFC 2045, used in email attachments per SMTP/IMAP), and PEM-format Base64 (for X.509 certificates + RSA private keys). Used in: HTTP Authorization Basic header encoding, embedded image data URIs (data:image/png;base64,...) for inline web images, JSON Web Tokens (JWT — RFC 7519), email MIME attachments, configuration-file binary data embedding (Kubernetes Secret values, GitHub Actions secrets), Telegram + WhatsApp message protocols, OpenSSL command-line output (-base64 flag).

About Binary (0b)

Base-2 numeral system using digits 0 and 1

More Number Bases Conversions

Related Tools