Base32 Encoder & Decoder
Encode text, hex or files to Base32 and decode Base32 back to exact bytes.
Enter text or hex to encode, or load an example.
Related Tools
TOTP / HOTP Generator & DebuggerGenerate, verify and debug TOTP and HOTP one-time codes and otpauth:// URIs.Base64 Encoder & DecoderEncode text to Base64 or decode Base64 back to textHex ↔ Text ConverterConvert text to hex bytes and hex back to text with UTF-8, ASCII or Latin-1.Base58 Encoder / DecoderEncode bytes to Base58 or Base58Check and decode them back.Number Base ConverterConvert integers exactly between binary, octal, decimal, hex and any base from 2 to 36
How to use
- 1.Choose Encode or Decode and the variant.
- 2.To encode, pick UTF-8, Hex or File, then set padding and output case.
- 3.To decode, paste Base32 and keep Strict for canonical input, or choose Lenient to ignore whitespace, accept lowercase and tolerate non-zero trailing bits.
- 4.Switch the output between Text, Hex and Base64, copy it, download the raw bytes, or use Swap to send the result the other way.
Base32 Encoder & Decoder
Base32 (RFC 4648) writes every 5 bytes as 8 characters from A–Z and 2–7, so it survives case-insensitive systems and avoids the look-alike digits 0, 1, 8 and 9. Base32hex uses 0–9 and A–V and keeps the sort order of the original bytes. The two alphabets are not interchangeable: decode a value with the variant that produced it. Text is always converted to UTF-8 bytes before encoding, and decoded bytes are shown as text only when they are valid UTF-8. Input is limited to 1,048,575 bytes (just under 1 MiB) so conversion stays fast in the browser.
Privacy
Processing stays in your browser. Text and files are never uploaded or saved.
Frequently asked questions
- What is the difference between Base32 and Base32hex?
- Both are defined in RFC 4648. Base32 uses A-Z and 2-7; Base32hex uses 0-9 and A-V and keeps the sort order of the original bytes. Decode a value with the variant that produced it.
- When should I use Lenient decoding?
- Use Lenient for hand-typed values such as OTP secrets. It ignores whitespace, accepts lowercase and tolerates non-zero trailing bits; every other rule still applies, and the tool tells you when the input was normalized.
