How to Use the UTF-16 Hex Encoder with Byte Order
- 1Choose Little-endian or Big-endian under Byte order.
- 2Paste the exact characters, including any newline you want in the encoded sample.
- 3Inspect the hex output in groups of four digits to see the individual UTF-16 code units.
- 4Copy the bytes and record the selected order so the decoder can read the same representation.
Input & Output Examples
The basic letter takes one code unit and the emoji takes a surrogate pair, written little-endian.
A😀41003dd800deBig-endian order puts the high byte first in each code unit, including the unit for the line break.
é
B00e9000a0042Practical Developer Workflows
- Compare little- and big-endian bytes for a simple character such as A.
- Prepare an example with a supplementary character that takes two code units.
- Check whether an interface expects raw code units or also requires a byte-order mark in its enclosing format.
Zero Server Uploads & Complete Privacy
Runs 100% in your browser; no data is uploaded to any server.
Let us know directly so our engineering team can fix it.