Convert Binary to Base64
Instantly convert Binary (0b) to Base64 (b64) with our free online calculator.
How to Convert Binary to Base64
Formula
To convert Binary (0b) to Base64 (b64): Convert Binary to Base64
About Binary (0b)
Base-2 numeral system using digits 0 and 1
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).