Skip to main content

Convert Hexadecimal to Base64

Instantly convert Hexadecimal (0x) to Base64 (b64) with our free online calculator.

Reviewed by Christopher FloiedUpdated
HexadecimalBase64

How to Convert Hexadecimal to Base64

Formula

To convert Hexadecimal (0x) to Base64 (b64): Convert Hexadecimal to Base64

About Hexadecimal (0x)

Base-16 numeral system using digits 0–9 and letters A–F

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).

More Number Bases Conversions

Related Tools