Baudot code, in its standardised ITA-2 form (the Baudot-Murray code), packs each character into just five bits. It powered teleprinters, Telex networks, and amateur radio teletype (RTTY) for decades. This tool encodes text to ITA-2 5-bit groups and decodes them back, handling the all-important shift states automatically.
How it works
Five bits provide only 32 distinct codes — not enough for 26 letters plus 10 digits plus punctuation and control characters. ITA-2 overcomes this with two shift states. Most code values mean one thing in the letters (LTRS) set and another in the figures (FIGS) set. For example the code 10000 is T in letters mode and 5 in figures mode.
Two reserved codes switch between the states: 11111 selects LTRS and 11011 selects FIGS. When encoding, the tool tracks the current shift and emits a shift code only when the next character belongs to the other set, exactly mirroring how a real teleprinter minimises wasted characters. Space, carriage return, and line feed share the same code in both sets, so they never trigger a shift.
Decoding
Decoding reads each 5-bit group in order. A LTRS or FIGS code updates the current shift state; any other group is looked up in the active set’s table and appended to the output. Groups that are not exactly five binary digits are flagged so malformed input is visible.
Example
GERA 42 encodes (in letters mode first) to:
11111 11010 00001 01010 00011 00100 11011 01010 10011
The leading 11111 is the LTRS shift, then G E R A and a space follow, the 11011 switches to FIGS, and 4 2 are sent. Decoding the groups reproduces GERA 42 exactly. Everything is computed locally in your browser.