Why UTF-8 replaced ASCII, and when ASCII still matters
By TechCompare · Updated · How we check
Default to UTF-8 for everything. ASCII is a historical subset that UTF-8 handles transparently. The only time you choose ASCII over UTF-8 is when you're interfacing with a system that genuinely cannot handle bytes above 0x7F.
Bytes per character in UTF-8 and ASCII
| Character | Code point | UTF-8 (hex) | Bytes | ASCII (hex) |
|---|---|---|---|---|
| A | U+0041 | 41 | 1 | 41 |
| é | U+00E9 | C3 A9 | 2 | None |
| € | U+20AC | E2 82 AC | 3 | None |
| 😀 | U+1F600 | F0 9F 98 80 | 4 | None |
ASCII stops at U+007F, so é, € and 😀 have no ASCII byte. Latin-1 and other extended code pages give é a single byte, but they aren't ASCII. Select a character to see its bytes in the Encoding Converter.
ASCII maps 128 English characters to 7-bit values. UTF-8 is a variable-width encoding that is backwards-compatible with ASCII. UTF-8 can represent every character in Unicode (over 140,000 and growing) using 1 to 4 bytes per character. ASCII-only systems are vanishingly rare in 2026.
How this is calculated
UTF-8 is the dominant text encoding on the web and in file formats such as JSON, which requires UTF-8. Go and Rust use UTF-8 as their standard string encoding. Python text-file defaults depend on the version and environment: Python 3.15 enables UTF-8 Mode by default, while Python 3.14 and earlier generally use the locale encoding unless UTF-8 Mode is enabled. ASCII survives in legacy protocols and other systems that require 7-bit data. Use an explicit encoding when file compatibility matters.
Verdict
Use UTF-8 unless a format or system explicitly requires 7-bit ASCII. Every valid ASCII string is already valid UTF-8, so you give nothing up. The one place to set it by hand is Python's text-file default, which depends on the version and environment.
More Encoding scenarios
Related guides
Frequently asked questions
Is UTF-8 backward compatible with ASCII?
When would I still need plain ASCII instead of UTF-8?
Why did UTF-8 win over other encodings like UTF-16?
Related tools
JSON Formatter
Validate, format, and minify JSON. Browse it as a tree, run JSONPath queries, compare two documents, or validate against a JSON Schema.
Use toolUnix Timestamp
Convert between Unix timestamps and human-readable dates.
Use toolCron Generator
Visually build standard 5-part cron expressions or translate them into readable schedules.
Use tool