HTML Entity for White Spade Suit (♤)

Beginner
⏱️ 5 min read
📚 Updated: Jun 2026
🎯 1 Code Example
Unicode U+2664

What You'll Learn

How to display the White Spade Suit symbol (♤) in HTML using hexadecimal, decimal, and CSS escape methods. This character is U+2664 (WHITE SPADE SUIT) in the Miscellaneous Symbols block (U+2600–U+26FF)—the outline spade suit from playing cards, part of the playing-card suit range U+2660–U+2667.

Render it with ♤, ♤, or CSS escape \2664. There is no named HTML entity for U+2664. Do not confuse ♤ with ♠ (black spade suit, ♠) or other suit symbols.

⚡ Quick Reference — White Spade Suit

Unicode U+2664

Miscellaneous Symbols (playing cards)

Hex Code ♤

Hexadecimal reference

HTML Code ♤

Decimal reference

Named Entity

Use numeric codes only

Reference Table
Name           Value
────────────   ──────────
Unicode        U+2664
Hex code       ♤
HTML code      ♤
Named entity   (none)
CSS code       \2664
Meaning        White spade suit (playing cards)
Related        U+2660 = ♠ (black spade suit, ♠)
               U+2661 = ♡ (white heart suit)
               U+2662 = ♢ (white diamond suit)
               U+2667 = ♧ (white club suit)
Block          Miscellaneous Symbols (U+2600–U+26FF)
1

Complete HTML Example

A simple example showing White Spade Suit (♤) using hexadecimal code, decimal HTML code, and a CSS content escape:

html
<!DOCTYPE html>
<html>
<head>
 <style>
  #spade:after{
   content: "\2664";
  }
 </style>
</head>
<body>
<p>White Spade Suit (hex): &#x2664;</p>
<p>White Spade Suit (decimal): &#9828;</p>
<p id="spade">White Spade Suit (CSS): </p>
</body>
</html>
Try It Yourself

🌐 Browser Support

U+2664 is supported in modern browsers when the font includes Miscellaneous Symbols glyphs:

Chrome1+
Firefox1+
Safari1+
Edge12+
Opera4+
Android4.4+
iOS Safari1+

👀 Live Preview

See White Spade Suit (♤) in context:

Large glyph
Spade pair♤ ♠
White suits♤ ♡ ♢ ♧
Black suits♠ ♥ ♦ ♣
Numeric refs&#x2664; &#9828; \2664

🧠 How It Works

1

Hexadecimal Code

&#x2664; uses the Unicode hexadecimal value 2664 to display the character. The x prefix indicates hexadecimal format.

HTML markup
2

Decimal HTML Code

&#9828; uses the decimal Unicode value 9828 to display the same character. A common method for symbol characters in HTML.

HTML markup
3

CSS Entity

\2664 is used in CSS stylesheets, particularly in the content property of pseudo-elements like ::before and ::after.

CSS stylesheet
=

Same visual result

All three methods produce the glyph: . Unicode U+2664 is the white spade suit. Not the same as ♠ (black spade, &spades;).

Use Cases

White Spade Suit (♤) is commonly used in:

🃏 Card games

Online card games, poker applications, and card game interfaces.

🎮 Gaming applications

Casino games, card game apps, and gaming platforms with playing cards.

🃏 Playing card UI

Card game tutorials, documentation, and playing card displays.

🎨 Creative design

Graphic design projects, logos, and content with card suit symbols.

🎰 Casino websites

Gambling platforms and card game-related content.

📚 Educational content

Tutorials about card games, probability lessons, and suit notation.

♿ Accessibility

Pair ♤ with text or aria-label (e.g. “Spades”); the glyph alone is not enough.

💡 Best Practices

Do

  • Use hex or decimal consistently—there is no named entity for U+2664
  • Pair ♤ with ♠ (black spade, &spades;) when showing outline vs filled suits
  • Use the same font stack for all suit symbols in a card UI
  • Pair suit symbols with clear labels or context in game rules or card layouts
  • Use \2664 only inside CSS content, not inside HTML text nodes
  • Add aria-label or visible text for standalone suit glyphs

Don’t

  • Confuse ♤ (white spade) with ♠ (black spade, &spades;) or other suits
  • Assume every visitor knows suit symbols without a legend
  • Mix entity styles randomly in one codebase
  • Use CSS escape \2664 inside HTML markup
  • Rely on color alone when red/black suit distinction matters

Key Takeaways

1

Two numeric references render the same glyph

&#x2664; &#9828;
2

CSS content escape

\2664
3

U+2664 is WHITE SPADE SUIT; black spade is U+2660 (&spades;)

4

Playing-card suits are U+2660–U+2667; no named entity for white suits

❓ Frequently Asked Questions

Use &#x2664; (hex), &#9828; (decimal), or \2664 in CSS content. There is no named entity; all valid methods render ♤.
U+2664 (hex 2664, decimal 9828). Miscellaneous Symbols, playing-card suits U+2660–U+2667. Unicode name WHITE SPADE SUIT.
For card games, gaming applications, playing card interfaces, creative design, casino websites, card game tutorials, and educational content about suits.
Numeric references belong in HTML. The \2664 escape belongs in stylesheets (for example on pseudo-elements). Do not paste CSS escapes into HTML text nodes.
No. Use &#x2664;, &#9828;, or \2664 in CSS. For the filled black spade, use &spades; (U+2660).

Explore More HTML Entities!

Discover 1500+ HTML character references — currency symbols, arrows, math operators, emojis, and more.

All HTML Entities →

About the author

Mari Selvan M P
Mari Selvan M P 🔗

Developer, cloud engineer, and technical writer

  • Experience 12 years building web and cloud systems
  • Focus Full Stack Development, AWS, and Developer Education

I write practical tutorials so students and working developers can learn by doing—from databases and APIs to deployment on AWS.

8 people found this page helpful