Heart Suit HTML entity ♥

♥ is the HTML entity for Heart Suit ♥ (U+2665). Copy the decimal ♥ and hex ♥ codes plus CSS, JavaScript, Python and URL escapes.

Entity
♥
Also written
♥
Code point
U+2665
Unicode name
BLACK HEART SUIT
Block
Miscellaneous Symbols
Category
Other symbol (So)
Since
Unicode 1.1
Defined in
HTML 4.01 and HTML5

Codes to copy

HTML named♥Works in HTML; in XML only & < > " ' are predefined.
HTML decimal♥Works in HTML and XML.
HTML hex♥Works in HTML and XML.
CSScontent: "\2665";In a stylesheet, for ::before and ::after.
JavaScript"\u2665"Also valid in JSON.
Python"\u2665"Python 3 string literal.
Python by name"\N{BLACK HEART SUIT}"Readable alternative using the Unicode name.
URL%E2%99%A5Percent-encoded UTF-8 bytes, for a path or query value.
UTF-8 bytesE2 99 A53 bytes.
UTF-1626651 code unit, which is what JavaScript length counts.

When to use it

The heart suit from playing cards, named in HTML 4. Some systems draw it as a red emoji; add U+FE0E (︎) after it to ask for the plain text glyph, or U+FE0F for the emoji.

The name dates from HTML 4, so it works in every browser and in old email clients.

This character also has an emoji form: ♥️ Heart Suit. Add U+FE0F after it for the emoji style or U+FE0E for the text style.

More symbols and signs

All symbols and signs · Every HTML entity · Encode or decode text

Source: the WHATWG HTML Standard list of named character references and the Unicode Character Database (Unicode 18.0).