HTML entities to UTF-16 conversion calculator

→

How HTML entities to UTF-16 conversion works

How HTML entities to UTF-16 conversion works

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

HTML entities: HTML entities write characters such as <, > and & as named or numeric codes, so that they show as text instead of being read as markup.

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: Hi &eacute; in HTML entities is 0048 0069 0020 00E9 in UTF-16.

UTF-16 to HTML entities (Swap units)