Free Online Utility • Unicode Studio • Grapheme-Aware Engine

Convert Unicode to HTML

Escape Unicode characters into HTML hexadecimal (&#x...;), decimal (&#...;), or named entities with non-ASCII-only or full-string modes.

Reference & Unicode Spec Unicode 16.0
Hex: &#x{HEX}; | Decimal: &#{DEC}; | Named: © € — < > &
© (U+00A9)© / ©
🚀 (U+1F680)🚀 / 🚀
& < > "XSS-safe HTML escaping
HTML ENTITY OUTPUT
Encoded HTML Entities

        
100% client-side Unicode Engine Instant

Session Calculation Log

No entries recorded in this session yet.

How Convert Unicode to HTML Works

Convert Unicode to HTML transforms international text, symbols, and emoji into valid HTML5 hexadecimal, decimal, or named character references while optionally escaping HTML syntax characters.

The Unicode Standard assigns unique scalar code points from U+0000 through U+10FFFF across 17 planes, encompassing over 150,000 characters spanning world scripts, mathematical operators, technical symbols, combining diacritics, and multi-codepoint emoji sequences. Every operation in this utility runs completely client-side inside your browser using native code-point and grapheme-cluster algorithms so surrogate pairs, ZWJ emoji, and combining marks stay intact with zero server latency.

HTML5 Character Reference Encoding

Hex:     &#x + cp.toString(16).toUpperCase() + ";"
Decimal: &# + cp + ";"
Named:   &copy;, &euro;, &mdash;, &lt;, &gt;, &amp; (+ numeric fallback)

Encoding non-ASCII Unicode as numeric character references guarantees identical rendering even inside legacy ASCII-only HTML email templates or XML documents.

Worked Reference Examples

InputOutputTechnical Note
Café © 🚀Caf&#xE9; &#xA9; &#x1F680;Hex entities
<script>&lt;script&gt;XSS-safe named
€100&euro;100Named entity

Practical Developer & Internationalization Workflows

HTML Email & Legacy Templates

Embed emojis and accented copy safely without charset mismatches.

XML & RSS Feed Escaping

Escape non-ASCII and reserved XML characters cleanly.

Compatibility, Edge Cases & Best Practices

Keep Scope set to Non-ASCII + HTML Specials when pasting untrusted text into HTML markup.

Copy verified outputs directly to your clipboard or export them as UTF-8 text files ready for web apps, REST APIs, database migrations, typography tests, and localization pipelines.

Frequently Asked Questions

Should I use hex (&#x...;) or decimal (&#...;) HTML entities?
Both are universally supported in HTML5 and XML; hex matches official U+XXXX code points directly.
Does this handle 4-byte emoji like 🚀?
Yes — HTML5 numeric entities encode the full scalar code point (`&#x1F680;`) rather than broken surrogate pairs.
Can I escape only non-ASCII characters while leaving HTML tags untouched?
Yes — select Non-ASCII Characters Only in Scope.