What is Base32?
Base32 is a way of writing binary data with 32 safe characters. It's defined in RFC 4648 and best known from two-factor authentication, where the secret behind an authenticator app's six-digit codes is usually shown as a Base32 string.
Paste text to encode it as UTF-8 bytes in Base32, with or without the = padding that rounds the output to a multiple of 8 characters, in capitals or lowercase. Switch direction to decode Base32 back to text, with byte counts shown and binary results displayed in hex.
How to use the Base32 encoder and decoder
1.Paste text or Base32
Choose the direction.
2.Set padding and case
Padding with = is standard but often optional.
3.Copy the result
Binary data that isn't text is shown as hex.
Example: encoding a short phrase
Encoding "Hello, ZapKit!":
- Input
- 14 bytes
- Base32
- JBSWY3DPFQQFUYLQJNUXIII=
- Length
- 24 characters, including one = of padding
Decoding the same string gives back exactly "Hello, ZapKit!".
Why Base32 exists
Base32 uses only the capital letters A to Z and digits 2 to 7, leaving out 0, 1, 8 and 9 so nobody confuses them with O, I and B. That makes it safe to read aloud, type by hand and use where case doesn't survive, such as file systems and DNS.
Every 5 bytes become 8 characters, so output is about 60% longer than the input, compared with 33% for Base64. Decoding ignores spaces, hyphens and lowercase letters, which is how authenticator apps accept secrets typed in groups like JBSW Y3DP. Text is encoded as UTF-8 first, so accented letters and emoji round-trip exactly.
Frequently asked questions
Is Base32 encryption?
No. It's an encoding anyone can reverse; it hides nothing.
Why does decoding show hex?
The bytes aren't valid text, as with 2FA secrets, which are random bytes.
Which alphabet is this?
The standard RFC 4648 alphabet, not Crockford or base32hex.
Is my input uploaded?
No. It's converted locally.
Related tools
Base64 Encoder & Decoder
Base64 and Base64url for text (UTF-8) and files.
2FA Code Generator (TOTP)
Live two-factor codes from a secret key or otpauth link.
Text to Binary Converter
Convert text to binary, hex, octal or decimal bytes, and back.
URL Encoder & Decoder
Percent-encode or decode URLs and query values, and see a URL's parts.
JWT Decoder
Decode a JSON Web Token's header and payload and check its expiry.
Hash Generator: MD5, SHA-1, SHA-256
MD5, SHA-1 and SHA-256 hashes of text or files, with checksum compare.
More Developer tools
JSON & data
CSV tools
Network & system
Web & API
Git & releases
Encoding & security
Text & code
- Regex tester
- Text diff checker
- Cron expression explainer
- Lorem ipsum generator
- Markdown previewer
- Slug generator
- Strip HTML tags
- Unicode character inspector
- URL parser
- Markdown TOC generator
- cURL converter
- Whitespace visualizer
- Markdown link extractor
- Regex escape
- Regex match extractor
- Split text by regex
- HTML, CSS and JS playground
- Mock data generator
- Keyboard event tester
- ASCII table