Skip to content
BENIBIX Learn

ASCII vs UTF-8

People think every plain text file is ASCII, and it is not. ASCII has only 128 codes, for basic English letters, digits and signs. UTF-8 can store every character in every language, plus emoji. Its first 128 codes are the same as ASCII, so plain English text is both. Add one é or one emoji, and the file is UTF-8, not ASCII.

Development📄 Files & Formats

American Standard Code for Information Interchange (ASCII)

An early code that numbers 128 English letters, digits and symbols. Capital A is 65.

ASCII is an early code that gives a number to each English letter, digit and symbol. It has 128 codes, from 0 to 127. Capital A is 65, and a space is 32. Some codes are not letters but signals, like a new line. ASCII only covers basic English. Unicode came later to cover every language, and its first 128 codes match ASCII.

Example
Jack's old label printer only knows ASCII. His name prints fine, but the é in café comes out as a strange mark.
Why it matters
ASCII is the base of almost every text format. UTF-8 stores these 128 characters in exactly the same way.
Full entry
Development📄 Files & Formats

8-bit Unicode Transformation Format (UTF-8)

The code that nearly all sites use. It has each language and emoji.

UTF-8 is the character encoding used by almost every web page and modern system. It can store every letter of every language, plus emoji. Plain English letters take 1 byte each, so old English text is still valid. Other letters take 2, 3 or 4 bytes. If you are asked to pick an encoding, UTF-8 is the safe answer.

Example
Emma's shop shows names in English, Persian and Greek on one page. Because the page is UTF-8, every name looks right.
Why it matters
With UTF-8 in all places, names, signs and every language just work.
Full entry

In one line

American Standard Code for Information Interchange (ASCII)
An early code that numbers 128 English letters, digits and symbols. Capital A is 65.
8-bit Unicode Transformation Format (UTF-8)
The code that nearly all sites use. It has each language and emoji.