On this page (8)
What a heart Unicode code point is
Unicode gives every character a unique number called a code point. It’s written as U+ followed by a hexadecimal number, so the heart suit ♥ is U+2665. In decimal, the same number is 9829, which is why HTML’s ♥ and Excel’s =UNICHAR(9829) produce the same heart.
Each code point also has an official name in capital letters, like BLACK HEART SUIT. Names are fixed forever once assigned, even when they sound odd. That’s why the red emoji heart’s base character is still called HEAVY BLACK HEART.
The reference table above lists every heart’s code point, UTF-8 bytes, CSS escape and JavaScript escape. This guide explains what those columns mean and how to use them.
The core heart code points
| Heart | Code point | Decimal | Unicode name | Added |
|---|---|---|---|---|
| ♥ | U+2665 |
9829 | BLACK HEART SUIT | Unicode 1.1 (1993) |
| ♡ | U+2661 |
9825 | WHITE HEART SUIT | Unicode 1.1 (1993) |
| ❤ | U+2764 |
10084 | HEAVY BLACK HEART | Unicode 1.1 (1993) |
| ❣ | U+2763 |
10083 | HEAVY HEART EXCLAMATION MARK ORNAMENT | Unicode 1.1 (1993) |
| ❥ | U+2765 |
10085 | ROTATED HEAVY BLACK HEART BULLET | Unicode 1.1 (1993) |
| ❦ | U+2766 |
10086 | FLORAL HEART | Unicode 1.1 (1993) |
| 💖 | U+1F496 |
128150 | SPARKLING HEART | Unicode 6.0 (2010) |
| 🖤 | U+1F5A4 |
128420 | BLACK HEART | Emoji 3.0 (2016) |
Notice that the black heart emoji 🖤 (U+1F5A4) and the heart suit ♥ (U+2665) are different characters, even though both have “black heart” in their names.
Where hearts live in Unicode
Unicode groups characters into blocks. Hearts are spread across several of them, roughly in the order they were added:
| Block | Range | Hearts in it |
|---|---|---|
| Miscellaneous Symbols | U+2600–U+26FF |
♥ ♡ ☙ |
| Dingbats | U+2700–U+27BF |
❤ ❣ ❥ ❦ ❧ |
| Miscellaneous Symbols and Pictographs | U+1F300–U+1F5FF |
💔 💕 💖 💘 💙 💚 💛 💜 🖤 |
| Supplemental Symbols and Pictographs | U+1F900–U+1F9FF |
🧡 🤍 🤎 🥰 |
| Symbols and Pictographs Extended-A | U+1FA70–U+1FAFF |
🩷 🩵 🩶 🫀 🫶 |
Plane 0 vs higher planes
Code points up to U+FFFF belong to the Basic Multilingual Plane (plane 0). The classic text hearts ♥ ♡ ❤ all live here, so they’re easy to handle everywhere.
Most emoji hearts are above U+FFFF, in plane 1. That matters in practice:
- In UTF-8, they take four bytes instead of three.
- In UTF-16 (used by JavaScript, Java and Windows), they need two 16-bit units called a surrogate pair. 💖 becomes
D83D DC96. - In code, you often need a longer escape:
\u{1F496}in modern JavaScript,\U0001F496in Python.
The HTML, CSS and JavaScript guide shows these in action.
Heart symbol UTF-8 bytes
UTF-8 is the encoding used by almost every web page. It stores each code point as one to four bytes:
| Heart | Code point | UTF-8 bytes |
|---|---|---|
| ♥ | U+2665 |
E2 99 A5 |
| ♡ | U+2661 |
E2 99 A1 |
| ❤ | U+2764 |
E2 9D A4 |
| (emoji selector) | U+FE0F |
EF B8 8F |
| (zero width joiner) | U+200D |
E2 80 8D |
| 💖 | U+1F496 |
F0 9F 92 96 |
If you’ve ever seen ♥ where a heart should be, that’s ♥’s three UTF-8 bytes being read as an older Western encoding (Windows-1252). The fix is to declare UTF-8, for example with <meta charset="utf-8"> in HTML.
Text style vs emoji style: FE0E and FE0F
Some hearts can appear as either plain text or a color emoji. Two invisible variation selectors tell the device which one you want:
U+FE0E(VS15) asks for text style.U+FE0F(VS16) asks for emoji style.
| Base | + U+FE0E (text) |
+ U+FE0F (emoji) |
|---|---|---|
♥ U+2665 |
♥︎ | ♥️ |
❤ U+2764 |
❤︎ | ❤️ |
❣ U+2763 |
❣︎ | ❣️ |
The outline heart ♡ has no emoji form, so selectors don’t change it. Emoji-only hearts like 💖 and 🖤 generally ignore U+FE0E. Selectors are requests, not commands, so a few apps still choose their own style.
ZWJ sequences: ❤️🔥 and ❤️🩹
Newer hearts are often built by joining existing emoji with an invisible zero width joiner (ZWJ, U+200D). Devices that know the sequence draw one combined image; older devices show the parts side by side.
| Emoji | Sequence | Shows on older devices as |
|---|---|---|
| ❤️🔥 Heart on fire | U+2764 U+FE0F U+200D U+1F525 |
❤️🔥 |
| ❤️🩹 Mending heart | U+2764 U+FE0F U+200D U+1FA79 |
❤️🩹 |
Both arrived with Emoji 13.1 (2020). When you copy one, you copy all four code points, which is why it can count as several characters in a bio or a database.
How to find any heart’s code point
- Our grid: click a heart above to see its full code table.
- Word on Windows: put the cursor after the heart and press Alt + X to reveal its code.
- Mac: the Character Viewer shows the code point when you select a character.
- Code: a short script prints it, as shown below.
print("\u2665") # ♥
print("\U0001F496") # 💖
print(hex(ord("♥"))) # 0x2665
print("♥".encode("utf-8")) # b'\xe2\x99\xa5'
print([hex(ord(c)) for c in "❤️"]) # ['0x2764', '0xfe0f']
To type hearts by code on your own keyboard, see how to type a heart symbol. For LaTeX documents, the heart symbol LaTeX guide covers the commands.