ZapKit

Base32 encoder and decoder

Convert text to Base32 and back, the encoding behind two-factor authentication secrets, some file names and case-insensitive identifiers.

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. 1.Paste text or Base32

    Choose the direction.

  2. 2.Set padding and case

    Padding with = is standard but often optional.

  3. 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.

More Developer tools