e01.org

UTF-8

UTF-8 is a character encoding standard used for electronic communication. Defined by the Unicode Standard, the name is derived from Unicode Transformation Format 8-bit. As of 2026, almost every webpage (99.1% ) is transmitted as UTF-8. UTF-8 supports all 1,112,064 valid Unicode code points using a variable-width encoding of one to four one-byte (8-bit) code units. Code points with lower numerical values, which tend to occur more frequently, are encoded using fewer bytes. It was designed for backward compatibility with ASCII: the first 128 characters of Unicode, which correspond one-to-one with ASCII, are encoded using a single byte with the same binary value as ASCII, so that a UTF-8-encoded file using only those characters is identical to an ASCII file. Most software designed for any extended ASCII can read and write UTF-8, and this results in fewer internationalization issues than any alternative text encoding. UTF-8 is dominant for all countries/languages on the internet, is...

UTF-8 is a character encoding standard used for electronic communication. Defined by the Unicode Standard, the name is derived from Unicode Transformation Format 8-bit. As of 2026, almost every webpage (99.1% ) is transmitted as UTF-8. UTF-8 supports all 1,112,064 valid Unicode code points using a variable-width encoding of one to four one-byte (8-bit) code units. Code points with lower numerical values, which tend to occur more frequently, are encoded using fewer bytes. It was designed for backward compatibility with ASCII: the first 128 characters of Unicode, which correspond one-to-one with ASCII, are encoded using a single byte with the same binary value as ASCII, so that a UTF-8-encoded file using only those characters is identical to an ASCII file. Most software designed for any extended ASCII can read and write UTF-8, and this results in fewer internationalization issues than any alternative text encoding. UTF-8 is dominant for all countries/languages on the internet, is used in most standards, often the only allowed encoding, and is supported by all modern operating systems and programming languages. A modification by Ken Thompson of the Plan 9 operating system group at Bell Labs made it self-synchronizing, letting a reader start anywhere and immediately detect character boundaries, at the cost of being somewhat less bit-efficient than the previous proposal. It also abandoned the use of biases that prevented overlong encodings. Thompson's design was outlined on September 2, 1992, on a placemat in a New Jersey diner with Rob Pike. In the following days, Pike and Thompson implemented it and updated Plan 9 to use it throughout, and then communicated their success back to X/Open, which accepted it as the specification for FSS-UTF. UTF-8 was first officially presented at the USENIX conference in San Diego, from January 25 to 29, 1993. The Internet Engineering Task Force adopted UTF-8 in its Policy on Character Sets and Languages in RFC 2277 ( BCP 18) for future internet standards work in January 1998, replacing Single Byte Character Sets such as Latin-1 in older RFCs. Earlier standards for UTF-8, like , could encode up to 31 bits in six bytes. In November 2003, UTF-8 was restricted by to match the constraints of the UTF-16 character encoding: explicitly prohibiting code points corresponding to the high and low surrogate characters removed more than 3% of the three-byte sequences, and ending at removed more than 48% of the four-byte sequences and all five- and six-byte sequences.

References

  1. ^ At that time subtraction was slower than bit logic on many computers, and speed was considered necessary for acceptance. [ citation needed ] Wikipedia revision 1377190632, retrieved 2026-11-21 · 1795215600.0
  2. ^ Pike, Rob; Thompson, Ken (1993). "Hello World or Καλημέρα κόσμε or こんにちは 世界" (PDF) . Proceedings of the Winter 1993 USENIX Conference . Wikipedia revision 1377190632, retrieved 2026-11-21 · 1795215600.0
  3. ^ "USENIX WINTER 1993 CONFERENCE PROCEEDINGS" . www.usenix.org . Retrieved 2025-11-20 . Wikipedia revision 1377190632, retrieved 2026-11-21 · 1763593200.0
  4. ^ Pike, Rob (2012-09-06). "UTF-8 turned 20 years old yesterday" . Archived from the original on 2012-11-30 . Retrieved 2012-09-07 . Wikipedia revision 1377190632, retrieved 2026-11-21 · 1346972400.0
  5. ^ Lunde, Dr Ken (2022-01-09). "2022 Top Ten List: Why Support Beyond-BMP Code Points?" . Medium . Retrieved 2025-11-20 . Wikipedia revision 1377190632, retrieved 2026-11-21 · 1763593200.0
  6. ^ "DataInput (Java Platform SE 8 )" . docs.oracle.com . Retrieved 2025-11-20 . Wikipedia revision 1377190632, retrieved 2026-11-21 · 1763593200.0
  7. ^ "PEP 529 – Change Windows filesystem encoding to UTF-8 | peps.python.org" . Python Enhancement Proposals (PEPs) . Retrieved 2025-11-20 . Wikipedia revision 1377190632, retrieved 2026-11-21 · 1763593200.0
  8. ^ "The WTF-8 encoding" . wtf-8.codeberg.page . Retrieved 2025-11-30 . Wikipedia revision 1377190632, retrieved 2026-11-21 · 1764457200.0
  9. ^ "Chapter 2" (PDF) , The Unicode Standard — Version 15.0.0 , p. 39 Wikipedia revision 1377190632, retrieved 2026-11-21 · 1795215600.0
  10. ^ Radzivilovsky, Pavel; Galka, Yakov; Novgorodov, Slava. "UTF-8 Everywhere Manifesto" . UTF-8 Everywhere . Retrieved 25 March 2026 . Wikipedia revision 1377190632, retrieved 2026-11-21 · 1795215600.0
  11. ^ "Usage statistics and market share of ASCII for websites" . W3Techs . December 2025 . Retrieved 2025-12-17 . Wikipedia revision 1377190632, retrieved 2026-11-21 · 1765926000.0
  12. ^ "Conformance" . Unicode 16.0.0: Core Spec / Chapter 3 (6.0.0 ed.). Mountain View, California, US: The Unicode Consortium . 3.9 Unicode Encoding Forms. ISBN 978-1-936213-34-4 . Archived from the original on 2025-07-01 . Retrieved 2025-08-23 . Each encoding form maps the Unicode code points U+0000..U+D7FF and U+E000..U+10FFFF Wikipedia revision 1377190632, retrieved 2026-11-21 · 1755903600.0
  13. ^ "Encoding Standard" . encoding.spec.whatwg.org . Retrieved 2025-11-20 . Wikipedia revision 1377190632, retrieved 2026-11-21 · 1763593200.0
  14. ^ "Choose text encoding when you open and save files" . Microsoft Support . Retrieved 2021-11-01 . Wikipedia revision 1377190632, retrieved 2026-11-21 · 1635721200.0
  15. ^ "Exporting a UTF-8 .txt file from Word " . support.3playmedia.com . 14 March 2023. Wikipedia revision 1377190632, retrieved 2026-11-21 · 1795215600.0
  16. ^ Abhinav, Ankit; Xu, Jazlyn (April 13, 2020). "How to open UTF-8 CSV file in Excel without mis-conversion of characters in Japanese and Chinese language for both Mac and Windows?" . Microsoft Support Community . Retrieved 2021-11-01 . Wikipedia revision 1377190632, retrieved 2026-11-21 · 1635721200.0
  17. ^ "Save a CSV file as UTF-8" . RO CSVI . LibreOffice . Retrieved 2025-05-20 . Wikipedia revision 1377190632, retrieved 2026-11-21 · 1747695600.0
  18. ^ Galloway, Matt (October 2012). "Character encoding for iOS developers; or, UTF-8 what now?" . www.galloway.me.uk . Retrieved 2021-01-02 . ... in reality, you usually just assume UTF-8 since that is by far the most common encoding. Wikipedia revision 1377190632, retrieved 2026-11-21 · 1609542000.0
  19. ^ "Windows 10 Notepad is getting better UTF-8 encoding support" . BleepingComputer . Retrieved 2021-03-24 . Microsoft is now defaulting to saving new text files as UTF-8 without BOM, as shown below. Wikipedia revision 1377190632, retrieved 2026-11-21 · 1616540400.0
  20. ^ "Customize the Windows 11 Start menu" . docs.microsoft.com . Retrieved 2021-06-29 . Make sure your LayoutModification.json uses UTF-8 encoding. Wikipedia revision 1377190632, retrieved 2026-11-21 · 1624921200.0
  21. ^ "Set default for Encoding.default_external to UTF-8 on Windows" . Ruby Issue Tracking System (bugs.ruby-lang.org) . Ruby master. Feature #16604 . Retrieved 2022-08-01 . Wikipedia revision 1377190632, retrieved 2026-11-21 · 1659308400.0
  22. ^ "Feature #12650: Use UTF-8 encoding for ENV on Windows" . Ruby Issue Tracking System . Ruby master . Retrieved 2022-08-01 . Wikipedia revision 1377190632, retrieved 2026-11-21 · 1659308400.0
  23. ^ "New features in R 4.2.0" . R bloggers . The Jumping Rivers Blog. 2022-04-01 . Retrieved 2022-08-01 . Wikipedia revision 1377190632, retrieved 2026-11-21 · 1659308400.0
  24. ^ "What's new in Python 3.15" . Python documentation . Retrieved 2025-12-23 . Wikipedia revision 1377190632, retrieved 2026-11-21 · 1766444400.0
  25. ^ "Make UTF-8 mode default" . peps.python.org . PEP 686 . Retrieved 2023-07-26 . Wikipedia revision 1377190632, retrieved 2026-11-21 · 1690326000.0
  26. ^ "add a new UTF-8 mode" . peps.python.org . PEP 540 . Retrieved 2022-09-23 . Wikipedia revision 1377190632, retrieved 2026-11-21 · 1663887600.0
  27. ^ Support for UTF-8 as a portable source file encoding (PDF) . open-std.org (Report). 2022. p2295r6. Wikipedia revision 1377190632, retrieved 2026-11-21 · 1795215600.0
  28. ^ "Source code representation" . The Go Programming Language Specification. golang.org (Report) . Retrieved 2021-02-10 . Wikipedia revision 1377190632, retrieved 2026-11-21 · 1612911600.0
  29. ^ Tsai, Michael J. (21 March 2019). "UTF-8 string in Swift 5" (blog post) . Retrieved 2021-03-15 . Wikipedia revision 1377190632, retrieved 2026-11-21 · 1615762800.0
  30. ^ Mattip (2019-03-24). "PyPy v7.1 released; now uses utf-8 internally for unicode strings" . PyPy Status Blog . Retrieved 2025-11-20 . Wikipedia revision 1377190632, retrieved 2026-11-21 · 1763593200.0
  31. ^ "Common Object Structures" . Python documentation . Retrieved 2025-11-20 . Wikipedia revision 1377190632, retrieved 2026-11-21 · 1763593200.0
  32. ^ "Unicode objects and codecs" . Python documentation . Retrieved 2023-08-19 . UTF-8 representation is created on demand and cached in the Unicode object. Wikipedia revision 1377190632, retrieved 2026-11-21 · 1692399600.0
  33. ^ "PEP 623 – remove wstr from Unicode" . Python.org . Retrieved 2020-11-21 . Wikipedia revision 1377190632, retrieved 2026-11-21 · 1605913200.0
  34. ^ Wouters, Thomas (2023-07-11). "Python 3.12.0 beta 4 released" . Python Insider (blog post) . Retrieved 2023-07-26 . The deprecated wstr and wstr_length members of the C implementation of unicode objects were removed, per PEP 623. Wikipedia revision 1377190632, retrieved 2026-11-21 · 1690326000.0
  35. ^ "validate-charset (validate for compatible characters)" . docs.microsoft.com . Retrieved 2021-07-19 . Visual Studio uses UTF-8 as the internal character encoding during conversion between the source character set and the execution character set. Wikipedia revision 1377190632, retrieved 2026-11-21 · 1626649200.0
  36. ^ "Introducing UTF-8 support for SQL Server" . techcommunity.microsoft.com . 2019-07-02 . Retrieved 2021-08-24 . Wikipedia revision 1377190632, retrieved 2026-11-21 · 1629759600.0
  37. ^ "Character (Java SE 24 & JDK 24)" . Oracle Corporation . 2025 . Retrieved 2025-04-08 . Wikipedia revision 1377190632, retrieved 2026-11-21 · 1744066800.0
  38. ^ "File System Safe UCS — Transformation Format (FSS-UTF) - X/Open Preliminary Specification" (PDF) . unicode.org . Wikipedia revision 1377190632, retrieved 2026-11-21 · 1795215600.0
  39. ^ InputStreamReader and OutputStreamWriter Wikipedia revision 1377190632, retrieved 2026-11-21 · 1795215600.0
  40. ^ "Java Object Serialization Specification, chapter 6: Object Serialization Stream Protocol, section 2: Stream Elements" . Oracle Corporation . 2010 . Retrieved 2015-10-16 . Wikipedia revision 1377190632, retrieved 2026-11-21 · 1444950000.0
  41. ^ DataInput and DataOutput Wikipedia revision 1377190632, retrieved 2026-11-21 · 1795215600.0
  42. ^ "Java Native Interface Specification, chapter 3: JNI Types and Data Structures, section: Modified UTF-8 Strings" . Oracle Corporation . 2015 . Retrieved 2015-10-16 . Wikipedia revision 1377190632, retrieved 2026-11-21 · 1444950000.0
  43. ^ "ART and Dalvik" . Android Open Source Project . Archived from the original on 2013-04-26 . Retrieved 2013-04-09 . Wikipedia revision 1377190632, retrieved 2026-11-21 · 1365462000.0
  44. ^ "UTF-8 bit by bit" . Tcler's Wiki . 2001-02-28 . Retrieved 2022-09-03 . Wikipedia revision 1377190632, retrieved 2026-11-21 · 1662159600.0
  45. ^ "Why does modern Perl avoid UTF-8 by default?" . Stack Overflow . Retrieved 2026-09-08 . Wikipedia revision 1377190632, retrieved 2026-11-21 · 1788822000.0
  46. ^ "encoding" . Raku Documentation . Retrieved 2025-11-20 . Wikipedia revision 1377190632, retrieved 2026-11-21 · 1763593200.0
  47. ^ "Unicode" . Raku Documentation . Retrieved 2025-11-20 . Wikipedia revision 1377190632, retrieved 2026-11-21 · 1763593200.0
  48. ^ "PEP 540 – Add a new UTF-8 Mode" . Python Enhancement Proposals (PEPs) . Retrieved 2025-11-20 . Wikipedia revision 1377190632, retrieved 2026-11-21 · 1763593200.0
  49. ^ "NEP 55 – Add a UTF-8 variable-width string DType to NumPy" . NumPy Enhancement Proposals . Retrieved 2025-11-20 . Wikipedia revision 1377190632, retrieved 2026-11-21 · 1763593200.0
  50. ^ "RTFM optu8to16(3), optu8to16vis(3)" . MirBSD . Retrieved 2025-11-20 . Wikipedia revision 1377190632, retrieved 2026-11-21 · 1763593200.0
  51. ^ "Ext4 General Information" . Linux Kernel documentation . Retrieved 2025-11-20 . Wikipedia revision 1377190632, retrieved 2026-11-21 · 1763593200.0
  52. ^ "Frequently Asked Questions" . Apple File System Guide . Apple . Retrieved 2025-11-20 . Wikipedia revision 1377190632, retrieved 2026-11-21 · 1763593200.0
  53. ^ "Technical Note TN1150: HFS Plus Volume Format" . Apple . Retrieved 2025-11-20 . Wikipedia revision 1377190632, retrieved 2026-11-21 · 1763593200.0
  54. ^ "Encoding Standard § 4.2. Names and labels" . WHATWG . Retrieved 2018-04-29 . Wikipedia revision 1377190632, retrieved 2026-11-21 · 1524956400.0
  55. ^ Whistler, Kenneth (2001-06-12). "FSS-UTF, UTF-2, UTF-8, and UTF-16" . Unicode Mail List (Mailing list). Archived from the original on 2016-06-07 . Retrieved 2025-11-20 . Wikipedia revision 1377190632, retrieved 2026-11-21 · 1763593200.0
  56. ^ "BOM" . suikawiki (in Japanese). Archived from the original on 2009-01-17. Wikipedia revision 1377190632, retrieved 2026-11-21 · 1795215600.0
  57. ^ Davis, Mark . "Forms of Unicode" . IBM . Archived from the original on 2005-05-06 . Retrieved 2013-09-18 . Wikipedia revision 1377190632, retrieved 2026-11-21 · 1379458800.0
  58. ^ Liviu (2014-02-07). "UTF-8 codepage 65001 in Windows 7 - part I" . Retrieved 2018-01-30 . Previously under XP (and, unverified, but probably Vista, too) for loops simply did not work while codepage 65001 was active Wikipedia revision 1377190632, retrieved 2026-11-21 · 1517266800.0
  59. ^ "MySQL :: MySQL 8.0 Reference Manual :: 10.9.1 The utf8mb4 Character Set (4-Byte UTF-8 Unicode Encoding)" . MySQL 8.0 Reference Manual . Oracle Corporation . Retrieved 2023-03-14 . Wikipedia revision 1377190632, retrieved 2026-11-21 · 1678748400.0
  60. ^ "Database Globalization Support Guide" . docs.oracle.com . Retrieved 2023-03-16 . Wikipedia revision 1377190632, retrieved 2026-11-21 · 1678921200.0
source: e01 Encyclopedia · licence: CC BY-SA 4.0 · page · source revision

Cite this

"UTF-8". 1790569091. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1377190632

JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy

Save to pass ·