The placemat in New Brunswick
In September 1992, Ken Thompson and Rob Pike sat in a diner in New Brunswick, New Jersey, and designed UTF-8 on a placemat. The problem in front of them was almost insultingly small: the Plan 9 kernel had to read file names without knowing which character encoding they were written in. The answer they drew was an encoding that announces where it is. Eleven years later, in November 2003, RFC 3629 wrote the placemat down as a standard — by which point the standard was mostly ratifying code that had been running for a decade.
UTF-8 won the encoding wars for two unglamorous reasons. Every ASCII byte keeps the meaning it had in 1963, so a parser that knows nothing about Unicode still works on the parts of a stream it understands. And a reader that starts in the middle of a stream can find the next character boundary unaided. RFC 3629’s design list says it without decoration: “Character boundaries are easily found from anywhere in an octet stream.”
Pike’s account of that afternoon survives as a short note, UTF-8 History, and it reads less like a standards meeting than two people fixing a plumbing problem before the coffee went cold. Thompson wrote the first implementation. The placemat itself — the most consequential piece of diner stationery in computing history — was never archived. Everything since has been migration.
Why UTF-8 won: ASCII compatibility and self-synchronization
Two properties did the work, and neither is glamorous.
The first is backward compatibility. UTF-8 encodes U+0000 through U+007F as single bytes with their ASCII values, so the entire pre-Unicode world of parsers, protocols, regular expressions and C string handling keeps functioning on any text that happens to be English. The abstract of RFC 3629 states the payoff: UTF-8 “has the characteristic of preserving the full US-ASCII range, providing compatibility with file systems, parsers and other software that rely on US-ASCII values but are transparent to other values.”
The second is self-synchronization. In UTF-8, the first octet of a multi-octet sequence carries its own length, and every continuation byte is distinguishable from a leading byte. RFC 3629 again: “The first octet of a multi-octet sequence indicates the number of octets in the sequence.” A reader that lands in the wrong place walks forward until the bytes make sense again.
That is worth more than elegance. A truncated buffer, a chunked HTTP body, a file cut at an arbitrary offset, a database column that silently clipped a string — all of them produce a stream that begins mid-character. In a fixed-width encoding, a reader that loses its place stays lost. In UTF-8, it recovers within three bytes.
The alternatives were wider, endian-dependent, and lost
The rival designs were not stupid. They were built for a world where text is a sequence of 16-bit or 32-bit units — convenient when you are indexing a string in memory, awkward when you are pushing bytes through a protocol written for seven-bit characters. UTF-16 needs a byte order mark or an out-of-band agreement to say which end is which. UTF-32 needs four bytes to say what UTF-8 says in one.
Both of them break the kernel’s assumption. If a delimiter byte can appear inside a character, a program scanning for delimiters has to know the encoding. If it cannot, the program can stay stupid — which is the highest compliment in systems design.
UTF-8 also had the better failure mode. Guess the byte order wrong in UTF-16 and the rest of the stream becomes noise. Guess wrong in UTF-8 and you lose one character, because the next boundary is findable.
RFC 3629 arrives eleven years late
The paper trail is a short course in how standards actually get made: code first, paperwork later, and the paperwork mostly narrowing what the code is allowed to mean.
- 1992. Thompson and Pike design UTF-8 at Bell Labs. Thompson implements it in Plan 9.
- 1993. X/Open publishes FSS/UTF, a file-system-safe transformation format that lands on essentially the same design.
- 1996. ISO/IEC 10646-1 Amendment 2 adds UTF-8 as Annex P.
- January 1998. RFC 2279, François Yergeau’s specification, permits sequences of up to six octets.
- November 2003. RFC 3629, by Yergeau and Mark Davis, cuts the maximum to four octets and bans the sloppy forms.
The 2003 restriction had a reason beyond tidiness. Unicode and ISO 10646 spent the 1990s merging their repertoires, and the merged standard tops out at U+10FFFF. UTF-16 can reach exactly that far. A UTF-8 that could encode 31-bit code points would describe characters no UTF-16 string could hold, making conversion lossy in one direction and comparison unreliable in both. RFC 3629 aligned the two by making the five- and six-octet forms illegal.
The same revision closed the other doors. Surrogate code points U+D800 through U+DFFF are not valid UTF-8, and the octet values C0, C1 and F5 through FF never appear. Those gaps are not decoration. They are what makes a UTF-8 stream checkable in a few lines of code.
The overlong form: C0 80 and the silent rewrite
The dangerous failure is not a crash. It is a silent rewrite.
Before RFC 3629, a decoder was free to accept overlong encodings — sequences that spell a character in more bytes than necessary. The two-byte sequence C0 80 spells U+0000. A lenient decoder reads it as a null; a strict one rejects it. Put both in the same pipeline and you get a filter that inspected one byte string and a reader that received a different character, with nothing in between to raise an alarm.
RFC 3629 makes rejection a requirement rather than a courtesy: “Implementations of the decoding algorithm above MUST protect against decoding invalid sequences.” It adds that “decoding invalid sequences may have security consequences or cause other problems” — a sentence that has been earning its keep ever since.
The overlong form never fully died. Java’s Modified UTF-8 still encodes NUL as C0 80, because Java’s original serialization format wanted a null that a C string could not mistake for a terminator. The compromise is a useful reminder: a format’s edge cases do not vanish when a standard forbids them. They move into the products that already shipped.
The byte order mark is a leftover from a war UTF-8 did not fight
U+FEFF is ZERO WIDTH NO-BREAK SPACE, and at the head of a stream it can act as a signature: in UTF-8 it appears as the three bytes EF BB BF. Anywhere else it must be read as a zero-width character with no effect on layout.
The mark exists because UTF-16 needed to declare which end was which. UTF-8 has one byte order, so the mark has no job — and yet it persists, because files exist, editors exist, and a text editor that writes a BOM will not stop because a specification finds it redundant. A one-octet encoding unit has no byte order, so the mark’s original purpose evaporates and the machinery stays behind as a compatibility artifact.
The practical consequence is a small, recurring comedy. A BOM at the top of a file is invisible in a browser and catastrophic in a shell script. Every generation of programmers has lost an afternoon to a stray EF BB BF at the top of a CSV.
Why UTF-8 gets to be the last encoding standing
UTF-8 is not entrenched because a committee declared it. It is entrenched because the switching cost is distributed across everything at once: every file, every protocol header, every database collation, every regular expression engine, every terminal, every log pipeline, every JSON document. RFC 8259 requires JSON exchanged between systems to be UTF-8, which quietly made UTF-8 the default wire format for an entire generation of APIs.
Authority in a technical standard is a strange substance: it is granted by everyone who never has to think about it. UTF-8 is now what you use when you do not choose an encoding — the default in browsers, in most operating systems, in the standard library of most modern languages, and on more than 98 percent of websites by W3Techs’ count.
That is the shape of a real standard. It does not win by being announced. It wins by being adoptable one file at a time, by surviving truncation and concatenation, and by making its own invalid forms cheap to detect. RFC 3629 did not create UTF-8’s authority. It recorded it, then made sure nobody could quietly redefine it.
The placemat is gone. The properties are not. And the reason every rival encoding lost is the reason the placemat worked: an encoding that can be read from anywhere does not need to be trusted from the start.
Member Briefing
Read the full trend briefing
Members read the full briefing with the source notes behind every finding.
Strategic Circle
A daily briefing in your language, built from changes we have verified.
Join for USD 20/monthCancel anytime.
Members also get the full research library, a daily briefing on the networks they follow and the private forum.






