ITU-T S.1 (03/93) / International Telegraph Alphabet No. 2
Baudot Code
Encode and decode the international ITA2 teleprinter alphabet with explicit LETTERS and FIGURES state. This is ITA2, often called Baudot-Murray code, not original Baudot/ITA1 or a US-TTY variant.
01 / Encode
Text to ITA2 groups
ASCII lowercase is folded to uppercase. Unsupported Unicode and unassigned characters stop encoding with a precise error.
Space is 00100. Space, CR, and LF do not change the active shift state.
Ready to encode. Every non-empty result begins with an explicit LTRS group.
02 / Decode
ITA2 groups to text
Separate every five-bit group with ASCII whitespace. The first group must be LTRS 11111 or FIGS 11011, so no starting state is guessed.
Ready to decode. Shift groups change state and do not print.
CR and LF are preserved as controls. NUL, WRU, and BELL are made visible as [NUL], [WRU], and [BELL].
ITA2 code table and exact conventions
Groups are numeric binary values with code element 5 at left and element 1 at right. ITU serial transmission sends element 1 first, so the five displayed bits go on the wire from right to left.
LTRS 11111 selects letters and FIGS 11011 selects figures. State persists through spaces and controls until another shift arrives.
FIGURES values 01101, 10100, and 11010 are national or private positions in S.1. This tool rejects them and does not substitute !, currency signs, or &.
This converts five data bits only, not start and stop framing, audio RTTY, timing, or another historical alphabet. Text is limited to 2,000 characters and decoding to 4,096 groups.
| Group | LETTERS | FIGURES |
|---|---|---|
| 00000 | NUL | NUL |
| 00001 | E | 3 |
| 00010 | LF | LF |
| 00011 | A | - |
| 00100 | Space | Space |
| 00101 | S | Apostrophe |
| 00110 | I | 8 |
| 00111 | U | 7 |
| 01000 | CR | CR |
| 01001 | D | WRU |
| 01010 | R | 4 |
| 01011 | J | BELL |
| 01100 | N | , |
| 01101 | F | National/private |
| 01110 | C | : |
| 01111 | K | ( |
| 10000 | T | 5 |
| 10001 | Z | + |
| 10010 | L | ) |
| 10011 | W | 2 |
| 10100 | H | National/private |
| 10101 | Y | 6 |
| 10110 | P | 0 |
| 10111 | Q | 1 |
| 11000 | O | 9 |
| 11001 | B | ? |
| 11010 | G | National/private |
| 11011 | FIGS | FIGS |
| 11100 | M | . |
| 11101 | X | / |
| 11110 | V | = |
| 11111 | LTRS | LTRS |
Primary reference: ITU-T Recommendation S.1, International Telegraph Alphabet No. 2. The encoder accepts ASCII equivalents for apostrophe and hyphen. Other unsupported characters are reported, not removed.