64 Base64Toolkit
Language:

Hex to Base64

Paste hex — get Base64 instantly. Flexible input, live conversion both ways, 100% client-side.

From hex dumps to Base64 payloads

Hexadecimal is how binary data usually appears in debugging output — xxd, Wireshark captures, register dumps, hash digests, database BYTEA columns. Base64 is how the same data usually needs to be delivered — JSON payloads, HTTP headers, Kubernetes secrets, cryptographic key material. This converter bridges the two instantly and locally. Input is cleaned automatically: whitespace, newlines, colons (MAC-address style), commas, and 0x prefixes are all ignored, so you can paste hex in whatever shape you found it.

Need the opposite view? Base64 to Hex shows the raw bytes behind any Base64 string.

Frequently Asked Questions

How do I convert hex to Base64?

Paste the hex string into the left box — spaces, colons, commas, line breaks and 0x prefixes are stripped automatically. The Base64 result appears live in the right box.

Why convert hex to Base64?

APIs and config formats often want Base64 while your source data is hex — e.g. converting a hex-encoded HMAC key from one system into the Base64 form another system expects, or turning a hex dump from Wireshark or xxd into a Base64 payload for a test request.

My hex has an odd number of digits — why is that an error?

Every byte is exactly two hex digits, so valid hex data always has an even length. An odd count means a digit was lost in copy-paste or the string is not actually plain hex.

Related Tools