10101 Code and the 5-Bit Binary Alphabet
10101 is the letter U in the 5-bit binary alphabet (A = 00001). Look up any 5-digit code, or print the A–Z chart.
- 5-bit
- Printable
- Free PDF
Runs in your browser. Nothing you type leaves your device.
Got a binary code with only five digits? It’s almost certainly a letter. Lots of puzzles, classroom worksheets and games number the alphabet from A = 1 and write each number in five bits, so A is 00001 and Z is 11010. Old telegraph machines used a different 5-bit code called Baudot, so both charts are below. The 5-bit binary translator above shows every reading of your code. For normal 8-digit binary, use the binary code translator.
| Letter | 5-bit code | Number | Letter | 5-bit code | Number |
|---|---|---|---|---|---|
| A | 00001 | 1 | N | 01110 | 14 |
| B | 00010 | 2 | O | 01111 | 15 |
| C | 00011 | 3 | P | 10000 | 16 |
| D | 00100 | 4 | Q | 10001 | 17 |
| E | 00101 | 5 | R | 10010 | 18 |
| F | 00110 | 6 | S | 10011 | 19 |
| G | 00111 | 7 | T | 10100 | 20 |
| H | 01000 | 8 | U | 10101 | 21 |
| I | 01001 | 9 | V | 10110 | 22 |
| J | 01010 | 10 | W | 10111 | 23 |
| K | 01011 | 11 | X | 11000 | 24 |
| L | 01100 | 12 | Y | 11001 | 25 |
| M | 01101 | 13 | Z | 11010 | 26 |
| space | 00000 | 0 |
| Letter | Baudot (ITA2) | Letter | Baudot (ITA2) |
|---|---|---|---|
| A | 00011 | N | 01100 |
| B | 11001 | O | 11000 |
| C | 01110 | P | 10110 |
| D | 01001 | Q | 10111 |
| E | 00001 | R | 01010 |
| F | 01101 | S | 00101 |
| G | 11010 | T | 10000 |
| H | 10100 | U | 00111 |
| I | 00110 | V | 11110 |
| J | 01011 | W | 10011 |
| K | 01111 | X | 11101 |
| L | 10010 | Y | 10101 |
| M | 11100 | Z | 10001 |
What does my 5-digit code mean?
Paste it into the lookup box at the top of this page. It shows all three readings for each group of five, and if you paste a whole message it spells out the A = 1 and Baudot readings in full.
Use the lookup box at the top of this page ↑
What does 10101 mean?
To read 10101, decide which code it is. In the 5-bit binary alphabet, where A = 00001, 10101 is 21, the 21st letter: U. In Baudot telegraph code (ITA2) it is the letter Y, or 6 in figures mode. Read as a plain binary number, 10101 is 21.
So which one is yours? If it came from a puzzle, a worksheet or a game, it’s almost always the A = 1 code, and the answer is U. Baudot turns up in radio teletype and old telex tape, which is rarer. And if you pasted 10101 into an ordinary binary translator and got nothing back, that’s why: those tools expect eight digits per character, so five digits looks like a broken byte to them.
The 5-digit codes people look up most
These are the codes people paste into Google most often, with all three readings. Tap one to decode it in the lookup box above.
| Code | Letter (A = 1) | Baudot (ITA2) | Number |
|---|---|---|---|
10101 | U | Y | 21 |
01001 | I | D | 9 |
00101 | E | S | 5 |
01011 | K | J | 11 |
01010 | J | R | 10 |
00100 | D | space | 4 |
01100 | L | N | 12 |
10001 | Q | Z | 17 |
10010 | R | L | 18 |
10100 | T | H | 20 |
01110 | N | C | 14 |
01111 | O | K | 15 |
01101 | M | F | 13 |
10110 | V | P | 22 |
11001 | Y | B | 25 |
Look at 00100. It’s D in the A = 1 code and a space in Baudot. On its own you can’t tell which, but inside a message you usually can: if the A = 1 reading spells words, that’s your code.
Got 4 digits or fewer?
A short code like 0111 is a number first (7). In the A = 1 alphabet, though, the letters A to O only need four digits, so 0111 is G, 0110 is F, 0101 is E, 1010 is J and 1001 is I. Three digits work too: 101 is E, 011 is C. If a message mixes 4- and 5-digit groups, someone dropped the leading zeros. Pad every group to five and read it again.
How the 5-bit binary alphabet works
Number the letters from A = 1 to Z = 26, then write each number in five binary digits. That’s the whole code.
Five digits give you 32 combinations (0 to 31), so the alphabet fits with six to spare. Most versions use 00000 for a space and leave 27 to 31 empty.
Here’s the part almost nobody mentions: the 5-bit code is the tail end of the ASCII code computers use. A capital U in ASCII is 01010101. Drop the first three digits and you’re left with 10101. Same for every letter, capital or lowercase. The first three digits only say “capital” (010) or “lowercase” (011); the last five carry the letter. See every full code in the binary to ASCII table.
To decode a 5-bit message, split it into groups of five, add up the place values 16 · 8 · 4 · 2 · 1 over each 1, and count that far into the alphabet. New to place values? See how to read binary.
| Group | Values over the 1s | Number | Letter |
|---|---|---|---|
10101 | 16 + 4 + 1 | 21 | U |
01110 | 8 + 4 + 2 | 14 | N |
01001 | 8 + 1 | 9 | I |
10100 | 16 + 4 | 20 | T |
10101 01110 01001 10100 spells UNIT. Writing works the same way backwards: CODE is 3, 15, 4, 5, which is 00011 01111 00100 00101. For standard 8-bit codes, use the text to binary converter.
Your turn
1. Decode 01000 01001
Show answer
HI (8, 9)
2. Decode 00010 11001 10100 00101
Show answer
BYTE (2, 25, 20, 5)
3. Write CODE in 5-bit binary
Show answer
00011 01111 00100 00101
5-bit vs 8-bit binary
| 5-bit alphabet (A = 1) | Baudot (ITA2) | 8-bit ASCII | |
|---|---|---|---|
| Digits per character | 5 | 5 | 8 |
| Codes available | 32 | 32, used twice (letters and figures) | 256 (128 in standard ASCII) |
| Capital and lowercase | No case | Capitals only | Both |
| Digits and punctuation | No | Yes, after a FIGS shift | Yes |
| A is | 00001 | 00011 | 01000001 |
| HELLO takes | 25 digits | 25 digits | 40 digits |
| Used by | Puzzles, worksheets, games | Telegraph, telex, radio teletype | Every computer today |
Notice the A row. In the A = 1 code, 00001 is the last five digits of ASCII’s 01000001. Baudot’s 00011 has nothing to do with either, because it was designed decades before ASCII. Compare every letter side by side in the 8-bit binary alphabet.
Some early mainframes used six-bit codes, which allowed 64 characters. Puzzle makers seldom use them, so 5-bit codes like Baudot are what you’ll usually run into.
Baudot code (ITA2): the telegraph’s 5-bit code
Émile Baudot built a 5-bit telegraph code in the 1870s, and the unit “baud” is named after him. Around 1901 Donald Murray reworked it for typewriter-style machines, and that version became the International Telegraph Alphabet No. 2, or ITA2. The ITU still publishes it as Recommendation S.1. For most of the 20th century it carried telex messages and radio teletype.
Thirty-two codes can’t hold the alphabet and the digits, so Baudot uses two of them as switches. 11111 means “letters from here on” and 11011 means “figures from here on”. That’s why 10101 is Y in letters mode and 6 in figures mode: same five digits, different shift.
Baudot’s code came after Morse’s, on the same telegraph networks.
Baudot code binary to text table (ITA2)
| Letter | Baudot (ITA2) | Letter | Baudot (ITA2) | |
|---|---|---|---|---|
| A | 00011 | N | 01100 | |
| B | 11001 | O | 11000 | |
| C | 01110 | P | 10110 | |
| D | 01001 | Q | 10111 | |
| E | 00001 | R | 01010 | |
| F | 01101 | S | 00101 | |
| G | 11010 | T | 10000 | |
| H | 10100 | U | 00111 | |
| I | 00110 | V | 11110 | |
| J | 01011 | W | 10011 | |
| K | 01111 | X | 11101 | |
| L | 10010 | Y | 10101 | |
| M | 11100 | Z | 10001 |
Space 00100 · Letters shift 11111 · Figures shift 11011
Digits (after a figures shift): 1 10111 · 2 10011 · 3 00001 · 4 01010 · 5 10000 · 6 10101 · 7 00111 · 8 00110 · 9 11000 · 0 10110
The digits sit on the top row of the old teleprinter keyboard, so each one shares its code with a letter from QWERTYUIOP: 1 is Q, 2 is W, 3 is E, and so on.
Decoding Baudot and getting nonsense? Some tables write each code back to front. 10101 reads the same either way, so it’s Y regardless, but 01001 is D one way and L the other. Reverse every group and decode again before you give up.
Frequently asked questions
What does 10101 mean in binary code?
In the 5-bit alphabet (A = 1), 10101 is U. In Baudot telegraph code it’s Y, and as a plain number it’s 21. In puzzles and worksheets it’s almost always U.
What does 01001 mean?
It’s I in the 5-bit alphabet, because I is the 9th letter. In Baudot it’s D, and as a number it’s 9. It’s also the last five digits of a capital I in ASCII, 01001001.
What does 00100 mean?
D in the 5-bit alphabet and 4 as a number. In Baudot code, 00100 is a space.
Why won’t a binary translator read my 5-digit code?
Most binary translators read eight digits per character, the ASCII way. A 5-digit code is a different system, so the translator sees a broken byte. Use the 5-bit lookup on this page instead: paste the whole message and it decodes every group. If your message does use 8-digit groups, see common words in binary.
Is the 5-bit alphabet the same as Baudot code?
No. Both use five digits per letter, but the letters are in a different order. A is 00001 in the 5-bit alphabet and 00011 in Baudot.
Is it the same as Bacon’s cipher?
Close, but not quite. Bacon’s cipher also uses five two-state symbols per letter, usually written as A and B. Its 26-letter version starts at A = 00000, so every code is one letter off from the A = 1 alphabet. The original 24-letter version, which merges I/J and U/V, drifts further.
Sources: ITU-T Recommendation S.1, International Telegraph Alphabet No. 2 · RFC 20, ASCII format for network interchange · CS Unplugged: Codes for letters using binary representation
