Hex to Base64 Converter
Paste a hexadecimal byte string and convert it to standard or URL-safe Base64 instantly.
Use the Hex to Base64 Converter
Hex Input
Alphabet:
Base64 Output
Quick examples
Summary
This tool converts a hexadecimal byte string into a Base64-encoded string entirely in your browser. It accepts space- or colon-separated hex pairs as well as continuous hex strings, and supports both standard and URL-safe Base64 alphabets. No data is sent to any server.
How it works
- Paste your hex string into the input field (e.g. 48656c6c6f or 48 65 6c 6c 6f).
- Select Standard or URL-safe Base64 alphabet.
- Click Convert to generate the Base64 output.
- Copy the result with the Copy button.
- Use Swap to reverse the direction and decode Base64 back to hex.
Use cases
- Converting hex-encoded cryptographic hashes or digests to Base64 for JWT or API use.
- Transforming hex byte dumps from network captures into Base64 for embedding.
- Encoding raw binary data expressed as hex for use in data URIs.
- Verifying encoder/decoder round-trips during protocol debugging.
- Preparing hex-formatted keys or nonces for Base64-based storage formats.
- Converting hex color bytes or binary blobs for web or mobile data transport.
Frequently Asked Questions
Last updated: 2026-05-23 · Reviewed by Nham Vu