Baudot Code to Text Converter
Convert Baudot (ITA2) 5-bit telegraph code to readable text and back. Supports LTRS/FIGS shifts, binary input, and full ITA2 alphabet.
About
Baudot code (ITA2) is a 5-bit character encoding used in teleprinter communications since the early 20th century. Each character is represented by 5 binary digits, yielding 32 possible combinations. Because 32 slots cannot cover both letters and figures, the ITA2 standard uses two shift states: LTRS (code 11111) switches to the alphabetic plane, and FIGS (code 11011) switches to the numeric/punctuation plane. A lost shift character during transmission causes all subsequent characters to decode incorrectly - a phenomenon called "mutilation" that historically corrupted entire telegrams. This converter implements the full ITA2 standard with stateful shift tracking. It assumes LTRS shift as the default initial state, consistent with standard teleprinter protocol. Note: regional ITA2 variants exist (US TTY vs. British); this tool follows the international ITA2 mapping.
Formulas
Baudot ITA2 decoding is a stateful finite automaton. The decoder maintains a shift register S that is either LTRS or FIGS. For each 5-bit input code c, the output character is determined by:
Where TLTRS and TFIGS are the two lookup tables of 32 entries each. The initial state is S0 = LTRS. For encoding (text β Baudot), the algorithm iterates each character, finds which table(s) contain it, inserts a shift code when the required table differs from the current shift state, then emits the 5-bit code. Characters present in both tables (SP, CR, LF, NUL) do not require a shift change.
Reference Data
| Binary | Decimal | LTRS | FIGS | Notes |
|---|---|---|---|---|
| 00000 | 0 | NUL | NUL | Null / Blank |
| 00001 | 1 | E | 3 | |
| 00010 | 2 | LF | LF | Line Feed |
| 00011 | 3 | A | β | Hyphen in FIGS |
| 00100 | 4 | SP | SP | Space |
| 00101 | 5 | S | BEL | Bell signal in FIGS |
| 00110 | 6 | I | 8 | |
| 00111 | 7 | U | 7 | |
| 01000 | 8 | CR | CR | Carriage Return |
| 01001 | 9 | D | $ | Dollar / ENQ variant |
| 01010 | 10 | R | 4 | |
| 01011 | 11 | J | ' | Apostrophe in FIGS |
| 01100 | 12 | N | , | Comma in FIGS |
| 01101 | 13 | F | ! | Exclamation in FIGS |
| 01110 | 14 | C | : | Colon in FIGS |
| 01111 | 15 | K | ( | Open paren in FIGS |
| 10000 | 16 | T | 5 | |
| 10001 | 17 | Z | " | Double quote in FIGS |
| 10010 | 18 | L | ) | Close paren in FIGS |
| 10011 | 19 | W | 2 | |
| 10100 | 20 | H | # | Hash / Pound in FIGS |
| 10101 | 21 | Y | 6 | |
| 10110 | 22 | P | 0 | |
| 10111 | 23 | Q | 1 | |
| 11000 | 24 | O | 9 | |
| 11001 | 25 | B | ? | Question mark in FIGS |
| 11010 | 26 | G | & | Ampersand in FIGS |
| 11011 | 27 | FIGS | FIGS | Shift to Figures |
| 11100 | 28 | M | . | Period in FIGS |
| 11101 | 29 | X | / | Slash in FIGS |
| 11110 | 30 | V | ; | Semicolon in FIGS |
| 11111 | 31 | LTRS | LTRS | Shift to Letters |