Base64 to Hexadecimal
Paste a Base64 string and convert it to hexadecimal — each decoded byte shown as a 2-digit hex value.
Last updated: May 29, 2026
Find this tool useful? Support the project to keep it free!
Buy me a coffeeWhat is Base64 to Hexadecimal?
Base64 to Hexadecimal decodes a Base64-encoded string to its underlying bytes and then represents each byte as a 2-digit hexadecimal value (e.g., 48 65 6C 6C 6F). This is a common operation in debugging, cryptography, and network analysis when you need to inspect the raw bytes behind an encoded value.
How to Use Base64 to Hexadecimal
Paste your Base64 string into the input box.
Click "Convert to Hex".
Toggle uppercase or lowercase as needed.
Copy the hex output.
Common Use Cases
- Inspecting Base64-encoded cryptographic hashes or keys in hex format.
- Debugging encoded network payloads at the byte level.
- Comparing Base64-encoded values against known hex signatures.
Example Input and Output
Decoding "Hello" (Base64: SGVsbG8=) to hex.
SGVsbG8=48 65 6C 6C 6FPrivacy
All processing runs in your browser. No data is sent to any server.
Frequently Asked Questions
What is the difference between Base64 and hex?
Both encode binary data as text. Hex uses 2 characters per byte (16 symbols: 0-9, A-F). Base64 uses ~1.33 characters per byte (64 symbols), making it ~25% more compact.
Can I get the output without spaces?
Currently the output uses space-separated values for readability. Copy the result and remove spaces with a text editor or the Remove Whitespace tool if you need a contiguous hex string.
Related Tools
Base64 Encoder/Decoder
Encode text to Base64 or decode Base64 to plain text — with URL-safe mode, auto-detect, and size stats.
Base64 to Binary
Decode a Base64 string and display the raw bytes as 8-bit binary numbers separated by spaces.
Base64 to Octal
Decode a Base64 string and display the raw bytes as octal values separated by spaces.
ASCII to Base64
Encode ASCII text strings to Base64. Commonly used for HTTP headers, API tokens, and config values.
HEX to RGB
Convert a HEX colour code to RGB values instantly. Shows the CSS rgb() function output with a live colour preview.
Hexadecimal to Base64
Convert hexadecimal bytes to a Base64-encoded string. Accepts space-separated or continuous hex input.

