Base64 to Hex Decoder
Decode Base64 to hex bytes - URL-safe variant, separator options, uppercase toggle, UTF-8 aware. Free, client-side, instant, offline, secure.
- Runs in your browser
- Nothing uploaded
- Free, no sign-up
Decode Base64 back to the underlying bytes and render them as hexadecimal. Choose a separator, toggle uppercase, accepts URL-safe variants and missing padding - all client-side.
How to Use Base64 to Hex Decoder
- Paste your Base64 string into the input field. Newlines and spaces inside the Base64 are stripped automatically (a common issue with email-wrapped or manually line-broken payloads).
- Pick your separator.
Spaceis most readable for humans,Nonepacks tightest,Commapastes into programming language byte arrays,0x-prefixdrops straight into C / Rust / Go source code. - Toggle uppercase if your downstream tool expects
A-Finstead ofa-f. Some protocol specs (MAC addresses, ITU-T) lean uppercase; most modern APIs prefer lowercase. - Leave URL-safe on if you’re pasting a JWT fragment, a URL parameter, or anything from Python’s
base64.urlsafe_b64encode(). The-and_chars get translated to+and/before decoding. - Watch the stats line. You’ll see N bytes decoded, the hex output length, and any extras:
+2 padmeans we auto-added==,URL-safemeans we translated-_. - Copy or download. Copy writes to clipboard; Download saves as
hex-<timestamp>.txt. Keyboard shortcut:Ctrl+Enter(orCmd+Enteron Mac) does both in one step. - Fix errors. If you see “Invalid Base64: unexpected character”, the error names the exact offending character and its position in the sanitized string - remove or replace it and retry.
Frequently Asked Questions
What is hex output and when is it useful?
Hexadecimal represents each byte as two characters from 0-9 and A-F. It is useful for inspecting binary data, generating cryptographic hashes, debugging network protocols, and working with memory dumps.
What separator options are available?
You can choose no separator (ffd8ffe0), spaces (ff d8 ff e0), colons (ff:d8:ff:e0), or dashes (ff-d8-ff-e0). Pick the one that matches your target format.
Why would I want uppercase hex?
Uppercase hex (FF d8) is traditional in many older tools and some programming languages. Lowercase (ff d8) is more common in modern web and cryptographic contexts. The tool supports both.
Does it support URL-safe Base64?
Yes. The tool detects URL-safe Base64 that uses – and _ and handles missing padding automatically before converting to hex.
Is my data secure?
Yes. All Base64 decoding and hex conversion runs in your browser. Input and output never touch a server.
Do you store the decoded data?
No. Nothing is saved, logged, or transmitted. The tool is fully client-side.
Is the converter free?
Yes. Completely free with no sign-up, no usage limits, and no watermarks. Open the page and use it as many times as you need.
What if my Base64 is malformed?
The tool validates input and shows a specific error message pointing to the problem, such as invalid characters or incorrect length.
Can I copy the hex output to clipboard?
Yes. The Copy button puts the full hex string on your clipboard with your chosen separator and case.
Is there a size limit?
No hard limit. The tool handles Base64 strings from a few bytes to multiple megabytes, constrained only by browser memory.
Related Tools
Add Hex Numbers →
Add Hex Numbers instantly. Free, offline, client-side tool that outputs results in both hex…
ASCII to Hex Converter →
Convert ASCII to Hex - code points or UTF-8 bytes, space/comma/0x-prefixed, uppercase or lowercase.…
Base32 to Hex Converter →
Base32 to Hex Converter - pick separator, case, and prefix. Free, client-side, instant, offline,…
Base58 to Hex Converter →
Decode Bitcoin, Ripple, or Flickr Base58 strings to hex - with separator, case, and…
BCD to Hex Converter →
Convert packed BCD to hexadecimal - decimal-value or nibble mode, BigInt precision, COMP-3 sign.…
Convert Decimal to Hex →
Convert decimal numbers to hexadecimal instantly, individually or in bulk. Free, client-side converter with…
Convert Gray Code to Hex →
Decode Gray code (reflected binary) to hex, decimal, or binary. Accepts binary or hex-packed…
Convert Hex to ASCII →
Decode hexadecimal bytes to ASCII text. Auto-detect separators, handle non-printable bytes four ways, batch…
Convert Hex to BCD →
Convert hex to Binary Coded Decimal - packed, unpacked, or COMP-3 with sign nibble.…
Convert Hex to Binary →
Convert hex to binary with nibble-accurate bit widths. 5 grouping modes, 0b prefix toggle,…
Convert Hex to Decimal →
Convert hex to decimal with BigInt precision. Explicit bit-width two's complement for signed values,…
Convert Hex to Gray Code →
Convert hex to Gray code (reflected binary) with BigInt precision. Handles 32+ bit values…