Learn the real difference between ASCII, Unicode, and UTF-8, and why UTF-8 is backward-compatible with ASCII.
“ASCII,” “Unicode,” and “UTF-8” get used almost interchangeably in casual conversation, but they answer three different questions: which characters exist, which number represents each one, and how that number gets stored as actual bytes.
ASCII and Unicode are character sets, definitions of which number stands for which character. UTF-8 is an encoding, a rule for turning those numbers into bytes that can actually be stored or transmitted.
UTF-8 encodes the first 128 Unicode code points, the same range as ASCII, as a single byte, identical to how ASCII itself represents them. Characters beyond that range use 2, 3, or 4 bytes instead:
| Character | Code Point | UTF-8 Bytes |
|---|---|---|
| A | U+0041 | 1 byte (41) |
| € | U+20AC | 3 bytes (E2 82 AC) |
| 😀 | U+1F600 | 4 bytes (F0 9F 98 80) |
This is exactly why any valid ASCII text file is also valid UTF-8: every character in it falls within that single-byte, ASCII-identical range.
The ASCII Text Converter, Unicode Text Converter, Hex to Text Converter, and Binary to Text Converter all help work with these representations directly.
ASCII Text Converter
ASCII defines 128 characters. Unicode defines well over 140,000, including all of ASCII’s characters as its starting range, plus every other writing system and emoji.
Unicode is the standard defining which number represents which character. UTF-8 is one specific way of storing those numbers as bytes. Unicode is the “what”; UTF-8 is the “how.”
No. UTF-16 and UTF-32 also encode Unicode code points, using different byte-length conventions. UTF-8 is simply the most widely used on the web.
Largely because of its ASCII backward-compatibility: any existing ASCII text is automatically valid UTF-8 with no conversion needed, which made adoption far easier than switching to an incompatible format.
No. It uses a variable number, from 1 byte for basic Latin characters up to 4 bytes for characters further into the Unicode range, such as many emoji.
Find the right tool, or keep reading Brekzy's other guides.