Base64 to Hex Converter
Base64 ↔ hex on the raw bytes. URL-safe Base64 and unpadded input are accepted, and hex may use spaces, colons or a 0x prefix.
25 bytes
Base64 to Hex Converter — Free Online Tool
Converts between Base64 and hexadecimal in both directions on the raw bytes, accepting standard and URL-safe Base64 with or without padding and hex with spaces, colons or a 0x prefix, and showing the decoded byte length, useful for comparing certificate fingerprints, key material and hashes emitted in different encodings by OpenSSL, JWT libraries and database drivers.
How to use the Base64 to Hex Converter
- Open the tool above — it runs entirely in your browser, so your input never leaves this page.
- Paste or type your input into the field, then press the relevant button (e.g. Encode / Decode, Generate, or Convert).
- Copy the result from the output area with the copy button orCtrl/Cmd + C.
- No signup, no upload, and no tracking — repeat as often as you need.
Frequently asked questions
Why convert between Base64 and hex at all?
Different tools print the same bytes differently — OpenSSL shows a certificate fingerprint as colon-separated hex, a JWK shows key material as URL-safe Base64, and Postgres shows bytea as \x-prefixed hex. Converting is how you confirm two of them are the same key.
Does it accept URL-safe Base64 without padding?
Yes. The URL-safe alphabet (- and _) is normalized and missing = padding is restored, which is what you need for JWT segments and JWK values.
Which hex formats are accepted as input?
Plain hex, colon-separated, space-separated, comma-separated, a leading \x, and 0x prefixes — all are stripped before decoding. The digit count must be even, since each byte is two hex digits.
Free & private — why use this Base64 to Hex Converter
The Base64 to Hex Converter runs 100% client-side in your browser. Your data is never uploaded to a server, no account is required, and the tool is completely free. It works offline once the page has loaded and is part of a growing collection of privacy-first developer utilities.