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.
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
Quoted-Printable Encoder & Decoder
Encode text to MIME Quoted-Printable (RFC 2045) or decode it back — handling =XX escapes, soft line breaks, and UTF-8 — entirely in your browser, with 76-character line wrapping on encode.
CRC-32 Calculator (CRC-32 & CRC-32C)
Compute the CRC-32 (IEEE 802.3, used by zip/gzip/PNG) or CRC-32C (Castagnoli) checksum of text or hex bytes, shown in lowercase hex, uppercase hex, and unsigned decimal — in your browser.
Hash Generator (SHA)
Generate SHA-1, SHA-256, SHA-384, and SHA-512 hashes from text.
URL Encoder / Decoder
Percent-encode text for URLs, or decode encoded URLs back to text.
Base64 Encoder / Decoder
Encode text to Base64 or decode Base64 back to text, instantly.
JSON Formatter & Validator
Format, beautify, minify, and validate JSON right in your browser.