Unicode Encoder

Convert between Unicode, UTF-8, and HTML entities

Input Text
Unicode Escape (\uXXXX)
Output will appear here…
HTML Entity (Decimal) (&#NNN;)
Output will appear here…
HTML Entity (Hex) (&#xHHHH;)
Output will appear here…
UTF-8 Bytes (XX XX XX)
Output will appear here…
UTF-16 Hex (XXXX XXXX)
Output will appear here…

About Unicode Encoder

Unicode encoder/decoder converts between text, \uXXXX escapes, UTF-8 bytes, HTML entities. Handles i18n, JSON escapes, emoji, cross-system compatibility. Fully local.

How to Use

  1. Paste text or Unicode escapes
  2. Pick text→Unicode or inverse
  3. Supports \uXXXX/UTF-8 bytes/HTML entity formats
  4. Copy result

Frequently Asked Questions

Unicode vs UTF-8 the same?
No. Unicode is a character set (assigns code points). UTF-8 is an encoding (turns code points to bytes).
What are surrogate pairs?
Characters beyond U+FFFF (emoji) need two 16-bit code units. That is why emoji.length = 2.
Why do emoji show as ??? or boxes?
OS/font does not support that emoji Unicode version. Upgrade OS fonts or use image fallbacks.