Developer Tools
Base32 Encoder / Decoder
Encode and decode Base32 in your browser. RFC 4648 Standard, Base32 Hex, and Crockford variants with optional padding and UTF-8 or hex byte output.
Variant
Quick conversions
Input
13 bytesBase32 output
JBSWY3DPFQQFO33SNRSCC===
Variant: Standard
Output length: 24 chars
Input bytes: 13
Padded: yes
How Base32 works
- Bytes are split into 5-bit groups. Each group maps to one character in the variant’s 32-character alphabet, so 5 input bytes (40 bits) fit into exactly 8 output characters.
- RFC 4648 pads the output with "="to the next multiple of 8 characters: 1 byte -> 6 pads, 2 bytes -> 4 pads, 3 bytes -> 3 pads, 4 bytes -> 1 pad, 5 bytes -> 0 pads.
- Standard Base32 (A-Z, 2-7) avoids 0/O and 1/I. Base32 Hex (0-9, A-V) sorts in the same order as the encoded bytes, which is why DNSSEC NSEC3 records use it.
- Crockford Base32 omits I, L, O, U entirely, treats input case-insensitively, and forgives common misreads (I and L decode as 1, O decodes as 0). Hyphens between groups are ignored on decode.
How to use
- Pick a direction: Encode turns text or hex bytes into a Base32 string; Decode turns a Base32 string back into UTF-8 text or hex bytes.
- Pick a variant: RFC 4648 Standard for the default Base32, RFC 4648 Hex for the extended-hex alphabet, or Crockford for human-friendly identifiers.
- When encoding, choose UTF-8 text or Hex bytes for the input, then optionally turn off padding (RFC 4648 only) or switch the output to lowercase.
- When decoding, paste any Base32 string. Whitespace is ignored; Crockford also ignores hyphens. Errors point at the exact position of the first invalid character.
- Use Copy Base32 or Copy decoded to copy the result, or load a preset to round-trip a known RFC 4648 test vector.
About this tool
Base32 Encoder / Decoder turns text or raw bytes into Base32 and back, entirely in your browser. Three alphabets are supported. RFC 4648 Standard (A-Z and 2-7) is the default and matches the Base32 used by GPG armor, openssl base32, IPFS CIDv1, and the secret strings TOTP authenticator apps consume. RFC 4648 Base32 Hex (0-9 and A-V), also called extended-hex Base32, sorts in the same order as the encoded bytes, which is why DNSSEC NSEC3 records use it. Crockford Base32 (0-9 and A-Z minus I, L, O, U) is human-friendly: there is no padding, the decoder is case-insensitive, hyphens between groups are ignored, and ambiguous letters (I, L) decode as 1 while O decodes as 0. Encode mode accepts UTF-8 text or a hex byte sequence so you can encode any binary input without character-set guesswork, and you can toggle whether the output is padded with = or written in lowercase. Decode mode strips whitespace (and Crockford hyphens) before validating each character against the chosen alphabet, reports the exact position of the first invalid character, and verifies that the padding length matches the body length per the RFC. The decoded result can render as UTF-8 text (with a fail-safe to hex bytes when the bytes are not valid UTF-8, so binary keys and ciphertext do not silently corrupt) or as raw hex bytes. A live byte and character counter, a swap button between encode and decode, and curated presets for the canonical RFC 4648 §10 test vectors and a TOTP-secret round trip make it easy to verify your data and your tool. Useful for setting up authenticator apps that ask for a Base32 secret, debugging GPG and openssl outputs, decoding Bitcoin-related data formats, reading DNSSEC NSEC3 hashes, working with IPFS CIDv1 strings, generating short human-friendly identifiers with Crockford Base32, and any place a developer needs to switch between Base32 and the underlying bytes. Encoding, decoding, and validation all run on your device, so secrets, tokens, and keys you paste here never leave your browser.
Free to use. Works in your browser. No signup, no login.
Related tools
You may also like
Base64 Encoder Decoder
Encode and decode Base64 with full Unicode.
Open tool
DeveloperURL Encoder Decoder
Encode and decode percent-encoded URLs.
Open tool
SecurityTOTP Generator
Live RFC 6238 TOTP codes with previous, current, and next windows.
Open tool
SecurityHMAC Generator
Generate and verify HMAC-SHA1, SHA-256, SHA-384, and SHA-512 signatures.
Open tool
SecuritySHA-256 Hash Generator
Hash text or files with SHA-1, SHA-256, SHA-384, and SHA-512.
Open tool
ConverterBinary Translator
Bidirectional text and binary translation with UTF-8 byte breakdown.
Open tool