Base64 to Hex

Convert Base64 to a byte-level hex dump for inspection, or build Base64 from raw hex — free, instant, and entirely in your browser.

0 B

Base64 to Hex, and back

Hex is the most direct way to inspect what Base64 actually decodes to — every byte shown as two hex digits, with no assumptions about text encoding. It's the standard view for debugging binary protocols, keys, hashes, and any payload that doesn't cleanly decode as UTF-8 text.

This tool decodes Base64 into a readable hex dump with offsets and an ASCII gutter, and can also build Base64 back up from raw hex.

How to convert Base64 to hex

  1. On the Base64 → Hex tab, paste the Base64 string to see a formatted hex dump.
  2. Use "Copy plain hex" for a continuous hex string with no offsets or spacing.
  3. On the Hex → Base64 tab, paste hex (spaces, colons, and dashes are stripped automatically) to get Base64 back.

Frequently asked questions

Why look at Base64 as hex instead of text?

Base64 always decodes to raw bytes, and not every byte sequence is valid text. A hex dump shows every byte exactly as it is — useful for inspecting binary protocol data, cryptographic keys, or debugging why a decoded value looks wrong.

What does the offset column in the hex dump mean?

It's the byte position of the start of that line, in hex — standard hexdump/xxd-style layout, with 16 bytes per line and an ASCII column on the right for any printable characters.

What's the difference between 'Copy plain hex' and the dump view?

The dump view is formatted for reading (offsets, spacing, an ASCII gutter) and is truncated for very large input. 'Copy plain hex' copies the full, continuous hex string for every decoded byte, with no formatting — ready to paste into another tool.

Can I go from hex back to Base64?

Yes — the Hex → Base64 tab accepts hex with or without spaces, colons, or dashes as separators, and encodes it to Base64.

Is there a size limit?

No hard limit on decoding, but the hex dump view is capped to the first 16 KB for readability and performance; 'Copy plain hex' always copies every byte regardless of what's displayed.