| Symbol Name | Diamond Suit |
| Unicode Version | 1.1 |
| Unicode | U+2666 |
| Unicode block | |
| General category | Other Symbol (So) |
| CSS Code | \2666 |
| Hex Code | 0x2666 |
| HTML Code | ♦ |
| LaTeX | \diamondsuit |
| Symbol | ♦ |
| URL encode (UTF-8 percent) | %E2%99%A6 |
| Spoken / screen reader name | Diamond Suit |
| UTF-8 | E2 99 A6 |
| UTF-16 | 2666 |
| UTF-32 | 00002666 |
1\documentclass{article}2\usepackage{pifont}3\diamondsuit4\end{document}You can type the diamond suit symbol on most modern devices with the help of following methods:
Alt + 9830 on Windows (numeric keypad with Num Lock), or insert via Character Map.
Edit → Emoji & Symbols, search "diamond suit", or use Unicode Hex Input with 2666.
Ctrl + Shift + U, type 2666, then Enter (layout-dependent).
Paste from this page, use text replacement, or pick from the emoji keyboard.
Paste from this page or use a keyboard with card suit symbol support.
1span.diamond-suit::before { content: "\2666"; font-family: "Apple Color Emoji", "Segoe UI Emoji", sans-serif; }1<span>♦</span>Diamond Suit symbol's representation in different programming languages can be found in the table below:
| Language | Representation |
|---|---|
| JavaScript / TypeScript | '\u2666' or String.fromCodePoint(9830) |
| Python | '\N{DIAMOND SUIT}' or chr(9830) |
| Rust | '\u{2666}' |
| C / C++ | UTF-8 source or wchar_t with U+2666 |
| Go | string(rune(0x2666)) |
| Ruby | "\u{2666}" |