Convert Unicode to HTML

The Convert Unicode to HTML tool transforms your text into Unicode character references like &#xXXXX; or &#DDDD;, making it safe for use in HTML code and templates. This is ideal when inserting non-ASCII or special characters into HTML documents or JavaScript strings.

Paste your input above or import a file below.
No file chosen
Supported file types: .txt, .log, .csv
Total characters: 0
Options
Use \\u{XXXX}

How to Use:

  1. Paste your text in the input box
  2. Toggle Use Hex (&#x) for hex (😀) or uncheck for decimal (😀)
  3. Watch the output update live with flash animation
  4. Copy, export, or clear your result as needed
  5. Import text from a .txt, .log, or .csv file

Tool Options:

  • Use Hex (&#x): Outputs &#xXXXX; style code points (checked by default)
  • Decimal Mode: Outputs &#DDDD; style numeric references

Example:

Input:

© α β γ

Output (hex):

©αβγ

Output (decimal):

©αβγ

Common Use Cases:

Use this tool to safely encode special characters into HTML, JavaScript strings, JSON data, or template engines. It’s ideal for CMS systems, static site generation, or sanitizing web content with extended characters.

Useful Tools & Suggestions:

When you’re converting to HTML, Add Quotes to Text can help wrap each entity for cleaner markup. And if you’re testing how symbols appear, Add Symbols Around Words lets you style or isolate them before conversion.