WebToolsPlanet
Converter Tools

Hexadecimal to Base64

Enter hex bytes (spaced or continuous) and get the Base64-encoded string in one click.

Last updated: May 29, 2026

Client-Side Processing
Input Data Stays on Device
Instant Local Execution

Find this tool useful? Support the project to keep it free!

Buy me a coffee

What 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

1

Paste hex bytes into the input.

2

Click "Encode to Base64".

3

Toggle URL-safe if needed.

4

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.

Hex bytes
48 65 6C 6C 6F
Base64
SGVsbG8=

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.