Ken Thompson designed UTF-8, the text encoding behind almost every website today, over dinner in 1992. One September night, in a diner in New Jersey, he worked out on a placemat how to turn characters from any writing system into bytes, while his Bell Labs colleague Rob Pike watched.
Pike thinks it was a Wednesday. By Friday, Plan 9, the research operating system they worked on at Bell Labs, used no other text encoding. Today the web survey firm W3Techs reports that UTF-8 is used by 99.1% of the websites whose character encoding it knows.
The placemat is gone. “I very clearly remember Ken writing on the placemat,” Pike wrote in 2003, “and wished we had kept it!” That year he set out to correct a version of events he kept seeing repeated: that IBM designed UTF-8 and Plan 9 merely implemented it.
A phone call and a deal
Plan 9 already supported Unicode, at the time a 16-bit character set, and stored it as bytes with what Pike calls “the original UTF,” an encoding from a draft of the international standard ISO 10646. “We hated it,” he wrote. Pike and Thompson’s 1993 paper on the conversion lists the old encoding’s drawbacks: encoding and decoding needed multiplication, division and modulo operations, and it was not self-synchronizing, so a program generally could not find where characters began without reading from the start of the string.
Late one afternoon, with Plan 9 close to shipping, Pike got a call from people at a committee meeting of X/Open, an industry consortium that set standards for Unix systems. He thought they were from IBM and remembered them being in Austin. They wanted Thompson and Pike to vet a new proposal called FSS/UTF, short for File System Safe UCS Transformation Format (UCS is the Universal Character Set of ISO 10646).
The name explained the worry. In the old UTF, a byte inside a multibyte character could be a slash, and Unix file systems do not allow a slash or a null byte inside a file name. X/Open’s proposal kept each of the 128 ASCII codes (English letters, digits, punctuation and control characters) as a single byte meaning only itself, and built longer characters only from bytes with the high bit set.
Pike had his own requirements. In that first call, he wrote, he “sang out a list of desiderata,” and FSS/UTF lacked at least one: the ability to resynchronize a byte stream picked up mid-run before losing a whole character. Because that was missing, “we felt free – and were given freedom – to roll our own.” The deal, as he recalled it, came with a condition: speed.
Dinner, then a deadline
They went to dinner, and Thompson worked out the bit-packing. Back at the lab, they called X/Open, explained the scheme and mailed an outline. In Pike’s account, the reply said it was better than X/Open’s own proposal and asked how fast they could implement it. They promised a complete running system by Monday, which Pike believed was the day of X/Open’s “big vote.”
That night Thompson wrote the code to pack and unpack characters, and Pike started “tearing into the C and graphics libraries.” The next day the code was done, and they began converting the system’s own text files. “By Friday some time,” Pike wrote, “Plan 9 was running, and only running, what would be called UTF-8.”
The old files support his memory. At Pike’s request, Russ Cox searched the Plan 9 archives in 2003. The first version he found of Thompson’s draft, apparently X/Open’s text with the new scheme added at the end, is dated 2 September 1992, a Wednesday, at 23:44. Plan 9’s C library switched away from the old encoding on 4 September, a Friday. Early on Tuesday, 8 September, Thompson mailed X/Open “our modified FSS-UTF proposal,” adding that Plan 9 had been converted to it. “The words are the same as on the previous proposal,” he wrote. “My apologies to the author.”
The sixth requirement
The mailed proposal listed X/Open’s five design criteria, including no slash or null byte inside a character and a first byte that gives the length, and added a sixth: “It should be possible to find the start of a character efficiently starting from an arbitrary location in a byte stream.” Thompson’s layout fits on a placemat:
- A byte that starts with 0 is an ASCII character, exactly as before, so plain ASCII text is already valid UTF-8.
- A longer character begins with a lead byte whose leading 1s give its length: 110xxxxx starts two bytes, 1110xxxx starts three.
- Every byte after the lead byte starts with 10.
That last rule supplies what FSS/UTF lacked. A program dropped into the middle of a stream skips any bytes that begin with 10 and lands on the start of the next character. The proposal Thompson mailed to X/Open in 1992 covered values up to 31 bits with sequences of up to six bytes. In 2003, Request for Comments (RFC) 3629, the current Internet standard for UTF-8, limited it to four bytes, enough for every code point up to U+10FFFF, the top of the Unicode range.
How the credit went astray
The first RFCs on UTF-8, RFC 2044 in 1996 and RFC 2279 in 1998, called it “originally a project of the X/Open Joint Internationalization Group.” They named Gary Miller, Greger Leijonhufvud and John Entenmann as the original authors and said Thompson and Pike later did significant work on it. Pike thought the “IBM designed it, Plan 9 implemented it” story began with RFC 2279, though RFC 2044 had carried the same credit. “At the time, we were so happy UTF-8 was catching on we didn’t say anything about the bungled history,” he wrote.
RFC 3629, which replaced RFC 2279 in November 2003, tells it differently. It says UTF-8 “was devised in September 1992 by Ken Thompson, guided by design criteria specified by Rob Pike,” and that X/Open’s group then stewarded Thompson’s design through standardization.
Pike did not write X/Open out of the story. He gave “full kudos to the X/Open and IBM folks for making the opportunity happen and for pushing it forward,” while insisting that “Ken designed it with me cheering him on, whatever the history books say.” He also conceded: “We’ll never know how much the original X/Open proposal influenced us; the two proposals are very different but do share some characteristics.”
What the placemat teaches
The famous part of this story is the speed: a design over dinner, an operating system converted by Friday. The more useful part is the list Pike recited on the phone. X/Open’s proposal already solved the problem it was written for, safe file names. What it could not do was let a program find its place from any byte, and that one missing requirement was enough to reopen the design.
The other half of the lesson is what the new design kept. Every ASCII file was already a UTF-8 file, so existing ASCII text needed no conversion.
Before you build a replacement, can you name the one property the current design lacks, in a sentence short enough to say on a phone call?
Related stories
Sources
- Rob Pike, “UTF-8 history,” emails of 30 April and 7 June 2003, with Russ Cox’s archive notes and Ken Thompson’s September 1992 mails and proposal (hosted by Markus Kuhn, University of Cambridge)
- Rob Pike and Ken Thompson, “Hello World or Καλημέρα κόσμε or こんにちは 世界,” Plan 9 documentation; originally in Proc. of the Winter 1993 USENIX Conference, San Diego
- F. Yergeau, RFC 3629, “UTF-8, a transformation format of ISO 10646,” November 2003
- F. Yergeau, RFC 2279, “UTF-8, a transformation format of ISO 10646,” January 1998
- F. Yergeau, RFC 2044, “UTF-8, a transformation format of Unicode and ISO 10646,” October 1996
- W3Techs, “Usage statistics of character encodings for websites,” accessed 12 October 2026
- Wikipedia, “X/Open” (the industry consortium for Unix standards, 1984–1996)
- Featured image: Rob Pike giving a keynote at OSCON 2010. Photograph by Kevin Shockey, via Wikimedia Commons, CC BY 2.0

Leave a Reply