Who’s exploring?

DISCOVER · ARTICLE

The 128 symbols behind every text file

ASCII fits its characters into seven bits, and about a quarter of them are signals rather than symbols.

Seven bits, 128 slots

ASCII was first published in 1963 as ASA X3.4-1963. It gives each character a number from 0 to 127, and every one of those numbers fits in a seven-bit value. That makes exactly 128 entries in the whole table.

Of those, 95 are printable characters.

The 33 that you never see

The other 33 are control characters: codes 0 to 31, plus code 127, known as DEL. They were meant to control devices such as printers, or to carry information about a stream of data, not to appear on the page.

Typewriter leftovers

Two of those codes come from teletype machines. A line of text had to end with a carriage return, which moved the printhead back to the start of the line, followed by a line feed. IBM PC DOS later inherited that two-character line ending.

The table is also small: it has no code points for letters with diacritical marks, so words like naive with a diaeresis or jalapeno with a tilde are not directly supported.

Keep reading? Spark picked your next article.

The Apollo computer's program was woven in wireMore about Computing

More in Computing

— forget which articles you’ve read on this device.

Sources, credits & transparency

Report a mistake on this page