Base64 to Hex Converter

Paste a Base64 string and get the hexadecimal representation of its underlying bytes. Optional spaced and uppercase output. Everything runs in your browser — nothing is uploaded.

BASE64
HEX
Waiting for input

How to convert Base64 to hex

Base64 and hex are two text representations of the same underlying bytes. This tool Base64-decodes your input to raw bytes, then re-encodes those bytes as hexadecimal — two hex digits per byte. Paste your Base64 above, optionally toggle Spaced or Uppercase, and click Copy.

Base64 vs hex

The two encodings make different tradeoffs. Hex uses 2 characters per byte — a 100% size overhead — but it's trivially readable byte by byte, which makes it ideal for hashes, byte inspection, and debugging. Base64 uses about 1.33 characters per byte (~33% overhead) and is far more compact, which is why it's the go-to for transport and storage where size matters. Reach for hex when you need to read individual bytes; reach for Base64 when you need it small. For a deeper comparison, see Base64 vs Hex.

Is this private?

Yes. The conversion runs fully in the browser with JavaScript — your Base64 is decoded and re-encoded locally and nothing is uploaded to any server. You can confirm in DevTools → Network: converting fires no request.

Frequently asked questions

How do I convert Base64 to hex?

Paste your Base64 into the input above. The tool decodes it to raw bytes locally, then re-encodes those bytes as hexadecimal — two hex digits per byte. Optionally toggle spaced or uppercase output, then click Copy.

Why is the hex twice as long as I expected?

Hexadecimal uses two characters to represent each byte (00 to ff), so N bytes always produce 2N hex digits. A 16-byte value becomes a 32-character hex string.

Does Base64 to hex change the data?

No — it's the same bytes, just a different representation. Base64 and hex are two text encodings of one identical byte sequence, so converting between them never alters the data.

How do I go from hex back to Base64?

Use the Hex to Base64 tool, which parses your hex digits back into bytes and encodes them as Base64.

Need plain Base64 encode/decode?

The main base64.dev tool handles text, files, and URL-safe mode with auto-detect.

Open base64.dev →