Text to Unicode

Parse and convert text to unicode and vice-versa

About Text to Unicode

Converts text into HTML numeric character references (Hi for Hi) and back. This is one way to write any character in an HTML or XML document using only ASCII.

When you would use it

How to use it

  1. To encode, type text in the first field and read the &#...; sequence below it.
  2. To decode, paste a sequence of &#...; references in the second field and read the text.
  3. Copy the result.

Things worth knowing

Frequently asked questions

Is this the same as the Unicode code point U+XXXX?
Related but not identical: the number after &# is the decimal code point for characters up to U+FFFF. For emoji and other supplementary characters this tool emits two surrogate numbers instead of the single code point.
When should I use references instead of typing the character?
Only when the file cannot be saved as UTF-8 or passes through a system that corrupts non-ASCII text. In a UTF-8 document, typing the character directly is simpler and more readable.

All the tools