Base32 Encoder/Decoder
Encode text to Base32 and decode Base32 back to text instantly.
The Base32 Encoder and Decoder converts data between plain text and Base32 encoding, a binary-to-text encoding scheme that represents binary data using a set of 32 ASCII characters. Base32 is widely used in two-factor authentication (TOTP/HOTP), DNS records, and systems that require case-insensitive encoding. This tool processes your data entirely in your browser, ensuring your sensitive information like authentication secrets never leaves your device.
How to use
Enter your text
Type or paste the text you want to encode, or a Base32 string you want to decode.
Choose direction
Click 'Encode to Base32' to convert text, or 'Decode from Base32' to convert Base32 back to text.
Copy the result
Click the copy button to copy the encoded or decoded result to your clipboard.
Complete Guide to Base32 Encoding
Worked Examples
Example: Encode Text to Base32
Given: The text 'Hello' needs to be encoded in Base32.
Step 1: Convert each character to its ASCII value: H=72, e=101, l=108, l=108, o=111.
Step 2: Convert to binary: 01001000 01100101 01101100 01101100 01101111.
Step 3: Group into 5-bit chunks and map to Base32 alphabet: JBSWY3DP.
Result: 'Hello' encodes to 'JBSWY3DP' in Base32 (with padding: JBSWY3DPEE======).
Example: Decode a 2FA Secret
Given: A Base32-encoded TOTP secret 'JBSWY3DPEHPK3PXP'.
Step 1: Strip any spaces or padding characters.
Step 2: Convert each Base32 character to its 5-bit value.
Step 3: Combine bits and extract 8-bit bytes to get the original secret.
Result: The decoded secret is the binary key used by authenticator apps to generate time-based one-time passwords.
Use cases
Encoding binary data
“This tool processes your data entirely in your browser, ensuring complete privacy and instant results. It handles a wide variety of input formats and edge cases, making it suitable for both simple one-off conversions and complex workflow integrations. The browser-based processing means no file size limits imposed by server uploads, and your sensitive data never leaves your device.”
Case-insensitive encoding
“This tool processes your data entirely in your browser, ensuring complete privacy and instant results. It handles a wide variety of input formats and edge cases, making it suitable for both simple one-off conversions and complex workflow integrations. The browser-based processing means no file size limits imposed by server uploads, and your sensitive data never leaves your device.”
DNS and file names
“This tool processes your data entirely in your browser, ensuring complete privacy and instant results. It handles a wide variety of input formats and edge cases, making it suitable for both simple one-off conversions and complex workflow integrations. The browser-based processing means no file size limits imposed by server uploads, and your sensitive data never leaves your device.”
Frequently Asked Questions
?What is Base32 encoding?
Base32 is an encoding scheme that converts binary data into a text format using 32 ASCII characters (A-Z and 2-7). It is defined in RFC 4648 and is commonly used in systems that require case-insensitive encoding.
?What is the difference between Base32 and Base64?
Base32 uses a 32-character alphabet (A-Z, 2-7) while Base64 uses 64 characters (A-Z, a-z, 0-9, +, /). Base32 output is about 20% larger than Base64, but it is case-insensitive and avoids characters that could be confused in certain contexts.
?Why are the characters 0, 1, 8, and 9 not used in Base32?
These digits are excluded to avoid confusion with letters O, I, B, and g. This makes Base32 more human-readable and less error-prone when transcribing manually.
?What are the '=' signs at the end of Base32 output?
The '=' characters are padding to ensure the encoded output length is a multiple of 8 characters. This is required by the RFC 4648 standard for proper decoding.
?Is this Base32 tool safe and private?
Yes. All encoding and decoding happens locally in your browser. No data is transmitted to any server, making it safe for processing sensitive information.
?Can I use this tool on mobile devices?
Yes, this tool works on any device with a modern web browser, including smartphones and tablets. The responsive design adapts to your screen size while maintaining full functionality.
Related Tools
Recommended Books on Data Encoding & Web Security

Applied Cryptography
Bruce Schneier

The Web Application Hacker's Handbook
Dafydd Stuttard

Serious Cryptography
Jean-Philippe Aumasson
As an Amazon Associate we earn from qualifying purchases.
Professional Products to Boost Your Coding Setup

23-in-1 Intel Certified Thunderbolt 5 FusionDock Max 2, 120Gbps MacBook Docking Station, Triple 6K@60Hz Display for Mac
CalDigit

ScreenBar Pro LED Monitor Light Bar (Black) - Ultrawide Lighting, Motion Sensor, Adjustable Brightness/Color Temperature
BenQ

K70 CORE TKL Wireless RGB Tenkeyless Mechanical Gaming Keyboard – Pre-Lubed MLX Red v2 Linear Switches, SOCD, ABS Double
Corsair
As an Amazon Associate we earn from qualifying purchases.