What Is ASCII? Character Codes Explained Simply

When you press "A" on your keyboard, your computer does not store the shape of the letter. It stores a number. The agreement about which number means which character is called a character encoding, and the most famous one is ASCII. So what is ASCII, where did it come from, and why does it still matter in a world of emoji and dozens of alphabets? Here is a plain-English explanation.

Screenshot of the ASCII Converter on Assen Tools
The ASCII Converter in use. Open the ASCII Converter – free, no sign-up.

ASCII in a nutshell

ASCII stands for American Standard Code for Information Interchange. Published in 1963, it assigns a number from 0 to 127 to 128 characters:

  • Upper-case letters A–Z
  • Lower-case letters a–z
  • Digits 0–9
  • Punctuation and symbols such as ! @ # $ % & * ( )
  • The space
  • 33 invisible "control characters", such as line feed and tab

Because 127 fits in seven bits, every ASCII character fits comfortably in one byte.

Common ASCII codes

A few worth knowing:

  • Space = 32
  • 0 = 48, 1 = 49 … 9 = 57
  • A = 65, B = 66 … Z = 90
  • a = 97, b = 98 … z = 122
  • Line feed (new line) = 10
  • Tab = 9

Notice that lower-case letters are exactly 32 more than upper-case ones. That neat pattern made it easy for early programs to change case. The word "Hi" is stored as the ASCII code values 72 and 105.

From ASCII to binary

Computers ultimately store those numbers in binary. "H" (72) becomes 01001000 and "i" (105) becomes 01101001. You can see this for any text with the Binary Converter, and learn the conversion itself in how to convert binary to decimal.

The limits of ASCII

ASCII was designed for English. It has no letters with accents (é, ñ), no naira sign (₦), no Arabic, Chinese or Yoruba diacritics, and no emoji. In the 1980s and 1990s, many incompatible "extended ASCII" code pages tried to fill the gap using numbers 128–255, which is why old documents sometimes show garbled characters.

Unicode and UTF-8

Unicode solved the problem by giving a unique number – a code point – to more than 150,000 characters from almost every writing system, plus symbols and emoji. UTF-8 is the most common way to store Unicode, and today the vast majority of web pages use it.

The clever part: UTF-8 is backwards compatible with ASCII. The first 128 code points are identical, and plain English text in UTF-8 is byte-for-byte the same as ASCII. That is why ASCII is still the foundation of modern computing.

Where ASCII matters today

  • Programming: comparing and sorting characters, parsing files, building protocols.
  • Web development: URLs and email headers historically had to use ASCII, which is why special characters are encoded – see the URL Encode and Decode tool.
  • HTML: characters such as < and & are written as entities; the HTML Entity Encoder handles this.
  • Data cleaning: spotting invisible control characters that break imports.

Look up any character

The free ASCII Converter turns text into ASCII codes (decimal, hex and binary) and back again, and shows the full ASCII table. It is useful for students, programmers and anyone debugging odd characters in data.

Frequently asked questions

How many characters are in ASCII? 128, numbered 0 to 127. Of these, 95 are printable characters and 33 are control codes.

Is ASCII the same as Unicode? No, but the first 128 Unicode characters are identical to ASCII, so plain English text is the same in both.

What is "extended ASCII"? A family of older, incompatible 8-bit code pages that used numbers 128–255 for accented letters and symbols. Unicode replaced them.

Why does my text show strange symbols like é? The text was saved in one encoding (usually UTF-8) and opened as another. Re-open or import it as UTF-8 to fix it.

Summary

So, what is ASCII? A 1960s standard that maps 128 characters to the numbers 0–127, so computers can store text as numbers. Unicode and UTF-8 extended it to every language while keeping ASCII as the first 128 characters. Explore the codes for your own text with the free ASCII Converter.

Jonathan Nwachukwu, founder of Assen Tools

Written by

Jonathan Nwachukwu · Founder & developer

Jonathan is a freelance web developer and web development teacher who builds Laravel, WordPress and WooCommerce sites for clients. He built AssenTools to put the everyday file, photo and calculation jobs he kept doing for clients and students into one free, private toolbox, and he maintains every tool and guide on the site.