Baudot ITA2 Teleprinter Code Converter
Encode text as 5-bit teleprinter code, see where the letters and figures shifts go and how it looks on punched tape, or decode codes back to text.
Runs in your browser. Your files never leave your device. See how to check
…
How to do it
- 1Choose the direction
Text to codes or codes to text.
- 2Pick the variant
ITA2 or US TTY.
- 3Enter the input
Text, or 5-bit patterns or numbers.
- 4Choose a display
Bits, decimal or hex.
- 5Check the shifts
See where LTRS and FIGS were added.
- 6View the tape
Holes and sprocket for each code.
About this tool
Before ASCII there was the 5-bit teleprinter code, known as Baudot or more accurately the Murray code standardised as International Telegraph Alphabet No. 2. Five bits give only 32 combinations, so ITA2 uses two shift states: after the LTRS code the patterns mean letters, after FIGS they mean digits and punctuation. Telex networks used it for most of the twentieth century, and radioteletype (RTTY) amateurs, deaf TTY telephone users in the United States and some news and weather wire services still do. This converter encodes text into ITA2 or the US TTY variant, inserting shift codes only where needed, and shows the result as bit patterns in the traditional bit 1 to bit 5 order, as decimal or as hex. A punched-tape view draws each row with its holes and the sprocket hole, and the full code table lists every pattern with its letter and figure meaning. Decoding accepts bit patterns or numbers and tracks the shift state for you.
How shifts work
The encoder starts with LTRS so the receiver is in a known state, then inserts FIGS before a run of digits or punctuation and LTRS before the next letters. Space, carriage return, line feed and blank exist in both states, so they never need a shift. Messages traditionally use CR followed by LF at the end of each line, and the converter does the same.
ITA2 versus US TTY
The two variants agree on letters and digits but differ in some figures-shift symbols. ITA2 has the apostrophe on S, the bell on J, plus on Z and equals on V, and reserves F, G and H for national use. US TTY puts the bell on S, the apostrophe on J, the dollar sign on D, a quote on Z, a semicolon on V and the exclamation mark, ampersand and hash on F, G and H.
Bit order
ITA2 tables print bits from 1 to 5, the order in which the start-stop signal sends them. This tool shows that order on the tape. In the decimal and hex views, bit 1 is the least significant bit, so A, printed 11000, is 3.
RYRYRY
The test pattern RYRY alternates two codes, 01010 and 10101, that flip every bit, which made it ideal for checking teleprinter mechanics and radio links.
Limits
Lower-case letters do not exist and are converted to capitals; characters with no ITA2 code, such as accented letters and most symbols, are listed and skipped.
Worked example
The text RYRYRY THE QUICK BROWN FOX 123 encodes to 31 five-bit codes, starting with LTRS 11111 and R 01010, with a single FIGS shift before 123, and the punched-tape view shows the classic alternating RYRY pattern.
Quick facts
- Category: Developer & Data
- Works in your browser, no sign-up, no upload.
- Your input stays on your device.
- Available in English.
- Content last reviewed:
- Official source: ITU-T Recommendation S.1 (International Telegraph Alphabet No. 2)
Frequently asked questions
Is Baudot code the same as ITA2?
Common usage says Baudot, but almost all equipment used Murray's ITA2 code.
Why are there only capital letters?
Five bits allow 32 codes, not enough for both cases.
What do LTRS and FIGS do?
They switch how the following codes are read: letters or figures.
Which variant do amateur radio RTTY users use?
Usually US TTY in North America and ITA2 elsewhere; letters and digits are the same.
Can I decode numbers instead of bits?
Yes. Enter values from 0 to 31 separated by spaces.
Does it make audio?
No. It converts codes; use an RTTY modem program for tones.
