Hexadecimal to Base64
Enter hex bytes (spaced or continuous) and get the Base64-encoded string in one click.
Last updated: May 29, 2026
Find this tool useful? Support the project to keep it free!
Buy me a coffeeWhat is Hexadecimal to Base64?
Hexadecimal to Base64 parses a hex string into its underlying bytes and then Base64-encodes them. Input can be space-separated pairs (48 65 6C 6C 6F), colon-separated (48:65:6C), or a continuous hex string (48656C6C6F). All produce the same Base64 output.
How to Use Hexadecimal to Base64
Paste hex bytes into the input.
Click "Encode to Base64".
Toggle URL-safe if needed.
Copy the output.
Common Use Cases
- Encoding hex-formatted cryptographic keys or hashes for use in Base64-only APIs.
- Converting hex packet captures to Base64 for transmission in JSON payloads.
- Verifying encode/decode round trips between hex and Base64 representations.
Example Input and Output
Encoding "Hello" from hex to Base64.
48 65 6C 6C 6FSGVsbG8=Privacy
All processing runs in your browser. No data is sent to any server.
Frequently Asked Questions
Does my hex input need spaces?
No. The tool accepts continuous hex strings like 48656C6C6F as well as spaced, colon, or dash-separated pairs. The only requirement is an even number of hex characters.
What is URL-safe Base64?
URL-safe replaces + with - and / with _, and removes = padding — safe for embedding in URLs and filenames without percent-encoding.
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 Hexadecimal
Decode a Base64 string and display the raw bytes as hexadecimal values separated by spaces.
Binary to Base64
Convert binary numbers (8-bit byte groups) to a Base64-encoded string.
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.
JavaScript to Base64
Encode JavaScript strings to Base64. Covers btoa(), Buffer, URL-safe mode, and common JS encoding patterns.

