Unicode Text Converter
Data & DigitalConvert text to Unicode escape sequences, U+ code points, HTML entities, and UTF-8 hex bytes — or decode Unicode escapes back into readable text, instantly.
What is a Unicode Text?
The Unicode Text Converter turns readable text into its underlying Unicode representations — escape sequences, code points, HTML entities, and raw UTF-8 bytes — and decodes those representations back into text. Every character you type, from a plain letter to an emoji, has a numeric identity in the Unicode Standard; this tool exposes that identity in the formats developers, writers, and localisation teams actually need to paste into code, markup, or documentation.
It's built around a single text field that updates all five output formats simultaneously, so you never need to guess which encoding format matches your use case — copy whichever one fits. If you're working with numbers rather than text, the Number Base Converter handles binary, decimal, octal, and hexadecimal conversions using the same instant-update approach.
How to use this Unicode Text calculator
- Type or paste your text into the Input Text box.
- Watch all five output cards — Unicode Escape, U+ Notation, HTML Entity, Decimal Code Points, and UTF-8 Hex Bytes — update instantly.
- Click the Copy button on any output card to copy that specific format to your clipboard.
- To decode instead, paste a
\uXXXX,U+XXXX, or&#x...;escaped string into the same input box. - Check the Decoded Text card that appears above the outputs for the readable result.
- Use Clear to reset the input and start a new conversion.
Formula & Methodology
Text is processed by Unicode code point (usingArray.from(), which correctly iterates full code points rather than raw UTF-16 code units) so multi-byte characters like emoji are represented accurately rather than split incorrectly: - Unicode Escape: each code point ≤ U+FFFF becomes\u+ its 4-digit hex value; code points above U+FFFF are encoded as a valid UTF-16 surrogate pair (two\uXXXXescapes), matching how JavaScript string literals actually store them. - U+ Notation: each code point becomesU+followed by its hex value, uppercase, minimum 4 digits. - HTML Entity: each code point becomes&#x+ hex value +;. - Decimal Code Points: each code point's decimal (base-10) value, comma-separated. - UTF-8 Hex Bytes: the text is encoded viaTextEncoderinto raw UTF-8 bytes, each shown as a 2-digit hex value. Worked example — converting the single character "€" (Euro sign, U+20AC): - Unicode Escape:\u20ac- U+ Notation:U+20AC- HTML Entity:€- Decimal Code Points:8364- UTF-8 Hex Bytes:E2 82 AC(three bytes, since € falls outside the single-byte ASCII range)
Frequently Asked Questions