# Base64 to hex

> Base64 to hex shows the raw bytes behind a Base64 string as hexadecimal pairs, such as 48 65 6c 6c 6f. Free, no sign-in. Works on phone and computer.

Page: https://ishowpdf.com/tools/base64-to-hex

## What Base64 to hex does

Base64 to hex shows the raw bytes behind a Base64 string as hexadecimal pairs, such as 48 65 6c 6c 6f. Developers use it to inspect keys, hashes, tokens and file headers, or to compare data coming from two different systems.

The result updates as you type. Choose what goes between bytes: a space, nothing, a colon, or a 0x prefix with commas, which is ready to paste into a C or JavaScript array. You can switch to capital letters, and the number of bytes is shown under the result. URL-safe Base64 and data: links are read too.

## How to use Base64 to hex

1. **Paste the Base64**: The hex appears as soon as there is text in the box.
2. **Pick a separator**: Choose spaces, colons, nothing, or 0x-prefixed values.
3. **Choose letter case**: Tick Capital letters if your system expects A to F in upper case.
4. **Copy the hex**: Copy the result or download it as a text file.

## Questions

**How do I convert Base64 to a hex string?**

Paste it into the box and choose Nothing as the separator. You get one continuous hex string, two characters per byte.

**How many bytes does my Base64 hold?**

The count is shown under the result. As a rough guide, every 4 Base64 characters carry 3 bytes.

**Why do I see an error about invalid Base64?**

The text contains characters that Base64 does not use. Look for stray quotes, commas or a cut-off copy.

More free tools: https://ishowpdf.com/tools
