Emoji Codes for HTML, Unicode & CSS (Copy & Paste)
Full list of emoji codes for developers. Copy HTML entities, Unicode values, and CSS emoji references. Learn how to add emojis in HTML & style them with CSS.
Emojis aren't just for chats and social mediaβthey're a powerful way to bring personality and clarity into websites, apps, and code projects. Developers use emojis to:
- Add visual context to buttons, menus, and links (example: π for cart, π§ for email)
- Improve UX in dashboards, checklists, and alerts
- Create more engaging interfaces (π₯ trending, β success, β error)
- Add branding and fun touches to static HTML pages
But many developers struggle with how to properly include emojis in code: should you paste them directly, use Unicode, or HTML entities?
This guide provides a full list of emoji codes (with Unicode, HTML entity, and CSS reference) plus examples to copy & paste directly into your projects.
π‘ Understanding Emoji Codes
Unicode
Each emoji is defined in the Unicode standard with a unique code (like U+1F60D for π).
HTML Entities
In HTML, emojis can also be represented by numeric codes:
- Decimal (e.g., π)
- Hexadecimal (e.g., π)
Direct Copy
You can also directly copy-paste emojis into HTML, as long as your file encoding is set to UTF-8.
CSS
Emojis can be added using CSS content with Unicode:
.button::before {
content: "\1F680"; /* π */
}π Each method works, but developers often prefer Unicode/HTML entities for compatibility.
π Emoji Code Table
| Emoji | Name | Unicode | HTML (Dec) | HTML (Hex) | CSS | Copy |
|---|---|---|---|---|---|---|
| π | Grinning Face | U+1F600 | 😀 | 😀 | \1F600 | |
| π | Heart Eyes | U+1F60D | 😍 | 😍 | \1F60D | |
| π | Tears of Joy | U+1F602 | 😂 | 😂 | \1F602 | |
| π₯ | Fire | U+1F525 | 🔥 | 🔥 | \1F525 | |
| β€οΈ | Red Heart | U+2764 | ❤ | ❤ | \2764 | |
| π | Rocket | U+1F680 | 🚀 | 🚀 | \1F680 | |
| πΆ | Music Notes | U+1F3B6 | 🎶 | 🎶 | \1F3B6 | |
| β | Check Mark | U+2705 | ✅ | ✅ | \2705 | |
| β | Cross Mark | U+274C | ❌ | ❌ | \274C | |
| β οΈ | Warning | U+26A0 | ⚠ | ⚠ | \26A0 | |
| π | Shopping Cart | U+1F6D2 | 🛒 | 🛒 | \1F6D2 | |
| π§ | U+1F4E7 | 📧 | 📧 | \1F4E7 | ||
| π | Party Popper | U+1F389 | 🎉 | 🎉 | \1F389 | |
| π‘ | Light Bulb | U+1F4A1 | 💡 | 💡 | \1F4A1 | |
| β | Star | U+2B50 | ⭐ | ⭐ | \2B50 | |
| π | House | U+1F3E0 | 🏠 | 🏠 | \1F3E0 | |
| βΉοΈ | Information | U+2139 | ℹ | ℹ | \2139 | |
| π | Bell | U+1F514 | 🔔 | 🔔 | \1F514 | |
| π± | Mobile Phone | U+1F4F1 | 📱 | 📱 | \1F4F1 | |
| π» | Laptop | U+1F4BB | 💻 | 💻 | \1F4BB | |
| π¨ | Artist Palette | U+1F3A8 | 🎨 | 🎨 | \1F3A8 | |
| π | Bar Chart | U+1F4CA | 📊 | 📊 | \1F4CA | |
| π | Lock | U+1F512 | 🔒 | 🔒 | \1F512 | |
| π | Unlock | U+1F513 | 🔓 | 🔓 | \1F513 | |
| π | Thumbs Up | U+1F44D | 👍 | 👍 | \1F44D | |
| π | Thumbs Down | U+1F44E | 👎 | 👎 | \1F44E | |
| π° | Money Bag | U+1F4B0 | 💰 | 💰 | \1F4B0 | |
| π― | Direct Hit | U+1F3AF | 🎯 | 🎯 | \1F3AF | |
| π | Chart Increasing | U+1F4C8 | 📈 | 📈 | \1F4C8 | |
| π | Chart Decreasing | U+1F4C9 | 📉 | 📉 | \1F4C9 |
π» How to Add Emojis in HTML
Method 1: Direct Copy
<p>Welcome to my site ππ₯π</p>Make sure <meta charset="UTF-8"> is in your <head>:
<meta charset="UTF-8">Method 2: Using HTML Entities
<p>I β€οΈ coding! 🚀</p>Method 3: Using Unicode Escape Sequences
<p>Unicode Example: \1F3B6 πΆ</p>β Best practice: Use direct copy for speed, but HTML entities when compatibility is critical.
π¨ How to Style Emojis with CSS
Emojis are text, so you can style them with CSS like normal characters.
Changing Size
.emoji {
font-size: 2rem;
}Changing Color (limited to monochrome emojis)
.emoji {
color: red; /* works for β₯, β
, β, etc. */
}Adding Emojis with ::before or ::after
button::before {
content: "π ";
}Animated Emojis (CSS spin example)
.spin {
display: inline-block;
animation: spin 2s linear infinite;
}
@keyframes spin {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}π Code Examples Developers Can Copy
Example 1: Emoji Checklist
<ul>
<li>β
Task completed</li>
<li>β Task pending</li>
<li>β οΈ Warning needed</li>
</ul>Example 2: Emoji Buttons
<button>π Add to Cart</button>
<button>π§ Contact Us</button>Example 3: Emoji in CSS Navigation
nav a.home::before {
content: "π ";
}
nav a.about::before {
content: "βΉοΈ ";
}Example 4: Emoji in Notifications
<p>π₯ Hot Deal! Limited stock available.</p>
<p>π Congratulations! You earned a bonus.</p>Frequently Asked Questions
Q1: Do all browsers support emojis in HTML?
Yes, all modern browsers support Unicode emojis. Older versions may not display new emojis correctly.
Q2: What's the difference between HTML entities and Unicode?
Unicode is the standard code point, while HTML entities are representations that ensure compatibility in HTML documents.
Q3: Can I style all emojis with CSS?
Not fullyβcolored emojis (like π or π) follow OS/font rendering. Monochrome ones (β₯, β, β) respond to CSS color.
Q4: Do emojis slow down websites?
Noβemojis are lightweight text characters, not images.
Adding emojis to your website or code project is simple, fun, and user-friendly. Whether you paste them directly, use Unicode, or HTML entities, emojis enhance UX and make your content more engaging.
From hearts β€οΈ to rockets π to music πΆ, emojis let you express ideas instantly. Developers use them in buttons, lists, dashboards, and notifications.
π Bookmark this page, use our copy-paste table, and try out the example code snippets in your own projects!