TFT

Base32 Encoder and Decoder

Encode text or binary data to Base32 format for human-readable encoding, or decode Base32 strings to retrieve the original data. Commonly used in various protocols and applications.

How the Base32 Encoder/Decoder Works

Our Base32 encoder/decoder converts binary data to and from Base32 format, a binary-to-text encoding scheme using 32 ASCII characters. Base32 is more human-readable than Base64 and case-insensitive, making it ideal for manual entry and voice transmission.

Encoding Process

  1. Input data is converted to a stream of bits
  2. Bits are grouped into 5-bit chunks
  3. Each 5-bit value (0-31) maps to a Base32 character
  4. Base32 uses A-Z and 2-7 (32 characters total)
  5. Padding (=) is added to make output length divisible by 8
  6. Output is case-insensitive Base32 string

Common Use Cases

Two-Factor Authentication

TOTP secrets for authenticator apps are commonly encoded in Base32 for easy manual entry.

DNS Records

Base32 is used in DNS for encoding binary data in domain names (case-insensitive).

Manual Data Entry

Encode data for voice transmission or manual entry where case sensitivity causes errors.

Filesystem Names

Use Base32 for encoding binary data in filenames on case-insensitive filesystems.

What to Know Before Using This Tool

Base32 Character Set

Base32 uses: A B C D E F G H I J K L M N O P Q R S T U V W X Y Z 2 3 4 5 6 7. Note: No digits 0, 1, 8, 9 to avoid confusion with letters O, I, B.

Size Overhead

Base32 increases data size by approximately 60% (8 characters encode 5 bytes). This is more overhead than Base64 but provides better human readability.

Frequently Asked Questions

Why use Base32 instead of Base64?

Base32 is case-insensitive and uses only characters that are safe in filenames and URLs without encoding. Better for manual entry and voice transmission.

Is Base32 case-sensitive?

No, Base32 is case-insensitive by design. "ABC" and "abc" decode to the same value. This makes it ideal for manual entry where case errors are common.

What is Base32-Hex?

Base32-Hex (RFC 4648) uses 0-9 and A-V instead of A-Z and 2-7. It sorts lexicographically like hex. This tool uses standard Base32 (RFC 4648 Section 6).