Base64Hub

Baudot Code Translator: ITA2 5-Bit Teleprinter Workbench

Encode ANSI X3.4 ASCII strings into 5-bit ITU-T Rec. S.1 (ITA2) Baudot punch-tape binary frames with automatic LTRS (11111) and FIGS (11011) shift state injection.

ITA2 5-BIT READY
50 Bd
01010 10101 01010 10101 00100 11011 10111 10011 00001
Shift Transitions: 1 (LTRS → FIGS)
5-Bit Characters9 Baudot frames
Total Payload Bits45 Data Bits
Active Shift StateFIGS (11011 / 0x1B)
Line Duration1.35 s (150 ms/ch)
5-Channel Paper Punch-Tape Visualizer & LTRS/FIGS State Trace Ch1 · Ch2 · Sprocket · Ch3..Ch5
Frame 01: 'R' [LTRS] -> 01010 (0x0A) | Tape: . O : . O .
Frame 02: 'Y' [LTRS] -> 10101 (0x15) | Tape: O . : O . O
Frame 06: [FIGS SHIFT] -> 11011 (0x1B) | Tape: O O : . O O
ITU-T Rec. S.1 ITA2 Baudot 5-channel paper punch-tape reader and LTRS/FIGS mechanical shift matrix
ITU-T Rec. S.1 (ITA2) 5-channel paper tape perforation tracks (Ch1-Ch2, sprocket feed, Ch3-Ch5) and LTRS/FIGS shift latches.
ITU-T Recommendation S.1 (ITA2) Normative Summary

Baudot code (standardized globally as ITU-T Recommendation S.1 / International Telegraph Alphabet No. 2) encodes teleprinter characters as 5-bit binary words (00000 to 11111). Because five binary channels address only 32 states, six shared control codes (LTRS 11111, FIGS 11011, SP 00100, CR 00010, LF 01000, and NUL 00000) operate across both planes while the remaining 26 code points switch meaning between uppercase letters and numerals/symbols.

5-Bit ITA2 Baudot (5n + Shifts) vs. 8-Bit ASCII Wire Footprint

Bit density comparison across alphabetic teletype frames and mixed numeral streams

ITA2 5-Bit Stream (5.00b + Shifts) ANSI X3.4 8-Bit Octets (8.00b)
56 B 28 B 0 B 0.25x Raw 14 B Payload (20 B B64) 2.0x Scale
RFC 4648 Information Density Ratio (Raw / Base64 Wire Size) 75.0% Payload Efficiency (+33.3% Overhead)
ITU-T Rec. S.1 7.42-Unit Asynchronous Frame & Shift State Cardinality
Nbits = 5 ( Lchars + Sshifts ) , Tframe = 1+5+1.42 Rbaud

How Does Baudot Code Use LTRS and FIGS Shift Control Characters in the ITA2 Standard?

Baudot code maps 26 uppercase Latin letters and 26 numerals/punctuation symbols onto a single 5-bit register space (0x00 through 0x1F) using two non-printing shift latches: LTRS (11111) and FIGS (11011). Encoding 8 characters ("RYRY 123") emits 9 five-bit frames (45 data bits) because a single 11011 shift precedes the numeral run.

Before 7-bit ANSI X3.4 ASCII and 8-bit byte buses became universal, global radioteletype (RTTY), submarine telegraph cables, Western Union Telex networks, and deaf telecommunications devices (TDD/TTY) relied on 5-unit fixed-length character framing. Unlike variable-duration pulse signaling analyzed in our ITU-R M.1677-1 Morse Code & Binary Signal Translator, every Baudot character occupies exactly five data intervals, allowing rotary mechanical distributors and 5-solenoid selector magnets to decode text without human ear interpretation.

When inspecting legacy serial captures or Vernam stream-cipher punch tapes (where a 5-bit plaintext tape is XORed bit-by-bit with a 5-bit key tape), engineers pair this 5-unit state machine with our Hexadecimal, Binary & IEEE 754 Byte Decoder Hub and our EBCDIC to ASCII Mainframe Codepage Translator to audit historical 5-bit, 6-bit BCD, and 8-bit EBCDIC migrations.


Formal Mathematical Proof & Byte Boundary Audit

Mathematical Specifications, Native MathML Models & Verification Vectors

Formal IETF RFC 4648, IEEE Radix-16, ITU-R M.1677-1, and NIST FIPS 180-4 equations governing the client-side engine.

RFC 4648 §4 Base64 24-Bit Quantum Expansion

Verified Standard
LB64=4×⌈n3⌉andPpad=(3−(nmod3))mod3

Every 3-octet (24-bit) input group subdivides into four 6-bit indices (0..63). Remainder octets require 1 or 2 padding (0x3D) characters to align the 4-character quantum.

n (Input UTF-8 Bytes)
14

Byte length emitted by UTF-8 TextEncoder.encode(str)

L_B64 (Encoded Wire Size)
20

4-byte aligned ASCII output length (+33.33% ceiling)

RFC 4648 §8 Base16 Hexadecimal Positional Radix

Verified Standard
V10=∑i=0k−1di⋅16iwhereLHex=2n

Splits each 8-bit octet into high (b >> 4) and low (b & 0x0F) 4-bit nibbles mapped onto 0–9 and A–F, doubling character length (+100%).

L_Hex (Hex Nibble Length)
28

Two hexadecimal nibbles per raw input byte

0xFF (Max Octet Value)
255 Dec

Binary 11111111 full 8-bit unsigned integer ceiling

ITU-R M.1677-1 International Morse Signal Timing

Verified Standard
Tdah=3⋅Tdit,Tchar=3⋅Tdit,Tword=7⋅Tdit

Standardizes telegraph pulse durations relative to the fundamental dot quantum T_dit (1200 / WPM milliseconds under PARIS 50-unit calibration).

T_dit (Dot Unit)
1 Unit

Base pulse duration and intra-character element gap

T_word (Word Delimiter)
7 Units

Represented by "/" between space-delimited character codes

NIST FIPS 180-4 SHA-256 Compression Functions

Verified Standard
Ch(e,f,g)=(e∧f)⊕(¬e∧g),Maj(a,b,c)=(a∧b)⊕(a∧c)⊕(b∧c)

Processes 512-bit padded blocks across 64 Merkle-Damgård rounds over eight 32-bit state registers (H0..H7) to emit a 256-bit (64-hex-char) digest.

H_0..H_7 (Digest State)
256 Bits

Fractional square roots of the first 8 primes (2..19)

K_0..K_63 (Round Constants)
64 Words

Fractional cube roots of the first 64 primes (2..311)

Empirical Specification Verification Matrix

Vector Profile Input Stream Deterministic Output Byte Boundary Implication
UTF-8 Greeting Vector Plaintext: "Hello, Base64!" (14 B) SGVsbG8sIEJhc2U2NCE (1-pad, 20 B) 5-quantum ceiling with single 0x3D padding character (n mod 3 is 2).
High-Bit Octet Sequence Bytes: [251, 255, 191] (0xFBFFBF) Std: +/+/ | URL: -_-_ RFC 4648 §5 replaces "+" and "/" to prevent URL query corruption.
Hexadecimal Byte Stream Hex: "48 65 78" & "0xFF" ASCII: "Hex" | Dec: 255 (11111111) Case-insensitive radix-16 nibble parsing without NaN truncation.
ITU-R Distress Signal Plaintext: "SOS" (3 Chars) ... --- ... (27 Timing Units) 3 dits + 3-unit gap + 3 dahs + 3-unit gap + 3 dits.
NIST FIPS 180-4 Vector Input: "abc" (24 Bits) ba7816bf8f01cfea...f20015ad (64 Hex) Single 512-bit block compression yielding deterministic 256-bit digest.

1. Donald Murray's Hole-Minimization Punch Assignment (1901)

Murray assigned single-hole perforations to high-frequency English vowels and consonants: E = 10000 (Channel 1 only) and T = 00001 (Channel 5 only). Reducing mechanical punch die impacts extended steel punch-block longevity and kept paper tape tensile strength intact at 66 words per minute.

2. Unshift-on-Space (USOS) vs. Explicit Shift Recovery

Over noisy HF radio links, a static burst can corrupt a LTRS (11111) character, leaving the receiving teleprinter trapped in the FIGS plane and printing gibberish numerals (such as "35-384" instead of "WEATHER"). Enabling Unshift-on-Space automatically resets the receiver latch to LTRS whenever SP (00100) arrives.

3. Vernam One-Time Tape (1917) Modulo-2 Bitwise Addition

Gilbert Vernam patented the bitwise XOR stream cipher specifically for 5-bit Baudot paper tape: combining each 5-bit plaintext character Pi with a truly random 5-bit key character Ki via electrical relay XOR gates produces ciphertext Ci = Pi ⊕ Ki within the closed 32-state group.

4. 5-Channel Paper Tape Sprocket Geometry (11/16-Inch Tape)

Standard 5-level Chadless and fully perforated paper tape measures 11/16 inch (17.46 mm) wide. A smaller feed-sprocket hole sits between Bit 2 and Bit 3 (Ch1 Ch2 : Ch3 Ch4 Ch5), allowing optical or mechanical star-wheel readers to distinguish tape orientation immediately.

How Do ITU-T ITA2 (Murray), US TTY, and Original 1870 Baudot (ITA1) Codes Compare?

While all six basic control codes (NUL, CR, LF, SP, FIGS, LTRS) and all 26 uppercase letters share identical 5-bit patterns across ITU-T Rec. S.1 (ITA2) and US Teletype (USTTY), several Figures-plane symbols (such as BEL, $, and ") swap positions between international Telex and North American weather/TTY machines.

5-Bit Binary (Ch1..Ch5) Hex / Octal Paper Tape Track LTRS Plane (Letters) ITA2 FIGS Plane US TTY FIGS Plane
000000x00 / 000. . : . . .NUL (Blank Tape)NUL (Blank Tape)NUL (Blank Tape)
100000x10 / 020O . : . . .E33
000010x01 / 001. . : . . OT55
010100x0A / 012. O : . O .R (Calibration)44
101010x15 / 025O . : O . OY (Calibration)66
110000x18 / 030O O : . . .A- (Hyphen)- (Hyphen)
001000x04 / 004. . : O . .SP (Space)SP (Space / USOS)SP (Space / USOS)
110110x1B / 033O O : . O OFIGS ShiftFIGS LatchFIGS Latch
111110x1F / 037O O : O O OLTRS / RuboutLTRS UnshiftLTRS Unshift
RFC 4648 Multi-Radix Protocol Inspector

Filename & URI Safe Base64URL Alphabet (Indices 62 & 63)

Replaces standard Base64 index 62 (+) with hyphen-minus (-, 0x2D) and index 63 (/) with underscore (_, 0x5F) while omitting trailing = (0x3D) padding characters for OAuth 2.0 PKCE and JWT headers.

Quantum Block
24-Bit (3 Octets -> 4 Sextets)
Index 62 / 63
- (0x2D) / _ (0x5F)
Canonical Vector
[251,255,191] -> -_-_

Historical & Modern Serial Encoding Specification Matrix

Compare 5-bit ITA2 Baudot against 7-bit ASCII, 8-bit EBCDIC, and ITU-R Morse code.

Encoding SchemeNormative RFCInput -> Output QuantumWire ExpansionPadding & URL Safety
Base64 Standard IETF RFC 4648 §4 3 Bytes (24b) -> 4 Sextets +33.33% (4/3n) Mandatory = (0x3D); unsafe + and / in URIs
Base64URL (Filename Safe) IETF RFC 4648 §5 3 Bytes (24b) -> 4 Sextets +33.33% (4/3n) Optional = omitted; uses - (0x2D) and _ (0x5F)
Base32 Uppercase IETF RFC 4648 §6 5 Bytes (40b) -> 8 Quintets +60.00% (8/5n) Uses A–Z and 2–7; case-insensitive DNS/TOTP safe
Base16 Hexadecimal IETF RFC 4648 §8 1 Byte (8b) -> 2 Nibbles +100.00% (2n) Zero padding; deterministic 0x00–0xFF nibble pairs
Percent-Encoding IETF RFC 3986 §2.1 1 Reserved Byte -> %XX Variable (1x–3x) Escapes reserved URI delimiters via % hex triplets
Interactive Specification & Edge-Case Decision Matrix

Interactive Encoding & Cryptographic Architecture Decision Tree

Select your engineering transport constraint to isolate the compliant IETF/NIST specification and load its verification vector directly into the workbench.

Scenario 01 | 4 × ⌈n / 3⌉ Bytes
Inline Data URIs, MIME Attachments & TLS PEM
Scenario 02 | Zero %2B / %2F Escaping
OAuth 2.0 PKCE Verifiers, JWT Tokens & URL Params
Scenario 03 | 2n ASCII Nibbles
Memory Dumps, Network Packet Inspection & Byte Debugging
Scenario 04 | 64-Char Fixed Hex
Immutable Checksums, Git Commits & Distributed IDs
Recommended Standard

IETF RFC 4648 §4 Standard Base64 (6-Bit Sextet + 0x3D Padding)

1.333x Expansion (+33.3%)

Use Standard Base64 when embedding small raster icons (under 4 KB) in CSS/HTML Data URIs or encoding X.509 certificates where strict 4-character quantum padding (0x3D) is required by MIME parsers.

Normative Specifications
RFC 4648 §4 Base64RFC 2397 Data URIRFC 7468 PEM Armor
Wire Size Rule
4 × ⌈n / 3⌉ Bytes

Frequently Asked Questions About Baudot Code & ITA2 Teleprinter Encoding

How does a 5-bit Baudot code represent 58 letters, numerals, and control characters using only 32 binary states? +

Because 2^5 equals 32 discrete bit combinations (00000 through 11111), Donald Murray and ITU-T Recommendation S.1 (ITA2) partitioned the character set into two stateful shift planes: the Letters (LTRS) plane and the Figures (FIGS) plane. Transmitting FIGS (binary 11011, 0x1B) latches the receiver mechanical typebasket into numeral/punctuation mode until LTRS (binary 11111, 0x1F) restores alphabetic decoding.

Why do teleprinter engineers transmit the 'RYRYRY' sequence to calibrate Baudot punch-tape and RTTY links? +

In ITU-T Rec. S.1 (ITA2), uppercase 'R' is encoded as binary 01010 (0x0A) and uppercase 'Y' is encoded as binary 10101 (0x15). Alternating 'R' and 'Y' toggles all five selector magnet channels between complementary bit polarities on every single frame, stress-testing mechanical clutch timing and regenerative repeater bias.

What is the structural difference between Emile Baudot's original 1870 code and the ITU-T ITA2 Murray standard? +

Emile Baudot designed the original 1870 5-unit synchronous code (ITA1) for manual 5-key piano-style chord keyboards using Gray-like code ordering. In 1901, Donald Murray introduced typewriter keyboards and paper punch-tape, reassigning the 5-bit patterns so the most frequent English letters ('E' = 10000, 'T' = 00001) required only a single punched hole to minimize paper wear.

Why does LTRS (11111) double as a punch-tape rubout (delete) code on 5-channel teleprinter paper tape? +

On physical 5-channel paper tape, punching all five data holes (11111) overwrites any previously mistyped character on the tape. Because 11111 is assigned to the LTRS shift control code, a teleprinter reader encountering a run of 11111 frames in Letters mode performs a harmless no-op without printing extraneous glyphs.

How is asynchronous framing structured at 45.45 Baud and 50 Baud on RTTY and TDD/TTY lines? +

Each asynchronous Baudot character begins with a 1-unit Space (0) start bit, followed by 5 data bits (Bit 1 through Bit 5), and terminates with a 1.42-unit or 1.5-unit Mark (1) stop pulse (7.42 or 7.5 total unit intervals per character). At 50 Baud (20 ms per bit), each 7.5-unit frame requires 150 ms, yielding 6.67 characters per second (approximately 66.7 WPM).