How to use the Crockford Base32 tool
- Pick Encode or Decode from the Operation menu.
- Enter the text to encode, or the Crockford Base32 string to decode, under Text or encoded value.
- Select Convert. The Example button encodes Hello, world! to 91JPRV3F5GG7EVVJDHJ22.
- Read the uppercase, unpadded output in the Result box, or the decoded text after a decode.
- Select Copy, or Download after a decode to save decoded.bin.
What makes Crockford Base32 different
Douglas Crockford designed this alphabet for values that people read, say and type. It uses the ten digits followed by 22 letters: 0123456789ABCDEFGHJKMNPQRSTVWXYZ. The letters I, L and O are left out because they look like 1 and 0, and U is left out to make accidental obscenities less likely.
The decoding rules repair the mistakes that remain. Letter case does not matter, an O is read as 0, and an I or L is read as 1. Hyphens may be inserted anywhere to group a long value and are ignored. There is no equals-sign padding.
A Crockford Base32 example
Both Base32 flavors cut the input into 5-bit pieces and differ only in the symbol table. The two bytes of Hi give the values 9, 1, 20 and 16. In Crockford's alphabet those are 9, 1, M and G. The RFC 4648 alphabet prints JBUQ plus four equals signs.
The last line shows the error correction: lowercase input, an i typed for 1 and hyphens between groups still decode correctly.
Hi → 91MG
Hello, world! → 91JPRV3F5GG7EVVJDHJ22
9ijpr-v3f5g-g7evv-jdhj22 → Hello, world!How this tool maps bytes to symbols
Crockford's specification describes the symbols and leaves the bit layout to the application. This tool encodes the UTF-8 bytes of your text as a stream from left to right, the same way RFC 4648 does. If the bit count is not a multiple of 5, the last symbol is filled with zero bits on the right.
Some formats instead treat the value as one big integer and pad on the left. ULID is the common case: its 26 characters hold 130 bits, with the two spare bits at the front. A ULID pasted here either fails with the padding-bits error or returns 16 bytes that are shifted by two bits.
The optional check symbol from the specification, one extra character at the end of a value, is not supported. Remove it before decoding.
Decoding errors and their causes
The messages are shared with the standard Base32 tool, so they do not mention Crockford. A successful decode shows UTF-8 text, or a byte count and hex dump for other bytes.
- Enter a complete Base32 value: the box is empty, the string contains an equals sign, or the length is impossible, such as 1, 3 or 6 symbols past a multiple of 8.
- The input contains a character outside the Base32 alphabet: the letter U or punctuation other than a hyphen is present.
- The value contains nonzero padding bits: the final symbol carries leftover bits that are not zero, which points to a truncated string or an integer-style encoding.
Frequently asked questions
Which letters are missing from Crockford Base32?
I, L, O and U. The first three resemble the digits 1 and 0, and when you type them anyway the decoder maps them to those digits. U is excluded entirely and is not accepted by this tool.
Is Crockford Base32 case sensitive?
No. The encoder prints uppercase, and the decoder converts input to uppercase first, so a value typed in lowercase or mixed case decodes to the same bytes.
Can I decode a ULID with this tool?
Not usefully. A ULID encodes a 128-bit integer with its spare bits at the front, while this tool reads symbols as a left-aligned byte stream. The result is shifted by two bits or rejected.
Why is there no padding in the output?
Crockford's design has no padding character. The symbol count already determines the byte count: every 8 symbols hold 5 bytes, and a tail of 2, 4, 5 or 7 symbols holds 1, 2, 3 or 4 bytes.
Where is Crockford Base32 used?
It suits identifiers that people handle directly: order numbers, license keys, device pairing codes and sortable IDs such as ULID. Values stay compact, free of punctuation and hard to misread.