HTML Entity for White Chess King (♔)

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

What You'll Learn

How to display the White Chess King (♔) in HTML using hexadecimal, decimal, and CSS escape methods. This character is U+2654 (WHITE CHESS KING) in the Miscellaneous Symbols chess range (U+2654–U+265F)—the standard Unicode glyph for the white king chess piece on boards, tutorials, and notation.

Render it with ♔, ♔, or CSS escape \2654. There is no named HTML entity. In the starting position the white king stands on e1. Do not confuse ♔ with black king ♚ (U+265A).

⚡ Quick Reference — White Chess King

Unicode U+2654

Miscellaneous Symbols (chess range)

Hex Code ♔

Hexadecimal reference

HTML Code ♔

Decimal reference

Named Entity

Use numeric codes only

Reference Table
Name           Value
────────────   ──────────
Unicode        U+2654
Hex code       ♔
HTML code      ♔
Named entity   (none)
CSS code       \2654
Meaning        White chess king
Related        U+265A = ♚ (black chess king)
               U+2657 = ♗ (white chess bishop)
Block          Miscellaneous Symbols (U+2654–U+265F chess pieces)
1

Complete HTML Example

A simple example showing the White Chess King (♔) using hexadecimal code, decimal HTML code, and a CSS content escape:

html
<!DOCTYPE html>
<html>
<head>
 <style>
  #point:after{
   content: "\2654";
  }
 </style>
</head>
<body>
<p>White Chess King (hex): &#x2654;</p>
<p>White Chess King (decimal): &#9812;</p>
<p id="point">White Chess King (CSS): </p>
</body>
</html>
Try It Yourself

🌐 Browser Support

U+2654 is supported in modern browsers when rendered with a font that includes chess piece glyphs:

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

👀 Live Preview

See the White Chess King (♔) in chess contexts:

Large glyph
Starting square♔ e1
White back rank♖♘♗♕♔♗♘♖
Not the same as♚ (U+265A, black chess king)
Numeric refs&#x2654; &#9812; \2654

🧠 How It Works

1

Hexadecimal Code

&#x2654; uses the Unicode hexadecimal value 2654 to display the White Chess King. The x prefix indicates hexadecimal format.

HTML markup
2

Decimal HTML Code

&#9812; uses the decimal Unicode value 9812 to display the same character. A common method for chess piece symbols in HTML.

HTML markup
3

CSS Entity

\2654 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+2654 is the white king in the chess piece range. Not the same as ♚ (black king).

Use Cases

The White Chess King (♔) is commonly used in:

🎮 Game design

Chess game applications and online chess platforms.

📚 Chess tutorials

Educational content about chess pieces and strategy.

🎨 Decorative text

Graphic design, logos, and creative chess-themed projects.

♛ Chess applications

Board game interfaces and interactive chess content.

🎓 Educational content

Chess lessons and instructional material about rules.

🃏 Board game interfaces

Game websites and interfaces featuring chess.

📝 Chess notation

Move annotations, game records, and PGN content.

💡 Best Practices

Do

  • Pair ♔ with aria-label="white king" or visible text on boards
  • Use numeric references when escaping is required
  • Pick one style (hex or decimal) per project for consistency
  • Use serif or chess-friendly fonts for piece glyphs
  • Distinguish white king U+2654 from black king U+265A

Don’t

  • Confuse white king ♔ with black king ♚
  • Mix entity styles randomly in one file
  • Use CSS escape \2654 inside HTML markup
  • Expect a named HTML entity—none exists for ♔
  • Rely on color alone to show piece side—use the correct Unicode code point

Key Takeaways

1

Type ♔ directly, or use hex/decimal references

&#x2654; &#9812;
2

For CSS stylesheets, use the escape in the content property

\2654
3

Unicode U+2654 — WHITE CHESS KING (chess piece range)

4

Black king is U+265A (♚) — not interchangeable

❓ Frequently Asked Questions

Use &#x2654; (hex), &#9812; (decimal), or \2654 in CSS content. There is no named HTML entity. In UTF-8 you can also type ♔ directly.
U+2654 (WHITE CHESS KING). Chess piece range U+2654–U+265F within Miscellaneous Symbols. Hex 2654, decimal 9812. Black king is U+265A (♚).
In chess websites and applications, game design and tutorials, decorative text and creative content, chess notation and move annotations, board game interfaces, and any web content that displays or references chess pieces.
HTML entities (&#9812; or &#x2654;) go directly in markup. The CSS escape \2654 is used in stylesheets, typically in the content property of ::before or ::after. Same visual result, different layers of the stack.
Named HTML entities are reserved for commonly used ASCII, Latin-1, and widely recognized symbols. Chess piece glyphs like ♔ use numeric codes. Use &#9812; or &#x2654; in HTML, or \2654 in CSS.

Explore More HTML Entities!

Discover 1500+ HTML character references — symbols, punctuation, 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