AZ Tools

Base64 to Hex Converter (and back)

Developer

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.

Output

How to use

  1. Choose the direction: Base64 to hex, or hex to Base64.
  2. For Base64 to hex, pick the byte separator and letter case.
  3. Toggle URL-safe Base64 if your data uses - and _ instead of + and /.
  4. 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