Baudot code translator
Encode text to 5-bit Baudot / ITA2 telegraph code and decode it back.
Baudot code translator
Baudot code — standardized as ITA2, the International Telegraph Alphabet No. 2 — represents every character with just 5 bits, half the width of ASCII. That's only 32 possible codes for an alphabet with 26 letters, 10 digits and a dozen punctuation marks, so telegraph equipment reused the same codes twice: a LETTERS shift code (11111) switches the receiver into alphabet mode and a FIGURES shift code (11011) switches it into digits-and-punctuation mode. This tool encodes plain text into that 5-bit stream and decodes it back, tracking the shift state exactly the way a real teleprinter did.
Two variants are available. ITA2 is the international table; US TTY is the variant American teleprinters used, differing only in a few FIGURES-shift punctuation marks. Pick whichever matches the equipment or historical text you're working from, then choose how each group is displayed — raw binary like "11000", its decimal value from 0 to 31, or dot notation (●○) mirroring the punched holes on paper tape — and set the separator between groups.
Baudot has no lowercase, so input is uppercase-folded before encoding (café becomes CAFE), and a character with no equivalent in the selected variant is either dropped silently or replaced with "?", your choice. Decoding is strict: a group that isn't exactly 5 bits is reported as an error naming the offending group rather than silently misread.
Everything runs locally in your browser. The text and codes you work with are never uploaded anywhere, whether you're decoding a historical telegram, building a teleprinter simulator, or exploring how pre-ASCII text encoding worked.