Encryption & Ciphers100% Client-Side

Encode Text as UTF-16 Hex Bytes

Paste text to see the bytes of its UTF-16 representation. Select whether each two-byte code unit should put its low byte or its high byte first. The result is contiguous hexadecimal and does not add a byte-order mark. This is useful when preparing a byte fixture or checking how a non-ASCII character appears in an interchange format with a specified byte order.

Configuration Options
Input
3 chars•1 lines
Output

Reverse tool

UTF-16 Hex Decoder with Byte Order

Decode contiguous or whitespace-separated UTF-16 hexadecimal bytes. Choose little-endian or big-endian order and restore text including surrogate pairs.

Open UTF-16 Hex Decoder with Byte Order
Example input
41003dd800de
Example output
A😀

How to Use the UTF-16 Hex Encoder with Byte Order

  1. 1Choose Little-endian or Big-endian under Byte order.
  2. 2Paste the exact characters, including any newline you want in the encoded sample.
  3. 3Inspect the hex output in groups of four digits to see the individual UTF-16 code units.
  4. 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.

Input Sample
A😀
Expected Output
41003dd800de

Big-endian order puts the high byte first in each code unit, including the unit for the line break.

Input Sample
é
B
Expected Output
00e9000a0042

Practical 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.

Notice a bug, calculation error, or outdated info?

Let us know directly so our engineering team can fix it.

Frequently Asked Questions

The two bytes inside each code unit swap positions. For example, A gives 4100 in little-endian and 0041 in big-endian. The order of characters and of their code units stays the same.

Explore Other Tools

12 suggested tools

View all tools