Free Developer Tool
UTF-16 Inspector
Inspect text as UTF-16 code units and examine how Unicode characters are represented in encoded data.
Text
UTF-16 Code Units
UTF-16 Inspection
UTF-16 code units22
Unicode code points20
UTF-16 size44 B
BMP characters18
Supplementary characters2
Surrogate pairs2 (10.0%)
Standalone surrogates0
Unicode Code Points
| Character | Code Point | Decimal | UTF-16 Units | Type |
|---|---|---|---|---|
| H | U+0048 | 72 | 0x0048 | Latin letter |
| e | U+0065 | 101 | 0x0065 | Latin letter |
| l | U+006C | 108 | 0x006C | Latin letter |
| l | U+006C | 108 | 0x006C | Latin letter |
| o | U+006F | 111 | 0x006F | Latin letter |
| , | U+002C | 44 | 0x002C | Unicode character |
| ␠ | U+0020 | 32 | 0x0020 | Space |
| U | U+0055 | 85 | 0x0055 | Latin letter |
| T | U+0054 | 84 | 0x0054 | Latin letter |
| F | U+0046 | 70 | 0x0046 | Latin letter |
| - | U+002D | 45 | 0x002D | Unicode character |
| 1 | U+0031 | 49 | 0x0031 | Digit |
| 6 | U+0036 | 54 | 0x0036 | Digit |
| ! | U+0021 | 33 | 0x0021 | Unicode character |
| ␠ | U+0020 | 32 | 0x0020 | Space |
| 😀 | U+1F600 | 128512 | 0xD83D 0xDE00 | Emoji / symbol |
| ␠ | U+0020 | 32 | 0x0020 | Space |
| € | U+20AC | 8364 | 0x20AC | Unicode character |
| ␠ | U+0020 | 32 | 0x0020 | Space |
| 𝄞 | U+1D11E | 119070 | 0xD834 0xDD1E | Unicode character |
UTF-16 Notes
• UTF-16 stores data as 16-bit code units.
• Characters in the Basic Multilingual Plane normally use one code unit.
• Characters above U+FFFF use two UTF-16 code units called a surrogate pair.
• JavaScript
string.length counts UTF-16 code units, not Unicode code points.• For example,
😀 is one Unicode code point but two UTF-16 code units.• Each UTF-16 code unit occupies 2 bytes.
• The inspection is performed entirely in the browser.
What is UTF-16 Inspector?
Inspect UTF-16 representations of text by examining Unicode characters, code points and the hexadecimal code units used to represent them.
How to use
- Enter or paste text.
- Inspect the Unicode characters.
- Review the UTF-16 code units.
- Copy the inspection results.
Features
- UTF-16 code unit inspection
- Unicode code points
- Hexadecimal representation
- Character analysis
Common Use Cases
- Encoding debugging
- Unicode troubleshooting
- JavaScript string analysis
- Character encoding education
Example
Input
A
Output
Character: A Code point: U+0041 UTF-16 code unit: 0041
FAQ
Does it show UTF-16 code units?
Yes.
Can it inspect Unicode characters?
Yes.
Is processing local?
Yes.
Missing a feature?
If this tool doesn't cover your use case or is missing functionality, please let me know through the Contact page.
New improvements and features are added based on user feedback.