UTF-8 to UTF-16 conversion calculator

→

How UTF-8 to UTF-16 conversion works

How UTF-8 to UTF-16 conversion works

The input is first decoded from UTF-8 to plain text, and the text is then encoded as UTF-16.

UTF-8: UTF-8 stores each character as one to four bytes, shown here in hexadecimal, and is the most common text encoding on the web.

UTF-16: UTF-16 stores each character as one or two 16-bit code units, shown here in hexadecimal (big-endian), with surrogate pairs for characters above U+FFFF.

Example: 48 69 20 C3 A9 in UTF-8 is 0048 0069 0020 00E9 in UTF-16.

UTF-16 to UTF-8 (Swap units)