HTML Emojis



Emojis are characters from the UTF-8 (Unicode) character set.

Emojis are digital icons or characters used to express specific feelings or emotions.

To let the browser understand that you are displaying a character, you must start the entity number with &# and end it with ; (semicolon). 


Syntax : 

<meta charset="UTF-8">

UTF-8 (Unicode) is the default character set of HTML and covers all the characters and symbols.

UTF-8 Characters

Many UTF-8 (Unicode) characters cannot be typed on a keyboard, but they can always be displayed using numbers (called entity numbers).

  • A is 65
  • B is 66
  • C is 67

Example :

<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8" />
    <title>HTML UTF-8 Characters</title>
  </head>
  <body>
    <p>I will display A B C</p>
    <p>I will display &#65; &#66; &#67;</p>
  </body>
</html>

HTML Emoji Characters

Emojis can also be displayed using the UTF-8 charset.

  • 😍 is 128525
  • 😄 is 128516
  • 💗 is 128151

Example :

<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8" />
    <title>HTML Emojis</title>
  </head>
  <body>
    <h1>This is My First Emoji</h1>
    <p>&#128512;</p>
  </body>
</html>

Output :


Following is a list of some HTML Emoji Symbols

Char Dec Hex Name
😀 128512 1F600 Grinning Face
😁 128513 1F601 Grinning Face With Smiling Eyes
😂 128514 1F602 Face With Tears Of Joy
😃 128515 1F603 Smiling Face With Open Mouth
😄 128516 1F604 Smiling Face With Open Mouth And Smiling Eyes
😅 128517 1F605 Smiling Face With Open Mouth And Cold Sweat
😆 128518 1F606 Smiling Face With Open Mouth And Tightly-Closed Eyes
😇 128519 1F607 Smiling Face with Halo
😈 128520 1F608 Smiling Face With Horns
😉 128521 1F609 Winking Face
😊 128522 1F60A Smiling Face With Smiling Eyes
😋 128523 1F60B Face Savouring Delicious Food
😌 128524 1F60C Relieved Face
😍 128525 1F60D Smiling Face With Heart-Shaped Eyes
😎 128526 1F60E Smiling Face With Sunglasses
😏 128527 1F60F Smirking Face
😐 128528 1F610 Neutral Face
😑 128529 1F611 Expressionless Face
😒 128530 1F612 Unamused Face
😓 128531 1F613 Face With Cold Sweat
😔 128532 1F614 Pensive Face
😕 128533 1F615 Confused Face
😖 128534 1F616 Confounded Face
😗 128535 1F617 Kissing Face
😚 128538 1F61A Kissing Face With Closed Eyes
😛 128539 1F61B Face With Stuck-Out Tongue
😜 128540 1F61C Face With Stuck-Out Tongue And Winking Eye
😝 128541 1F61D Face With Stuck-Out Tongue And Tightly-Closed Eyes