UTF Endianness & Raw Byte Serialization Inspector
Inspect, compare, and convert text across all 5 standard Unicode serialization formats: UTF-8, UTF-16LE, UTF-16BE, UTF-32LE, and UTF-32BE with optional Byte Order Mark (BOM) inclusion.
UTF-8 (Web Standard)
Backward-compatible with ASCII. Uses 1 byte for ASCII, 2 for Latin/Greek, 3 for CJK/Arabic, 4 for emojis.
UTF-16LE (Little-Endian)
Default in Windows NT kernel, JavaScript V8 string memory, and Java JVM.
UTF-16BE (Big-Endian)
Standard Network Byte Order for UTF-16 transmission in legacy protocols.
UTF-32LE (Fixed 4-Byte)
Direct 1-to-1 array indexing for every code point in memory without surrogate pairs.
UTF-32BE (Fixed 4-Byte)
Fixed 32-bit dwords serialized with most-significant byte first.
Character-by-Character Byte Breakdown (9 Glyphs)
Anatomical inspection of each code point with its individual UTF-8 byte stream and UTF-16 LE/BE encodings.
| Glyph | Codepoint | UTF-8 Hex | UTF-16LE | UTF-16BE | UTF-32LE |
|---|---|---|---|---|---|
| U | U+0055 | 55 | 55 00 | 00 55 | 55 00 00 00 |
| n | U+006E | 6E | 6E 00 | 00 6E | 6E 00 00 00 |
| i | U+0069 | 69 | 69 00 | 00 69 | 69 00 00 00 |
| c | U+0063 | 63 | 63 00 | 00 63 | 63 00 00 00 |
| o | U+006F | 6F | 6F 00 | 00 6F | 6F 00 00 00 |
| d | U+0064 | 64 | 64 00 | 00 64 | 64 00 00 00 |
| e | U+0065 | 65 | 65 00 | 00 65 | 65 00 00 00 |
| U+0020 | 20 | 20 00 | 00 20 | 20 00 00 00 | |
| 🚀 | U+1F680 | F0 9F 9A 80 | 3D D8 80 DE | D8 3D DE 80 | 80 F6 01 00 |
The Engineering Science of UTF Serialization & CPU Endianness
In computer architecture, endianness refers to the order in which bytes of a multi-byte word are stored in computer memory. The terms originate from Jonathan Swift’s Gulliver’s Travels, where rival factions fought over whether soft-boiled eggs should be cracked from the larger end (Big-Endian) or smaller end (Little-Endian).
When serializing 16-bit (UTF-16) or 32-bit (UTF-32) Unicode integers, the byte order matters critically:
UTF-8, by contrast, encodes characters as an 8-bit stream of bytes. Because every encoding unit is already a single byte, UTF-8 is completely immune to endianness issues and does not require a BOM header.
Byte Order Mark (BOM U+FEFF) Signatures Matrix
Frequently Asked Questions (FAQs)
Why does Windows Notepad add a UTF-8 BOM by default?+
Legacy versions of Windows Notepad used the EF BB BF byte signature to distinguish UTF-8 text from Windows-1252 ANSI. Modern standards recommend omitting BOM in UTF-8 to prevent shell script execution failures.
How does UTF-32 provide O(1) constant-time character indexing?+
Because every single Unicode code point in UTF-32 consumes exactly 4 bytes (32 bits), accessing character at index N is a simple pointer calculation: buffer + (N * 4).
Can I copy raw hex bytes directly into C/C++ or Rust code?+
Yes! Click the "Copy Hex Bytes" button next to any encoding to copy formatted hex sequences for uint8_t arrays or buffer initialization.