Unicode
Unicode (also known as The Unicode Standard and TUS) is a character encoding standard maintained by the Unicode Consortium. It is designed to support text in all of the world's writing systems that can be digitized. Version 18.0 defines 172,808 characters and 175 scripts used in ordinary, literary, academic and technical contexts.
Unicode has largely replaced the earlier situation, in which many incompatible character sets were used in different places and on different computer systems. All of these sets, plus many more characters, were combined into one Unicode set. Unicode is used to encode most text on the Internet, including most web pages. Support for Unicode has become a common concern in modern software development, and Unicode can encode more than 1.1 million characters.
The Unicode character repertoire is synchronized with ISO/IEC 10646, and the two are code-for-code identical. However, The Unicode Standard is more than a list of characters. To help developers and designers, it also provides charts, reference data, and annexes that explain ideas for various scripts and give guidance on using them. These annexes cover topics such as character normalization, character composition and decomposition, collation, and directionality.
Unicode encodes 3,972 emoji, and the Consortium continues to develop them as part of the standard. Standardization of Unicode was a major factor in enabling their widespread adoption outside of Japan. Unicode text is stored as binary data using one of several encodings, which define how the standard's character codes are turned into sequences of bytes. The Unicode Standard itself defines three: UTF-8, UTF-16, and UTF-32, though several others exist. UTF-8 is the most widely used by a large margin, partly because it is backwards-compatible with ASCII.
Origin and development
Before Unicode, many different text encodings were used, and each one worked only in its own setting. Text written in one encoding often showed up as garbled characters in another. Most of these systems only handled a few writing systems, often a script plus Latin characters. Unicode was designed to work across many scripts. It gives each unit, such as a grapheme, its own unique number called a code point. Details like style are left to the typeface, to markup, or to software such as a web browser or word processor. The first 256 code points match ISO/IEC 8859-1, so Western European text is easy to convert. Many characters that look nearly identical were given separate code points so older text could be converted without losing information. For example, the Halfwidth and Fullwidth Forms block contains a full copy of the Latin alphabet because older CJK encodings had both wide and narrow versions. Its origins go back to the 1980s, when Xerox and its Character Code Standard (XCCS) were part of the story. In 1987, Joe Becker of Xerox, along with Lee Collins and Mark Davis of Apple, began looking into a universal character set, and Dave Opstad also gave input. In 1988 Becker described a plan using 16-bit characters, which he called a "wide-body ASCII". Later, the Research Libraries Group, Sun Microsystems, Microsoft, and NeXT joined the work, and by the end of 1990 a final draft was ready.
The Unicode Consortium was set up in California in January 1991, and the first volume of The Unicode Standard was published that October. In 1996, Unicode 2.0 allowed more than 16 bits, which made room for historic scripts such as Egyptian hieroglyphs and many rare characters. The Consortium is a non-profit group. Its full members include Adobe, Apple, Google, IBM, Meta, Microsoft, Netflix, and SAP. Some countries and government agencies have also been members. People who help Unicode grow can receive the Unicode Bulldog Award, including Tatsuo Kobayashi, Ken Lunde, and Michael Everson. Unicode now includes 175 scripts, such as alphabets, abugidas, and syllabaries, which cover most major writing systems in use today. More details are on the Script (Unicode) page.
Work continues on scripts not yet included, many of which are used mainly in history, religion, or research. Extra characters are also added to existing scripts, along with symbols for mathematics and music. Scripts that are proposed for inclusion include Chisoi and Sirmauri script, while Numidian and Rongorongo are still waiting on user communities to agree on details. Invented scripts such as Tengwar and Klingon are listed in the ConScript Unicode Registry, along with unofficial code assignments in the private use area. The Medieval Unicode Font Initiative focuses on special medieval Latin characters, and some of these have already been added. The Script Encoding Initiative, started in 2002 by Deborah Anderson at the University of California, Berkeley, helps fund proposals for new scripts. Unicode and the ISO's Universal Coded Character Set (UCS) share the same repertoire and code points, but Unicode also includes rules for collation, rendering, and bidirectional text. Unicode is updated regularly, and in 2020 the release of version 14.0 was delayed to September 2021 because of the COVID-19 pandemic.
Architecture and terminology
See also: Universal Character Set characters
Unicode gives each character a number called a code points. These numbers run from U+0000 to U+10FFFF and are written as hexadecimal numbers, with leading zeros added when needed. Text is stored using ways of encoding such as UTF-8 or UTF-16. The codespace is split into 17 planes, and the Basic Multilingual Plane holds the most commonly used characters.
Main article: Plane (Unicode)
Inside each plane, characters are grouped into blocks of related characters. Each code point is also sorted into a General Category, such as letters, numbers, punctuation, or symbols. Some code points are kept for private use, and a few are never given to characters. Some characters are invisible but change how nearby characters look, like the ZERO WIDTH NON-JOINER and ZERO WIDTH JOINER. Control codes come from the C0 and C1 control codes defined in ISO/IEC 6429. When text is read with the wrong code, the result is called mojibake, which can happen with Windows-1252.
Unicode gives each assigned character a unique name, and a letter can be combined with a combining diacritical marks such as an accent. The letter é can be written as one precomposed character or as a letter plus a mark, and canonical equivalence treats these as the same. The DIN 91379 standard covers letters needed in Europe. In Korean, Hangul Jamo parts build syllables. CJK characters use CJK Radicals Supplement, Kangxi radicals, and Ideographic Description Sequences. Some scripts, such as Devanāgarī and Arabic, use special ligature forms, like the lām-alif in Arabic. Tools such as ACE, which became the proof of concept for OpenType, Graphite from SIL International, and AAT from Apple help show these forms. Some Unicode subsets are standardized, including WGL-4 in Windows NT 4.0.
When software cannot show a character, it may show an open box, or U+FFFD. Apple's Last Resort font and the fallback font from SIL International show more information about these characters. Unicode text can be stored as bytes in several ways, including UCS-2, ASCII-compatible UTF-8, surrogate pair forms of UTF-16, and UTF-32. UTF-EBCDIC is not part of the standard. UTF-8 is the most common choice for sharing text, and it is used by FreeBSD and most recent Linux distributions. The byte order mark helps detect byte endianness, and it can be a signature for UTF-8 text, though some code pages use it too. UTF-32 uses one 32-bit unit per character and is used inside programs by GCC and wide character systems, as well as in Python at high-level coding. Punycode helps place text into the Domain Name System through IDNA, which supports Internationalized Domain Names. Older ideas include UTF-5 and UTF-6. GB18030, from the Standardization Administration of China, is the official character set of the People's Republic of China. BOCU-1 and SCSU are compression schemes, and an April Fools' Day RFC from 2005 described the joke encodings UTF-9 and UTF-18.
Further information: Universal Character Set characters § Characters, grapheme clusters and glyphs
| Row | Cells | Range(s) |
|---|---|---|
| 00 | 20–7E | Basic Latin (00–7F) |
| A0–FF | Latin-1 Supplement (80–FF) | |
| 01 | 00–13, 14–15, 16–2B, 2C–2D, 2E–4D, 4E–4F, 50–7E, 7F | Latin Extended-A (00–7F) |
| 8F, 92, B7, DE-EF, FA–FF | Latin Extended-B (80–FF ...) | |
| 02 | 18–1B, 1E–1F | Latin Extended-B (... 00–4F) |
| 59, 7C, 92 | IPA Extensions (50–AF) | |
| BB–BD, C6, C7, C9, D6, D8–DB, DC, DD, DF, EE | Spacing Modifier Letters (B0–FF) | |
| 03 | 74–75, 7A, 7E, 84–8A, 8C, 8E–A1, A3–CE, D7, DA–E1 | Greek (70–FF) |
| 04 | 00–5F, 90–91, 92–C4, C7–C8, CB–CC, D0–EB, EE–F5, F8–F9 | Cyrillic (00–FF) |
| 1E | 02–03, 0A–0B, 1E–1F, 40–41, 56–57, 60–61, 6A–6B, 80–85, 9B, F2–F3 | Latin Extended Additional (00–FF) |
| 1F | 00–15, 18–1D, 20–45, 48–4D, 50–57, 59, 5B, 5D, 5F–7D, 80–B4, B6–C4, C6–D3, D6–DB, DD–EF, F2–F4, F6–FE | Greek Extended (00–FF) |
| 20 | 13–14, 15, 17, 18–19, 1A–1B, 1C–1D, 1E, 20–22, 26, 30, 32–33, 39–3A, 3C, 3E, 44, 4A | General Punctuation (00–6F) |
| 7F, 82 | Superscripts and Subscripts (70–9F) | |
| A3–A4, A7, AC, AF | Currency Symbols (A0–CF) | |
| 21 | 05, 13, 16, 22, 26, 2E | Letterlike Symbols (00–4F) |
| 5B–5E | Number Forms (50–8F) | |
| 90–93, 94–95, A8 | Arrows (90–FF) | |
| 22 | 00, 02, 03, 06, 08–09, 0F, 11–12, 15, 19–1A, 1E–1F, 27–28, 29, 2A, 2B, 48, 59, 60–61, 64–65, 82–83, 95, 97 | Mathematical Operators (00–FF) |
| 23 | 02, 0A, 20–21, 29–2A | Miscellaneous Technical (00–FF) |
| 25 | 00, 02, 0C, 10, 14, 18, 1C, 24, 2C, 34, 3C, 50–6C | Box Drawing (00–7F) |
| 80, 84, 88, 8C, 90–93 | Block Elements (80–9F) | |
| A0–A1, AA–AC, B2, BA, BC, C4, CA–CB, CF, D8–D9, E6 | Geometric Shapes (A0–FF) | |
| 26 | 3A–3C, 40, 42, 60, 63, 65–66, 6A, 6B | Miscellaneous Symbols (00–FF) |
| F0 | (01–02) | Private Use Area (00–FF ...) |
| FB | 01–02 | Alphabetic Presentation Forms (00–4F) |
| FF | FD | Specials |
Adoption
See also: UTF-8 § Implementations and adoption
Unicode, in the form of UTF-8, has been the most common encoding for the World Wide Web since 2008, and almost all content uses it. Much of the non-UTF-8 content is found in other Unicode encodings, such as UTF-16. As of 2024, UTF-8 accounts for on average 98.3% of all web pages, and 983 of the top 1,000 highest-ranked web pages. UTF-8 was designed with 8-bit ASCII as a subset, and over a third of the languages tracked have 100% UTF-8 use. All internet protocols maintained by the Internet Engineering Task Force, such as File Transfer Protocol (FTP), have required support for UTF-8 since the publication of RFC in 1998. Email uses MIME, Base64, and Quoted-printable for Unicode, although adoption in email has been slow. Some East Asian text is still encoded in ISO-2022, and support is improving. Many major free mail providers, such as Yahoo Mail, Gmail, and Outlook.com, support it. All W3C recommendations have used Unicode since HTML 4.0, and Web browsers have supported it for many years. Older versions of Internet Explorer did not display many characters unless told to use a font that contains them. Characters in web addresses such as URIs, URLs, and HTTP requests must be percent-encoded if they are not ASCII. Free and retail fonts based on Unicode are widely available, including TrueType, OpenType, and Web Open Font Format (WOFF and WOFF2). Unicode also partly solves the newline problem, and it defines many characters that programs should recognize as line endings.
Unicode has become the main scheme for processing and storing text inside computers, and it is used almost exclusively for new systems. Early adopters used UCS-2 and later moved to UTF-16. The best known such system is Windows NT and its descendants, including Windows 2000, XP, Vista, Windows 7, Windows 8, Windows 10, and Windows 11, which use UTF-16. The Java and .NET environments, macOS, and KDE also use it. UTF-8, first developed for Plan 9, is the main storage encoding on most Unix-like operating systems, and it is also the most common Unicode encoding in web pages. Text-display systems that use Unicode include Uniscribe and DirectWrite for Microsoft Windows, ATSUI and Core Text for macOS, and Pango for GTK+ and the GNOME desktop. Because keyboards cannot have simple key combinations for every character, several systems provide other ways to enter characters, including methods standardised in ISO/IEC 14755 and online tools based on Shape context.
Issues
Main article: Han unification
Further information: Tamil All Character Encoding
Main article: Combining character
See also: Unicode normalization § Normalization
The Ideographic Research Group advises the Unicode Consortium and ISO about Han unification, which means deciding when Chinese characters that look different only in handwriting or font style should share one code. This has been one of the most debated parts of the standard since the project began. Some critics say Unicode does not include certain rare and old kanji forms, which can make old and uncommon Japanese names harder to handle. The first version had fewer than 21,000 Han characters, but as of version 17.0 it has more than 101,000, and more are still being added, mostly from the Sinosphere. Some older systems, such as the TRON Code and CCCII, keep regional style differences but have their own drawbacks.
Some characters look almost identical to others, so they can be used to trick people with fake web addresses or names. In 2021, researchers named a problem "Trojan Source," which showed that hidden text-direction marks could make computer code do something different from what it appears to do. Unicode also had to work with older character sets such as Shift-JIS, which caused some conversion mismatches. Some writing systems, like Tamil and Devanagari, have limited space in the standard, and the Thai alphabet stores some vowels in a different order from other scripts. Finally, once a character name is published it cannot be changed, so even spelling mistakes in names remain.

Quiz time!
5 questions about Unicode
What is Unicode designed to do?
Keep exploring
This article is a child-friendly adaptation of the Wikipedia article on Unicode, available under CC BY-SA 4.0.
Images from Wikimedia Commons. Tap any image to view credits and license.