Emoji Red Heart
About this character
The character ❤️ is known as Emoji Red Heart and carries the Unicode code point U+2764, which is 10084 in decimal. It belongs to the Dingbats block (U+2700–U+27BF), which gathers typographic ornaments: stars, crosses, check marks and flourishes from the Zapf Dingbats font.
In memory, ❤️ takes 6 bytes in UTF-8 (0xE2 0x9D 0xA4 0xEF 0xB8 0x8F) and 2 in UTF-16 (0x2764 0xFE0F). That difference is why badly configured forms or databases garble this character: they assume one byte per character.
How to type ❤️
| System | What to do |
|---|---|
| Windows | In Word or WordPad, type 2764 and press Alt + X to turn the code into the character. |
| macOS | On a Mac, open the Character Viewer with Ctrl + ⌘ + Space and search for “Emoji Red Heart”. |
| Linux | On Linux (GTK), type Ctrl + ⇧ + U, 2764 then press Enter. |
| HTML / Web | In an HTML page, write ❤. Use \2764 in CSS, \u2764 in JavaScript and \u2764 in Python. |
| On this site | The simplest route is the Copy button above: the character goes straight to your clipboard, ready to paste anywhere. |
Keyboards that include ❤️
This character is not on any common physical layout, so the Copy button above is the quickest way to get it into a document.
Codes and encodings
| Property | Value |
|---|---|
| Code point | U+2764 |
| Unicode block | Dingbats (U+2700–U+27BF) |
| Decimal | 10084 |
| Hexadecimal | 0x2764 |
| Octal | 023544 |
| Binary | 10011101100100 |
| UTF-8 bytes | 0xE2 0x9D 0xA4 0xEF 0xB8 0x8F |
| UTF-16 units | 0x2764 0xFE0F |
| Named HTML entity | None |
| Decimal HTML entity | ❤ |
| Hex HTML entity | ❤ |
| CSS escape | \2764 |
| JavaScript escape | \u2764 |
| Python escape | \u2764 |
| URL encoding | %E2%9D%A4%EF%B8%8F |
Frequently asked questions
What is the Unicode code for ❤️?
Its code point is U+2764, which is 10084 in decimal and 023544 in octal. In HTML you can write it as ❤ or ❤.
Why does ❤️ show up as a box or a question mark?
An empty box means the font has no glyph for U+2764. The character is still in the text: switching to a font that covers the block (Noto, DejaVu or Segoe UI Symbol) makes it appear.
Can I use ❤️ in a filename, a URL or a password?
In a URL it must be encoded as %E2%9D%A4%EF%B8%8F. Modern filesystems accept it, though it is still risky when moving files between systems. For passwords, some forms reject non-ASCII characters outright.