Hex to Base64 Converter
Paste a hexadecimal byte string and convert it to standard or URL-safe Base64 instantly.
Hex Input
Alphabet:
Base64 Output
Quick examples
Summary
Paste a hexadecimal byte string and convert it to standard or URL-safe Base64 instantly.
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-06-09 ·
Reviewed by Nham Vu