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.

5-bitPrintableFree PDF
5-bit binary alphabet (A = 1)
Letter5-bit codeNumberLetter5-bit codeNumber
A000011N0111014
B000102O0111115
C000113P1000016
D001004Q1000117
E001015R1001018
F001106S1001119
G001117T1010020
H010008U1010121
I010019V1011022
J0101010W1011123
K0101111X1100024
L0110012Y1100125
M0110113Z1101026
space000000
Baudot code (ITA2), letters mode
LetterBaudot (ITA2)LetterBaudot (ITA2)
A00011N01100
B11001O11000
C01110P10110
D01001Q10111
E00001R01010
F01101S00101
G11010T10000
H10100U00111
I00110V11110
J01011W10011
K01111X11101
L10010Y10101
M11100Z10001

Space, shift codes and digits in the full Baudot table ↓

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.

CodeLetter (A = 1)Baudot (ITA2)Number
10101UY21
01001ID9
00101ES5
01011KJ11
01010JR10
00100Dspace4
01100LN12
10001QZ17
10010RL18
10100TH20
01110NC14
01111OK15
01101MF13
10110VP22
11001YB25

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.

GroupValues over the 1sNumberLetter
1010116 + 4 + 121U
011108 + 4 + 214N
010018 + 19I
1010016 + 420T

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 character558
Codes available3232, used twice (letters and figures)256 (128 in standard ASCII)
Capital and lowercaseNo caseCapitals onlyBoth
Digits and punctuationNoYes, after a FIGS shiftYes
A is000010001101000001
HELLO takes25 digits25 digits40 digits
Used byPuzzles, worksheets, gamesTelegraph, telex, radio teletypeEvery 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)

LetterBaudot (ITA2)LetterBaudot (ITA2)
A00011N01100
B11001O11000
C01110P10110
D01001Q10111
E00001R01010
F01101S00101
G11010T10000
H10100U00111
I00110V11110
J01011W10011
K01111X11101
L10010Y10101
M11100Z10001

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