♠ is the Unicode emoji BLACK SPADE SUIT (“spade suit”), code point U+2660 (decimal 9824) in the Miscellaneous Symbols block, added in Unicode 1.1. In HTML write ♠, and in UTF-8 it is the 3 bytes E2 99 A0.
Codes
| Where | How to write it |
|---|---|
| Code point | U+2660 |
| Decimal | 9824 |
| UTF-8 bytes | E2 99 A0 |
| UTF-16 (big-endian) | 2660 |
| UTF-32 | 00002660 |
| HTML decimal | ♠ |
| HTML hex | ♠ |
| HTML named | ♠ ♠ |
| CSS | \2660 |
| JavaScript | \u2660 |
| JSON | \u2660 |
| Python | \u2660 |
| Python by name | \N{BLACK SPADE SUIT} |
| Java, C# | \u2660 |
| Rust, Swift | \u{2660} |
| Go, C, C++ | \u2660 |
| URL (percent-encoded) | %E2%99%A0 |
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 | BLACK SPADE SUIT |
| Emoji name | spade suit |
| Code point | U+2660 (decimal 9824) |
| Block | Miscellaneous Symbols (U+2600–U+26FF) |
| 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 Miscellaneous Symbols
- ♘ U+2658 White Chess Knight
- ♙ U+2659 White Chess Pawn
- ♚ U+265A Black Chess King
- ♛ U+265B Black Chess Queen
- ♜ U+265C Black Chess Rook
- ♝ U+265D Black Chess Bishop
- ♞ U+265E Black Chess Knight
- ♟ U+265F Chess pawn
- ♡ U+2661 White Heart Suit
- ♢ U+2662 White Diamond Suit
- ♣ U+2663 Club suit
- ♤ U+2664 White Spade Suit
- ♥ U+2665 Heart suit
- ♦ U+2666 Diamond suit
- ♧ U+2667 White Club Suit
- ♨ U+2668 Hot springs
All 256 characters: Miscellaneous Symbols.
Official reference
Questions people ask
- What is the HTML code for ♠?
- Use the named entity ♠, or ♠ (decimal) or ♠ (hex).
- What is the UTF-8 encoding of U+2660?
- E2 99 A0 (hex), 3 bytes. In a URL it is %E2%99%A0.
- How do I write U+2660 in JavaScript or Python?
- JavaScript: \u2660. Python: \u2660.
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