5-Bit Binary Code Translator
Choose the encoding before translating five-bit groups. This tool supports classroom A1Z26 and international ITA2 teleprinter code, including shift states and explicit bit order. They do not assign the same letters to the same groups.
On this page
A1Z26: A–Z = 00001–11010. This tool reserves 00000 for spaces; lowercase becomes uppercase.
A1Z26 and ITA2 are not interchangeable
A1Z26 numbers A–Z from 1–26 and writes each value with five digits. This tool reserves 00000 for space, a local teaching convention rather than a universal A1Z26 rule.
ITA2 has a different mapping. In Letters state, 00001 is E, not A. A plausible letter alone is not evidence that you chose the correct scheme.
| Bits | Unsigned | A1Z26 | ITA2 Letters |
|---|---|---|---|
| 00001 | 1 | A | E |
| 00011 | 3 | C | A |
| 00101 | 5 | E | S |
| 00000 | 0 | Space (local convention) | NUL (no printed character) |
Follow a Letters/Figures shift
In numeric display, 11011 00001 11111 00001 decodes to 3E. A shift changes the meaning of following groups without printing a character. Decoding starts in Letters.
Encoding emits an initial Letters shift (11111), then inserts shifts as needed. Lowercase becomes uppercase. Shared characters such as spaces do not automatically reset the state.
| Group | State or action | Printed output |
|---|---|---|
| 11011 | Switch to Figures | None |
| 00001 | Read in Figures | 3 |
| 11111 | Switch to Letters | None |
| 00001 | Read in Letters | E |
Numeric display versus serial order
Numeric display puts the most significant bit on the left. Serial display lists transmission element 1 first, reversing digits inside each five-bit group. It does not reverse group order or the message.
The serial form of the same example is 11011 10000 11111 10000. Select Serial before decoding it. E is 00001 in numeric Letters display and 10000 in serial Letters display.
Which five-bit data is supported?
The international mapping follows ITU-T S.1 (03/93), Table 1. National/private Figures assignments are rejected. Not every chart labelled Baudot uses this mapping; check the source variant.
The tool handles five data bits, not audio RTTY, start/stop framing, timing, or arbitrary historical alphabets. A1Z26 accepts letters and spaces; punctuation needs another scheme. Neither scheme is ASCII.
Frequently asked questions
Should I select A1Z26 or ITA2 Baudot?
Choose A1Z26 when the source numbers A–Z as 1–26; choose ITA2 when the source specifies the supported international teleprinter mapping. The same bits have different meanings: 00001 is A in A1Z26 but E in ITA2 Letters state using numeric display. Five-bit length alone does not identify an alphabet.
PermalinkWhat letter does 00101 represent?
00101 is E in this site's A1Z26 teaching scheme, or S in international ITA2 Letters state with numeric bit order. As an unsigned integer, it is simply 5. An ITA2 answer also depends on the current shift state and bit order, so include those assumptions rather than calling E the universal binary meaning.
PermalinkWhy does ITA2 use Letters and Figures shift states?
Five bits provide 32 values. ITA2 uses Letters and Figures states to reuse some values for letters, digits, and punctuation. In numeric display, 11011 switches to Figures and 11111 switches to Letters without printing a character. A1Z26 does not use these shifts; values above 26 are invalid in this site's A1Z26 decoder.
PermalinkWhat state does ITA2 start in, and why is there an extra 11111?
Each ITA2 decode starts in Letters state. Encoding emits an initial Letters shift, 11111, to make that starting state explicit, then inserts shifts as needed. The shift is not a printable letter. If your source is an excerpt captured during Figures state, its missing earlier shift must be established from context rather than guessed.
PermalinkWhat is the difference between numeric and serial bit order?
Numeric display puts the most significant bit first. Serial display lists transmission element 1 first, reversing the digits within each five-bit group without reversing the groups themselves. For ITA2 E in Letters state, numeric 00001 becomes serial 10000. Match the source's order before decoding; this setting does not select a different alphabet.
PermalinkWhat does 00000 mean, and does a space reset ITA2 to Letters?
This site's A1Z26 mode reserves 00000 for a space, which is a local teaching convention. In ITA2, 00000 is NUL and prints nothing; numeric 00100 is a space. An ITA2 space does not reset the current shift state here. Decoding continues in Figures or Letters until an explicit shift changes it.
PermalinkCan I encode lowercase, numbers, punctuation, or accented letters?
A1Z26 accepts A–Z and spaces and converts lowercase to uppercase; digits and punctuation are rejected. ITA2 also converts lowercase to uppercase and supports the digits and punctuation defined by its international mapping. Neither option supports arbitrary Unicode text. Use UTF-8 for accented letters, Chinese, emoji, or text whose original letter case must be preserved.
PermalinkCan I omit spaces between five-bit groups?
Yes. Both five-bit decoders accept a continuous stream or groups separated by whitespace and commas. After separators are removed, the bit count must be divisible by five. A trailing short group is an error, not permission to pad with zeroes. Check the original source for missing digits before trying again.
PermalinkWhy does a Baudot chart disagree with this tool or show a private assignment error?
This tool follows international ITA2 in ITU-T S.1 (03/93), Table 1, and rejects national/private Figures assignments instead of choosing a local meaning. Charts labelled Baudot may use a different historical or national mapping. Compare the chart's variant, shift state, and bit order before treating a disagreement as a conversion error.
PermalinkCan I decode an RTTY recording or a complete teleprinter signal?
No. The tool accepts already-extracted five-bit data groups, not audio, radio signals, baud timing, or start/stop framing. A complete signal needs those layers decoded first using its documented settings. Once you have the data bits, select the supported ITA2 mapping and bit order; do not include framing bits as if they were character data.
Permalink↑ Back to the converter · Page contents
Sources & verification
Reference material used for this explanation. The examples are reproducible with the tools on this site; see how they are checked.
- ITU-T S.1 (03/93), Table 1: International Telegraph Alphabet No. 2
- RFC 20: ASCII format for network interchange
Found a mismatch? Send a correction with a source.