About the Base32 to Hex
Convert RFC 4648 Base32 strings, such as TOTP/2FA secrets, to hexadecimal, or convert hex back to Base32.
Key features
- Base32 → hex and hex → Base32 (RFC 4648 alphabet)
- Spaces, dashes and = padding are ignored
- Base32 input is case-insensitive
- Several values at once, one per line
- Clear message for invalid characters
- Runs in your browser
Convert Base32 and hexadecimal
Base32 writes bytes using 32 easy-to-read characters (A–Z, 2–7), while hexadecimal uses 16 (0–9, a–f). Developers often need to move between the two, for example when a library or test document expresses a key in hex but an app displays it in Base32.
Examples
| Base32 | Hex |
|---|---|
JBSWY3DPEHPK3PXP | 48656c6c6f21deadbeef |
GEZDGNBV | 3132333435 |
How Base32 works
- Every 5 bits become one character (2⁵ = 32).
- 5 bytes encode to exactly 8 characters.
=pads the last group to 8 characters.
Why Base32 is human-friendly
| Property | Benefit |
|---|---|
No 0, 1, 8 | Can't be confused with O, I, B |
| Case-insensitive | Typing in lowercase still works |
| Only letters and digits | Safe in URLs and file names |
Related tools
Read bytes as text with Hex to String, or encode text with String to Hex.
How to use the Base32 to Hex
- Type or paste your text into the input box.
- Choose the options you want.
- The result updates instantly as you type.
- Copy the output or download it as a .txt file.