Base64 to Hex Converter (and back)
Paste a Base64 blob to see the same bytes as hexadecimal, or paste hex to re-encode those bytes as Base64. Useful for keys, hashes, certificates and binary payloads that come in one representation but are needed in the other. Choose the hex separator and case, accept and emit URL-safe Base64 (- and _, no padding), and decode hex written with spaces, colons or 0x/\x prefixes. Everything runs locally in your browser — nothing is uploaded.
How to use
- Choose the direction: Base64 to hex, or hex to Base64.
- For Base64 to hex, pick the byte separator and letter case.
- Toggle URL-safe Base64 if your data uses - and _ instead of + and /.
- Paste your input and copy the converted result.
Frequently asked questions
- What is the difference from a normal Base64 or hex tool?
- Text encoders convert characters to Base64 or hex. This converts directly between the two byte representations — Base64 in, hex out, or hex in, Base64 out — without assuming the bytes are text.
- What hex formats can I decode?
- Any. Spaces, colons, newlines and 0x or \x prefixes are stripped, then the remaining hex digits are read two at a time. An odd number of digits is reported as an error.
- What does URL-safe Base64 do?
- It uses - and _ instead of + and / and omits = padding (RFC 4648 §5). Enable it to decode such input or to produce URL-safe output.
- Is my data sent anywhere?
- No. The conversion happens entirely in your browser; nothing is uploaded.
Related tools
Text to Hex Converter (and back)
Convert text to hexadecimal bytes and decode hex back to text, with UTF-8 support, in your browser.
Random Bytes Generator
Generate cryptographically secure random bytes in 9 output formats — hex, Base64, Base64URL, binary, decimal, C array, Python bytes, UUID v4.
Base64 Encoder / Decoder
Encode text to Base64 or decode Base64 back to text, instantly.
Data URI Parser & Decoder
Decode a data: URI to see its MIME type, encoding, size and decoded contents, in your browser.
Protobuf Decoder (no .proto needed)
Paste base64 or hex protobuf bytes and read the fields — numbers, wire types, nested messages, strings and packed arrays — without a schema.
JWK to PEM Converter (and back)
Turn a JWK or a whole JWKS into PEM public keys and back, with the RFC 7638 thumbprint for each — computed in your browser.