Base32 Encoder and Decoder
About this tool
About Base32 Encoder
Base32 writes binary data using only 32 characters, the capital letters A to Z and the digits 2 to 7, so the result survives case-insensitive systems, spoken spelling and file names. It is what authenticator apps use for TOTP secrets, and what DNS-based systems and some IDs use. This encoder follows RFC 4648 exactly and also supports the Base32hex alphabet (0–9 then A–V, which keeps sort order) and Crockford Base32, which drops I, L, O and U to avoid confusion. Encode UTF-8 text, including accents and emoji, or switch Input is to Hex bytes to encode raw binary such as a key. Padding with = can be turned off for systems that omit it. Decoding ignores spaces, line breaks and letter case, accepts missing padding, and points to the exact character and position when something is wrong. If decoded bytes are not valid text, they are shown as hex instead of garbled characters. Nothing is uploaded.
Built and maintained by Abhi JainUpdated
How to Encode Base32
- 1
Choose Mode and Alphabet
Pick Encode or Decode, then RFC 4648, Base32hex or Crockford.
- 2
Set the input type
Choose UTF-8 text or Hex bytes, and turn Pad with = on or off for encoding.
- 3
Paste and copy
Paste your data into the left pane and copy or download the result. Use as input swaps it back.
Base32 Encoder: questions and answers
What characters does Base32 use?
Standard RFC 4648 Base32 uses A–Z and 2–7, plus = for padding. The digits 0 and 1 are left out so they cannot be confused with the letters O and I, and 8 and 9 are not needed to reach 32 symbols. Base32hex uses 0–9 and A–V instead.
How much bigger is Base32 than the original?
Every 5 bytes become 8 characters, so Base32 output is 60% larger than the input, before padding. Base64 is more compact at 33% larger, but it is case-sensitive.
Why does Base32 end with = signs?
Base32 works in blocks of 8 characters. When the data does not fill the last block, it is padded with = so the length is a multiple of 8. Many systems, including TOTP secrets, leave the padding out, and this decoder accepts either.
Is Base32 encryption?
No. Base32 is an encoding, not encryption. Anyone can decode it without a key, so it should never be used to hide passwords or secrets.
What is Crockford Base32?
A variant designed by Douglas Crockford for identifiers people read and type. It uses 0–9 and A–Z without I, L, O and U, ignores hyphens, and treats I and L as 1 and O as 0 when decoding.
Ready-made Base32 Encoder presets
Related Tools
- Base64 EncoderEncode and decode Base64 for text and files, with URL-safe, MIME and data URL options.
- Text to HexConvert text to hexadecimal UTF-8 bytes or code points, and hex back to text.
- Hash GeneratorMD5, SHA-1, SHA-256, SHA-384 and SHA-512 of any text, with HMAC and expected-hash check.
- Number Base ConverterConvert whole numbers between binary, octal, decimal, hex and any base 2–36, with two's complement.