HTML Entity for White Diamond Suit (♢)

Beginner
5 min read
Updated: Sep 2026
1 example
Unicode U+2662

What Is White Diamond Suit?

White diamond suit (♢) is Unicode U+2662 (WHITE DIAMOND SUIT) in the Miscellaneous Symbols block. It is the outline diamonds suit used in card games and decorative suit UI. HTML5 has no named entity for this character.

Remember
Character     ♢
Unicode       U+2662
Hex entity    ♢
Decimal       ♢
CSS escape    \2662
Named entity  (none)
Not the same  ♦ U+2666 (black diamond suit)

All of these produce the same glyph: ♢. Prefer typing ♢ in UTF-8 when you can; use numeric or CSS forms for generated content. Do not use ♦ — that maps to black diamond suit (U+2666).

Quick Reference

One table for every form you will actually use.

FormCodeWhere it goes
Direct character♢HTML text (UTF-8) — preferred
Hex entity♢HTML markup
Decimal entity♢HTML markup
CSS escape\2662Stylesheet content
Named entity—Not defined in HTML5

When to Use Which

SituationUse
Outline / white diamonds♢ or type ♢
Filled / black diamonds♦ (U+2666)
Other white suits♤ · ♡ · ♧
Icon via CSScontent: "\2662" on ::before
Looking for ♦That is black diamond (U+2666) — not this glyph

Live Preview

White diamond suit in common study contexts.

Inline suit Ace of ♢
Large glyph ♢
Four white suits ♢ ♧ ♡ ♤
Compared White ♢ · Black ♦
Accessible label diamonds Diamonds
With entities Hex: ♢ | Decimal: ♢

Complete HTML Example

One page that shows ♢ with hex, decimal, CSS escape, and a typed character. Use View Output or open the live editor.

Hex + Decimal + CSS + Typed

Four ways to produce ♢ in a single document.

html
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>White Diamond Suit (♢) in HTML</title>
  <style>
    #point::after {
      content: "\2662";
    }
  </style>
</head>
<body>
  <p>White diamond suit using Hex Code: &#x2662;</p>
  <p>White diamond suit using HTML Code: &#9826;</p>
  <p id="point">White diamond suit using CSS Entity: </p>
  <p>Typed directly: ♢</p>
</body>
</html>
Try It Yourself

How It Works

1. Hex: U+2662 → &#x2662; in HTML. The browser turns it into ♢.

2. Decimal: same code point as 9826 → &#9826;. Same result as hex.

3. CSS: use \2662 in content (not an HTML entity). #point::after appends that ♢ after the paragraph text.

4. Typed ♢: fine in UTF-8 source. There is no named entity — &diams; is a different character.

Pitfalls & Tips

Common mistakes when working with white diamond suit (♢).

♦

Not black diamond

♢ is outline. For the filled form use ♦ (U+2666) / &diams;.

Named?

No named entity

&diams; and &diamondsuit; always mean U+2666. For ♢ use numeric forms only.

♠

Do not swap suits

♢ diamonds ≠ ♤ spades ≠ ♡ hearts ≠ ♧ clubs. Use the matching white-suit code point.

a11y

Say “Diamonds”

Screen readers may not announce the suit clearly. Pair the glyph with visible or visually hidden text.

Fonts

Match suit fonts

Use the same font stack for ♧ ♢ ♡ ♤ so white suit glyphs look consistent.

Semicolon

End references

Always finish with ; — write &#9826;, not &#9826.

Browser Support

White diamond suit (U+2662) and its entity forms (&#x2662;, &#9826;, CSS \\2662) are supported in all mainstream browsers. Glyph quality depends on font support for Miscellaneous Symbols.

✓ Universal support

White Diamond Suit (♢)

Type ♢, or encode with hex, decimal, or CSS escape — same glyph everywhere encoding is supported.

100% Browser coverage
Google Chrome Supported
Yes
Microsoft Edge Supported
Yes
Mozilla Firefox Supported
Yes
Apple Safari Supported
Yes
Opera Supported
Yes
Internet Explorer All versions
Yes
U+2662 / entities Full support

Bottom line: Prefer a typed ♢ or &#x2662; / &#9826; for markup. Use \\2662 only inside CSS content. Do not use &diams; for this glyph.

Key Takeaways

  • Unicode: white diamond suit is U+2662 (decimal 9826).
  • HTML: prefer typing ♢, or use &#x2662; / &#9826;.
  • CSS: use \2662 inside content for generated icons.
  • Watch out: no named entity; ♢ ≠ ♦; &diams; is black diamond.

One line: U+2662 → type ♢ / &#x2662; / &#9826; / CSS \2662.

Frequently Asked Questions

Use &#x2662; (hex), &#9826; (decimal), or the CSS escape \2662 in the content property. All render ♢. You can also paste ♢ directly if your file is UTF-8. There is no named HTML entity.
U+2662 (hex 2662, decimal 9826). Unicode names it WHITE DIAMOND SUIT. It belongs to the Miscellaneous Symbols block in the playing-card suit range U+2660–U+2667.
No. HTML5 does not define a named entity for white diamond suit. Use &#x2662; or &#9826;. The named forms &diams; and &diamondsuit; map to black diamond suit (U+2666), not this character.
♢ (U+2662) is the outline white diamond suit. ♦ (U+2666) is the filled black diamond suit with named entities &diams; / &diamondsuit;. They are different code points.
HTML entities (&#9826; or &#x2662;) go in markup. The CSS escape \2662 is used in stylesheets (usually in the content property of ::before/::after). Both render ♢.
Use ♢ when you want an outline diamonds glyph for card UI, decorative suits, or light-on-dark designs. Prefer ♦ (&diams;) for the common filled diamonds suit in games and Bridge notation.

Did you know?

White diamond suit is Unicode U+2662 (decimal 9826) in the Miscellaneous Symbols block — official name WHITE DIAMOND SUIT. HTML5 has no named entity for it. It is not black diamond suit (U+2666 ♦ / &diams;).

Next: White Down Pointing Index

Learn the HTML entity for white down pointing index (☟).

Continue tutorial →

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