Using Emojis in HTML
Emojis are characters from the UTF-8 character set: 😄 😍 💗
What are Emojis?
Emojis look like images, or icons, but they are not.
They are letters [characters] from the UTF-8 [Unicode] character set.
UTF-8 covers almost all of the characters and symbols in the world.
The HTML charset Attribute
To display an HTML page correctly, a web browser must know the character set used in the page.
This is specified in the tag:
If not specified, UTF-8 is the default character set in HTML.
UTF-8 Characters
Many UTF-8 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
I will display A B C
I will display A B C
Try it Yourself »
Example Explained
The element defines the character set.
The characters A, B, and C, are displayed by the numbers 65, 66, and 67.
To let the browser understand that you are displaying a character, you must start the entity number with and end it with ; [semicolon].
Emoji Characters
Emojis are also characters from the UTF-8 alphabet:
- 😄 is 128516
- 😍 is 128525
- 💗 is 128151
Example
My First Emoji
😀
Try it Yourself »
Since Emojis are characters, they can be copied, displayed, and sized just like any other character in HTML.
Example
Sized Emojis
😀
😄 😍 💗
Try it Yourself »
Some Emoji Symbols in UTF-8
For a full list, please go to our HTML Emoji Reference.
Smiley Emojis For Web.
If you want any of these emojis displayed in HTML, you can use the decimal [dec] or hexadecimal [hex] reference found in the table below.
Example
😜
I will display 😜
I will display 😜
Will display as:
😜
I will display 😜
I will display 😜
Try it Yourself
😀 | 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 | |
😘 | 128536 | 1F618 | FACE THROWING A KISS | |
😙 | 128537 | 1F619 | KISSING FACE WITH SMILING EYES | |
😚 | 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 | |
😞 | 128542 | 1F61E | DISAPPOINTED FACE | |
😟 | 128543 | 1F61F | WORRIED FACE | |
😠 | 128544 | 1F620 | ANGRY FACE | |
😡 | 128545 | 1F621 | POUTING FACE | |
😢 | 128546 | 1F622 | CRYING FACE | |
😣 | 128547 | 1F623 | PERSEVERING FACE | |
😤 | 128548 | 1F624 | FACE WITH LOOK OF TRIUMPH | |
😥 | 128549 | 1F625 | DISAPPOINTED BUT RELIEVED FACE | |
😦 | 128550 | 1F626 | FROWNING FACE WITH OPEN MOUTH | |
😧 | 128551 | 1F627 | ANGUISHED FACE | |
😨 | 128552 | 1F628 | FEARFUL FACE | |
😩 | 128553 | 1F629 | WEARY FACE | |
😪 | 128554 | 1F62A | SLEEPY FACE | |
😫 | 128555 | 1F62B | TIRED FACE | |
😬 | 128556 | 1F62C | GRIMACING FACE | |
😭 | 128557 | 1F62D | LOUDLY CRYING FACE | |
😮 | 128558 | 1F62E | FACE WITH OPEN MOUTH | |
😯 | 128559 | 1F62F | HUSHED FACE | |
😰 | 128560 | 1F630 | FACE WITH OPEN MOUTH AND COLD SWEAT | |
😱 | 128561 | 1F631 | FACE SCREAMING IN FEAR | |
😲 | 128562 | 1F632 | ASTONISHED FACE | |
😳 | 128563 | 1F633 | FLUSHED FACE | |
😴 | 128564 | 1F634 | SLEEPING FACE | |
😵 | 128565 | 1F635 | DIZZY FACE | |
😶 | 128566 | 1F636 | FACE WITHOUT MOUTH | |
😷 | 128567 | 1F637 | FACE WITH MEDICAL MASK | |
🙁 | 128577 | 1F641 | ||
🙂 | 128578 | 1F642 | ||
🙃 | 128579 | 1F643 | ||
🙄 | 128580 | 1F644 | ||
🤐 | 129296 | 1F910 | ||
🤑 | 129297 | 1F911 | ||
🤒 | 129298 | 1F912 | ||
🤓 | 129299 | 1F913 | ||
🤔 | 129300 | 1F914 | ||
🤕 | 129301 | 1F915 | ||
🤠 | 129312 | 1F920 | ||
🤡 | 129313 | 1F921 | ||
🤢 | 129314 | 1F922 | ||
🤣 | 129315 | 1F923 | ||
🤤 | 129316 | 1F924 | ||
🤥 | 129317 | 1F925 | ||
🤧 | 129319 | 1F927 | ||
🤨 | 129320 | 1F928 | ||
🤩 | 129321 | 1F929 | ||
🤪 | 129322 | 1F92A | ||
🤫 | 129323 | 1F92B | ||
🤬 | 129324 | 1F92C | ||
🤭 | 129325 | 1F92D | ||
🤮 | 129326 | 1F92E | ||
🤯 | 129327 | 1F92F | ||
🧐 | 129488 | 1F9D0 |