This is a list of some binary codes that are used to represent text as a sequence of binary digits "0" and "1". Fixed-width binary codes use a set number of bits to represent each character in the text, while in variable-width binary codes, the number of bits may vary from character to character.
Five-bit binary codes
A number of different five-bit codes were used for early punched tape systems. Five bits per character only allows for 32 different characters, so many of the five-bit codes used two sets of characters per value referred to as FIGS and LTRS, and reserved two characters to switch between these sets. This effectively allowed the use of 60 characters. Standard five-bit standard codes are:
International Telegraph Alphabet No. 1 – Also commonly referred to as Baudot code
International Telegraph Alphabet No. 2 – Also commonly referred to as Murray code
American Teletypewriter code – A variant of ITA2 used in the USA
DIN 66006 – Developed for presentation of ALGOL/ALCOR programs on paper tape and punch cards
The following early computer systems each used its own five-bit code:
Braille – Braille characters are represented using six dot positions, arranged in a rectangle. Each position may contain a raised dot or not, so Braille can be considered to be a six-bit binary code.
International Telegraph Alphabet No. 3 – derived from the Moore ARQ code, and also known as the RCA
ASCII – The ubiquitous ASCII code was originally defined as a seven-bit character set. The ASCII article provides a detailed set of equivalent standards, and variants. In addition, there are various extensions of ASCII to eight bits
CCIR 476 – Extends ITA2 from 5 to 7 bits, using the extra 2 bits as check digits
International Telegraph Alphabet No. 4
Eight-bit binary codes
Extended ASCII – A number of standards extend ASCII to eight bits by adding a further 128 characters, such as:
*HP Roman
*ISO/IEC 8859
*Mac OS Roman
*Windows-1252
EBCDIC – Used in early IBM computers and current System i and System z computers
10-bit binary codes
AUTOSPEC – Also known as Bauer code. AUTOSPEC repeats a five-bit character twice, but if the character has odd parity, the repetition is inverted.
UTF-32/UCS-4 – A four-bytes-per-character representation of Unicode
Variable-length binary codes
UTF-8 – Encodes characters in a way that is mostly compatible with ASCII but can also encode the full repertoire of Unicode characters with sequences of up to four 8-bit bytes.
UTF-16 – Extends UCS-2 to cover the whole of Unicode with sequences of one or two 16-bit elements
GB 18030 – A full-Unicode variable length code designed for compatibility with older Chinese multibyte encodings
Huffman coding – A technique for expressing more common characters using shorter bit strings than are used for less common characters
Data compression systems such as Lempel–Ziv–Welch are able to compress arbitrary binary data. They are therefore not binary codes themselves, but may be applied to binary codes to reduce storage needs
Other
Morse code is a variable length telegraphy code, which traditionally uses a series of long and short pulses to encode characters. It relies on gaps between the pulses to provide separation between letters and words, as the letter codes do not have the "prefix property". Morse code can be represented as a binary stream by allowing each bit to represent one unit of time. Thus a "dit" or "dot" is represented as a single 1 bit, while a "dah" or "dash" is represented as three consecutive 1 bits. Spaces between symbols, letters and words are represented as one, three, or seven consecutive 0 bits. For example, "UP" in Morse Code is "..-.--.", which could be represented in binary as "101011100010111011101".