Loading…

How to use Base64 ↔ Hex Converter

Pick a direction, then paste a Base64 string to get its hex bytes, or paste hex (with or without spaces / 0x) to get Base64. Whitespace is ignored.

Frequently asked questions

Why convert Base64 directly to hex?

Both encode the same bytes; going straight across saves you decoding to raw binary and re-encoding by hand when inspecting hashes, keys or tokens.

Does it accept URL-safe Base64?

Yes — the - and _ characters are converted to + and / and missing padding is added before decoding.

What hex formats are accepted?

Continuous or space-separated hex, upper or lower case, with an optional 0x prefix that is stripped automatically.

More Encoders & Decoders

Punycode / IDN Converter
RFC 3492 Punycode encode & decode for internationalized domain names (xn--)
ROT47 Cipher
ROT47 rotate all printable ASCII by 47 — symmetric encode & decode
ROT18 Cipher
ROT13 for letters plus ROT5 for digits — symmetric encode & decode
Numeric HTML Entities
Encode text to decimal/hex numeric HTML entities (&#NN;) and decode them back
URL Encode All Characters
Percent-encode every character as %XX — full-escape any string for URLs
Uuencode / Uudecode
Classic Unix uuencode & uudecode with begin/end wrapper for text payloads
XXencode / XXdecode
XXencode & XXdecode using the portable +-0-9A-Za-z alphabet
Base64 Encoder
Encode text or files to Base64 string format
Base64 Decoder
Decode Base64 strings back to plain text or binary
Base64 Image Encoder
Convert images to Base64 data URIs for CSS/HTML
Base32 Encoder
Encode text using RFC 4648 Base32 encoding
Base32 Decoder
Decode Base32 encoded strings back to plain text

← View all Encoders & DecodersBrowse all 1,100+ tools →