Nepedia
Back to Discover
Advanced Reader
💻

ASCII

technology Maturity 11-13 Next article →

ASCII stands for the American Standard Code for Information Interchange. It is a character encoding standard used to represent text on digital devices. This system allows computers to process, store, and communicate written language by assigning specific numbers to characters.

USASCII code chart
USASCII code chart

Without a shared standard like ASCII, different machines might not understand the same messages. It has had a massive impact on how computer languages and text markup are designed. In fact, the first 128 code points of the modern Unicode system are identical to ASCII. This makes ASCII a foundational building block for almost all modern digital communication.

The mechanism of ASCII relies on a seven-bit integer system. A bit is the smallest unit of digital data. By using seven bits, the system creates a total of 128 unique code points.

ASCII Table (suitable for printing)
ASCII Table (suitable for printing)

Ninety-five of these are printable characters. This group includes digits 0 through 9, uppercase letters A through Z, and lowercase letters a through z. It also includes common punctuation symbols. The remaining 33 code points are non-printing control characters. These were originally designed for teleprinters to manage data streams. Common examples still used today include the tab, line feed, and carriage return.

ASCII is organized into distinct groups to make it easier for machines to handle. The first 32 positions are reserved for control characters. These codes provide meta-information or control peripheral devices like printers.

US ASCII Control Character Symbols
US ASCII Control Character Symbols

The designers placed the "space" character before the graphic characters. This choice was made to make the collation, or sorting, of data much easier. Most special signs used as separators are also placed before digits. The code was also patterned so that uppercase and lowercase letters were not interleaved. This allows the system to be easily reduced to a 64-character set if needed.

The history of ASCII began with the standardization of seven-bit teleprinter codes. These codes were developed from earlier telegraph systems like the Baudot code. In May 1961, IBM engineer Bob Bemer submitted a proposal to the American Standards Association. He worked with the X3.2 subcommittee to develop the standard.

ASCII1963-infobox-paths
ASCII1963-infobox-paths

The first edition was published in 1963, appearing alongside the Teletype Model 33. The standard underwent a major revision in 1967 and several others through 1986. Over time, the organizing body changed names from the ASA to ANSI. In 2015, the use of ASCII for network interchange was formally elevated to an Internet Standard.

Specific design choices in ASCII were driven by technical needs and costs. The committee debated using a six-bit code with a "shift function" to save space. A shift function uses certain codes to change how the following characters are read. However, they rejected this because errors in a shift code could make a whole message unreadable. They also considered an eight-bit code to allow for more efficient decimal encoding. Ultimately, they chose a seven-bit code to minimize the costs of data transmission. This seven-bit choice also left room for an eighth bit to be used as a parity bit for error checking.

Many symbols in ASCII are linked to the history of mechanical typewriters. For example, the symbols #, $, and % were based on the Remington No. 2 typewriter from 1878. The committee even placed the @ symbol in a specific position to account for its use in different regions. Some interesting quirks exist in the character order, often called "ASCIIbetical" order. In this system, all uppercase letters come before lowercase letters. This means that a capital "Z" actually precedes a lowercase "a" in a digital sort. Digits and many punctuation marks also appear before the alphabet.

While ASCII is highly efficient, it has limitations in a globalized world. It lacks code points for characters with diacritical marks, such as the accents in "résumé" or "jalapeño." To solve this, some hardware can render these marks by overwriting a letter with a tilde or a backtick. Despite these gaps, ASCII remains a vital part of computer science. It connects the era of telegraphy and mechanical typewriters to the modern era of the Internet. It serves as the primary bridge for how machines interpret the human alphabet.

685 words

Where will your curiosity go next?

Keep exploring at your chosen reading level.

🖼️ Images & Media (4)
File:USASCII code chart.svg
USASCII code chart.svg
File:ASCII1963-infobox-paths.svg
ASCII1963-infobox-paths.svg
File:ASCII Table (suitable for printing).svg
ASCII Table (suitable for printing).svg
File:US ASCII Control Character Symbols.png
US ASCII Control Character Symbols.png
More to explore

✨ What else?

Related topics you might enjoy

🔬 Go deeper

More advanced topics to explore

🪜 Step back

Simpler topics to build understanding

What is Nepedia?

A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.