Base64 ⇄ hexadecimal at the byte level, no text encoding in between — standard or URL-safe, your separator and case, runs in your browser
- Runs locally
- Category Encoding & Crypto
- Best for Checking small payloads, tokens, hashes, and encoded values quickly.
Output appears here.What this tool does
A free Base64 to hex converter that works at the byte level, so the bytes that go in are exactly the bytes that come out. Base64 and hexadecimal are two ways of writing the same raw bytes at different radixes: Base64 packs three bytes into four characters at base 64, while hex spends two characters per byte at base 16. Converting between them never passes through a text encoding, so there is no UTF-8 step and nothing to corrupt. Paste a Base64 string and it is decoded into bytes, then printed as hex; paste hex and it is parsed into bytes, then encoded back to Base64. A PNG, an AES key, a JWT signature or a DER certificate survives the round trip with every byte intact. Pick the standard alphabet or URL-safe variant, choose a bare hex run or space-grouped bytes, upper or lower case, and let the tool ignore newlines so pasted PEM blobs just work. Malformed Base64 and odd-length or non-hex input each get a precise error. Everything runs in your browser; nothing is uploaded.
Tool details
- Input
- Text + Numbers + Structured content
- The page exposes text boxes, numeric controls, file pickers, or structured inputs depending on the tool.
- Output
- Live result + Copy
- The result area focuses on usable output, with copy, download, or preview actions when supported.
- Privacy
- Browser-side processing
- The main tool logic does not call an external API, so inputs normally stay in the current tab.
- Save / share
- Shareable URL state
- Key settings are encoded in the URL so another person can reopen the same setup.
- Performance budget
- Initial JS <= 9 KB
- No WASM budget is declared, keeping the tool quick to open on mobile.
- Best fit
- Encoding & Crypto · Developer
- Category and role tags drive related tools, internal links, and quick fit checks.
How to use
-
1. Input
Paste or drop your content into the tool panel.
-
2. Process
Click the button. All processing is local in your browser.
-
3. Copy / Download
Copy the result or download to disk in one click.
How Base64 to Hex Converter fits into your work
Use it for quick browser-side encoding, decoding, hashing, token checks, and share-safe transformations.
Encoding jobs
- Checking small payloads, tokens, hashes, and encoded values quickly.
- Preparing values for APIs, URLs, docs, or support tickets.
- Avoiding account-based tools when the input might be sensitive.
Encoding checks
- Do not paste live secrets unless you are comfortable with local browser handling.
- Confirm whether the operation is reversible before sharing the result.
- For hashes, compare the exact algorithm and casing expected by the receiver.
Good next steps
These links move the current task into a more complete workflow.
- 1 Base85 / Ascii85 Encoder & Decoder Encode text to Ascii85 or Z85 and decode it back, UTF-8 safe, with z-compression and <~ ~> handling, all in your browser Open
- 2 Number Base Converter Number base converter — binary, octal, decimal, hex, and any base 2-36. Bitwise too. Open
- 3 Base64 Encoder & Decoder Encode or decode Base64 — text, files, and Data URLs. Runs entirely in your browser. Open
Real-world use cases
Move an AES key from a library to OpenSSL
Your app library prints a symmetric key as Base64, but the OpenSSL command you are scripting expects -K with a hex string. Paste the Base64 in, switch to no-separator lower-case hex, and copy the 32-byte (64-char) hex straight into your command. Because the conversion is byte-for-byte, the key is identical — no risk that an encoding step quietly changed a byte and left you debugging a "bad decrypt" for an hour.
Verify a JWT signature against a computed HMAC
A JWT signature is URL-safe Base64 with no padding. You computed the expected HMAC elsewhere and have it as hex. Set the alphabet to URL-safe, paste the signature segment, read the hex bytes, and compare them digit by digit against your HMAC. If they match, the token is authentic; if one byte differs you know exactly where, instead of staring at two unlike-looking strings.
Identify a binary blob by its magic bytes
A config file or database row holds a Base64 blob and you have no idea what it is. Convert it to space-grouped hex and read the first few bytes: 89 50 4e 47 is a PNG, ff d8 ff is a JPEG, 25 50 44 46 is a PDF (%PDF), 50 4b 03 04 is a ZIP. The hex view turns an opaque string into something you can recognize at a glance.
Compare a certificate fingerprint shown in two formats
One tool prints a certificate fingerprint as Base64, your browser shows it as colon-separated hex. Paste the Base64, convert to hex, and put both side by side to confirm you are pinning the same certificate. A single mismatched byte means a different cert — exactly what you want to catch before trusting a connection.
Common pitfalls
Using the wrong Base64 alphabet. A URL-safe string full of - and _ pasted in standard mode trips an illegal-character error, and a standard string with + and / fed as URL-safe is misread. Match the alphabet to the source, since JWTs and many web tokens are URL-safe while most other Base64 is standard.
Dropping a leading zero in hex. Writing f for the byte 0x0f gives an odd digit count, which the tool rejects rather than guessing. Always pad each byte to two digits, so 0x0f is 0f and a fifteen-byte key is 30 hex characters, not 29.
Expecting text out of binary bytes. Base64 to hex is a byte view, not a decode-to-text. If the Base64 holds an image or a key, the hex is raw bytes with no readable string inside. Use a Base64 decoder with UTF-8 only when you know the payload is actually text.
Privacy
Every conversion — the Base64 decode, the byte array, the hex render and the re-encode — is plain JavaScript running in your browser tab. No string you paste is uploaded, logged or sent anywhere, which matters because the values here are often secrets: keys, tokens, certificate material. The one caveat is the shareable URL: it encodes your input and options in the query string, so a "share link" pasted into chat lands that payload in the recipient server's access log. For anything sensitive, use the copy button and paste the text rather than sharing the URL.
FAQ
Tool combos
Folks in your role tend to reach for these alongside this tool.
- 555 Timer Calculator Astable f = 1.44/((R1+2R2)C) + monostable t = 1.1RC — pick R1, R2, C in Ω/kΩ and µF/nF, read frequency, duty cycle and pulse width — browser-only
- Add Line Numbers Number every line of pasted text — set start, step and separator, zero-pad to align, skip blanks, or strip numbers back off — browser-only
- Age Difference Calculator The exact gap between two birthdays — years/months/days, percentage, and the date one person is twice the other's age — browser-only
- AI Eval Planner Generate eval cases, pass criteria, and edge cases from an AI feature, risks, and user path.