Blog
Wild & Free Tools

Convert Unicode and Emoji to HTML Entities

Last updated: January 2026 5 min read
Quick Answer

Table of Contents

  1. When to Encode Emoji as Entities
  2. How to Convert
  3. Common Emoji Entity Codes
  4. Direct Emoji vs Entity
  5. Frequently Asked Questions

Emoji are Unicode characters — they have code points just like letters. The smiley face 😊 is U+1F60A, and you can represent it as the HTML numeric entity 😊. Most of the time you do not need to convert — if your page is UTF-8 encoded, you can paste emoji directly. But there are specific contexts where entity encoding emoji is necessary or useful.

When You Would Encode Emoji as HTML Entities

Most situations do not require encoding emoji. If your HTML file is saved as UTF-8 and declares <meta charset="UTF-8">, you can paste emoji directly and browsers render them correctly.

The cases where entity encoding emoji makes sense:

How to Convert Emoji or Unicode to HTML Entity

The HTML entity encoder handles Unicode characters including emoji:

  1. Paste your text — include the emoji or Unicode symbol you want to convert. Example: Great work 🎉
  2. Click "Encode."
  3. See the output: Great work &#127881;

The encoder converts emoji to their decimal numeric entity form (&#NNNNNN;). This is the most widely supported format across browsers and email clients.

Non-ASCII characters that have named entities (like © → &copy;, ™ → &trade;) get their named entity. Characters outside the named entity set get their numeric form.

Sell Custom Apparel — We Handle Printing & Free Shipping

Common Emoji and Their HTML Entity Codes

EmojiEntity CodeDescription
😊&#128522;Smiling face with eyes
🎉&#127881;Party popper
&#9989;Check mark button
&#10060;Cross mark
&#9889;Lightning bolt
©&copy; or &#169;Copyright symbol
&trade; or &#8482;Trademark

Should You Use Direct Emoji or Entity Codes?

For modern UTF-8 HTML pages: use direct emoji. Pasting 🎉 directly into your HTML is cleaner, more readable, and works correctly in all modern browsers. There is no practical reason to encode emoji as entities in a properly declared UTF-8 document.

Use entity encoding when:

When in doubt: use UTF-8, declare it in your meta charset, and paste emoji directly. Only fall back to entity encoding when you have a specific reason to.

Convert Emoji and Symbols to HTML Entities

Paste any text with unicode or emoji. Get entity codes instantly. Free, no signup.

Open Free HTML Entity Tool

Frequently Asked Questions

How do I get the HTML entity code for an emoji?

Paste the emoji into the HTML entity encoder and click Encode. The output shows the numeric entity (&#NNNNN;) for the emoji.

Do I need to encode emoji for HTML pages?

No, if your page is UTF-8 encoded. Declare meta charset=UTF-8 and paste emoji directly. Entity encoding emoji is only necessary for specific edge cases like legacy systems or non-UTF-8 XML.

What is the HTML code for a smiley face?

The 😊 emoji is &#128522; in decimal numeric entity form, or &#x1F60A; in hex. On UTF-8 HTML pages, you can paste the emoji directly instead.

Can I convert Unicode symbols (not just emoji) to HTML entities?

Yes. The encoder handles any Unicode character — mathematical symbols, arrows, currency symbols, accented characters, and emoji all convert to their numeric entity equivalents.

Ryan Callahan
Ryan Callahan Lead Software Engineer

Ryan architected the client-side processing engine that powers every tool on WildandFree — ensuring your files never leave your browser.

More articles by Ryan →
Launch Your Own Clothing Brand — No Inventory, No Risk