❤ is the Unicode emoji HEAVY BLACK HEART (“red heart”), code point U+2764 (decimal 10084) in the Dingbats block, added in Unicode 1.1. In HTML write ❤, and in UTF-8 it is the 3 bytes E2 9D A4.
Codes
| Where | How to write it |
|---|---|
| Code point | U+2764 |
| Decimal | 10084 |
| UTF-8 bytes | E2 9D A4 |
| UTF-16 (big-endian) | 2764 |
| UTF-32 | 00002764 |
| HTML decimal | ❤ |
| HTML hex | ❤ |
| CSS | \2764 |
| JavaScript | \u2764 |
| JSON | \u2764 |
| Python | \u2764 |
| Python by name | \N{HEAVY BLACK HEART} |
| Java, C# | \u2764 |
| Rust, Swift | \u{2764} |
| Go, C, C++ | \u2764 |
| URL (percent-encoded) | %E2%9D%A4 |
JavaScript and JSON strings store text as UTF-16, so this character is one code unit long. Python 3 strings count code points, so its length there is 1.
Properties
| Property | Value |
|---|---|
| Name | HEAVY BLACK HEART |
| Emoji name | red heart |
| Code point | U+2764 (decimal 10084) |
| Block | Dingbats (U+2700–U+27BF) |
| General category | So: Other symbol |
| Script | Common |
| Bidirectional class | ON: Other neutral |
| Mirrored in right-to-left text | No |
| First in Unicode version | 1.1 |
Nearby in Dingbats
- ❜ U+275C Heavy Single Comma Quotation Mark Ornament
- ❝ U+275D Heavy Double Turned Comma Quotation Mark Ornament
- ❞ U+275E Heavy Double Comma Quotation Mark Ornament
- ❟ U+275F Heavy Low Single Comma Quotation Mark Ornament
- ❠ U+2760 Heavy Low Double Comma Quotation Mark Ornament
- ❡ U+2761 Curved Stem Paragraph Sign Ornament
- ❢ U+2762 Heavy Exclamation Mark Ornament
- ❣ U+2763 Heart exclamation
- ❥ U+2765 Rotated Heavy Black Heart Bullet
- ❦ U+2766 Floral Heart
- ❧ U+2767 Rotated Floral Heart Bullet
- ❨ U+2768 Medium Left Parenthesis Ornament
- ❩ U+2769 Medium Right Parenthesis Ornament
- ❪ U+276A Medium Flattened Left Parenthesis Ornament
- ❫ U+276B Medium Flattened Right Parenthesis Ornament
- ❬ U+276C Medium Left-Pointing Angle Bracket Ornament
All 192 characters: Dingbats.
Official reference
Questions people ask
- What is the HTML code for ❤?
- Use ❤ (decimal) or ❤ (hex).
- What is the UTF-8 encoding of U+2764?
- E2 9D A4 (hex), 3 bytes. In a URL it is %E2%9D%A4.
- How do I write U+2764 in JavaScript or Python?
- JavaScript: \u2764. Python: \u2764.
Source
Unicode Character Database 18.0.0 (Unicode License v3) and the Unicode emoji test data; HTML entity names from the WHATWG HTML Standard (CC BY 4.0). The encodings above are computed from the code point and checked against Python's encoders. How the character looks depends on your fonts.
Legal entity
Devansh Yadav
Moradabad, Uttar Pradesh
Governing law: Courts at Moradabad, Uttar Pradesh
Phone: +91 8433475698
Legal: legal@analyzeit.in