HTML Emojis

HTML Emojis are colorful symbols or icons that express emotions, objects, or ideas such as 😊, βš™οΈ, ❀️, or 🌍.

They are based on Unicode characters, which have a unique numeric code that browsers can render into a visual symbol.

Each emoji has a Unicode code point a unique number assigned by the Unicode Consortium.
You can display an emoji using this Unicode in HTML.

Syntax:

&#xCode;

or

&#DecimalCode;

Both versions start with &#, followed by either:

  • Hexadecimal value (x before the code)
  • Decimal value, and both end with ;.

Example of Displaying Emojis in HTML

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta name="description" content="Learn how to add and use emojis in HTML using Unicode codes and HTML entities.">
  <meta name="keywords" content="HTML emojis, HTML Unicode emojis, emoji codes, emoji tutorial, add emoji in HTML">
  <meta name="author" content="Dharmesh Kundariya">
  <title>HTML Emojis Tutorial</title>
</head>

<body>
  <h1>HTML Emojis Example</h1>
  <p>Smiling Face: &#128512;</p>
  <p>Heart: &#10084;&#65039;</p>
  <p>Rocket: &#128640;</p>
  <p>Light Bulb: &#128161;</p>
  <p>Fire: &#128293;</p>
</body>
</html>

Important: Always Use UTF-8 Encoding

If your webpage is not encoded as UTF-8, emojis might display as ❓ or ☐.

Add this line inside your <head>:

<meta charset="UTF-8">

This tells the browser to render emojis and international symbols correctly.

Example – Using Multiple Emojis in a Sentence

<p>I love web design! &#128640; &#128187; &#128150;</p>

Emoji Categories and Their Codes

1. Smileys and Emotions

EmojiHTML CodeDescription
πŸ˜€&#128512;Grinning face
😁&#128513;Beaming face with smiling eyes
πŸ˜‚&#128514;Face with tears of joy
😍&#128525;Smiling face with heart eyes
😎&#128526;Face with sunglasses
😒&#128546;Crying face
😑&#128545;Angry face
πŸ€”&#129300;Thinking face

2. People and Hands

EmojiHTML CodeDescription
πŸ‘‹&#128075;Waving hand
πŸ‘&#128077;Thumbs up
πŸ‘Ž&#128078;Thumbs down
πŸ™Œ&#128588;Raising hands
πŸ‘&#128079;Clapping hands
πŸ§‘β€πŸ’»&#129489;&#8205;&#128187;Developer
🀝&#129309;Handshake

3. Objects and Tools

EmojiHTML CodeDescription
πŸ’»&#128187;Laptop
πŸ”§&#128295;Wrench
βš™οΈ&#9881;&#65039;Gear
πŸ”‹&#128267;Battery
πŸ’‘&#128161;Light bulb
πŸ”₯&#128293;Fire

4. Nature and Food

EmojiHTML CodeDescription
β˜€οΈ&#9728;&#65039;Sun
🌧️&#127783;Rain cloud
🌿&#127807;Leaf
🍎&#127822;Red apple
🌾&#127806;Crop
πŸ•&#127829;Pizza

5. Travel and Places

EmojiHTML CodeDescription
✈️&#9992;&#65039;Airplane
πŸš—&#128663;Car
🏠&#127968;House
🌍&#127757;Globe showing Europe–Africa
β›Ί&#9978;Tent
πŸš€&#128640;Rocket

6. Symbols and Shapes

EmojiHTML CodeDescription
❀️&#10084;&#65039;Red heart
πŸ’”&#128148;Broken heart
πŸ’«&#128171;Dizzy symbol
πŸ’―&#128175;Hundred points
πŸ””&#128276;Bell
⚑&#9889;Lightning bolt
πŸ”˜&#128280;Circle button

Styling Emojis with CSS

You can style emojis just like normal text.

Example:

<p style="font-size: 40px;">&#128640;</p>
<p style="color: orange; font-size: 35px;">&#128293;</p>

HTML Emojis make your website expressive, modern, and user-friendly. They’re powered by Unicode, which means they appear beautifully across all browsers and devices.

Whether you’re designing tutorials, blog posts, or UI demos understanding emoji codes, syntax, and UTF-8 encoding ensures your content always looks perfect.

Leave a Comment