Diamond operator (⋄) is the Unicode character at U+22C4 in the Mathematical Operators block. Official name: DIAMOND OPERATOR. It appears in math and modal logic (often for possibility), and as a custom operator symbol.
Remember
Character ⋄
Unicode U+22C4
Named entity ⋄
Hex entity ⋄
Decimal ⋄
CSS escape \22C4
Not the same ♦ · ◊ · ⋅
Prefer ⋄ in HTML markup. You can also type ⋄ in UTF-8, or use numeric forms when needed.
Diamond using Named Entity: ⋄
Diamond using Hex Code: ⋄
Diamond using HTML Code: ⋄
Diamond using CSS Entity: ⋄
Typed directly: ⋄
Logic: ⋄ p
How It Works
1. Named:⋄ is the HTML5 name for U+22C4 → ⋄. Best default in markup.
2. Hex:U+22C4 → ⋄ in HTML. Same glyph as the named form.
3. Decimal: same code point as 8900 → ⋄. Same result as hex and named.
4. CSS: use \22C4 in content (not an HTML entity). #point::after appends that ⋄ after the paragraph text.
5. Typed / logic: paste ⋄ in UTF-8, or write ⋄ <em>p</em> for a simple modal-logic style example.
Pitfalls & Tips
Common mistakes when working with Diamond Operator.
♦
Not the card suit
♦ / ♦ is the black diamond suit. For the math operator, use ⋄ (⋄).
◊
Not the lozenge
◊ (◊) is a hollow geometric lozenge — a different character from U+22C4.
Name
Use ⋄
There is no &diamondop;. The HTML5 name for U+22C4 is ⋄.
CSS vs HTML
Do not mix escapes
\22C4 belongs in CSS strings. ⋄ / ⋄ / ⋄ belong in HTML.
Fonts
Math font coverage
Some fonts omit U+22C4. Prefer a font with Mathematical Operators coverage for display.
Semicolon
End references
Always finish with ; — write ⋄, not &diamond.
Compatibility
Browser Support
Diamond operator (U+22C4) and its entity forms (⋄, ⋄, ⋄, CSS \\22C4) are supported in all mainstream browsers. Visible glyphs depend on math font coverage.
✓ Universal support
Diamond Operator (⋄)
Encode with named, hex, decimal, CSS escape, or type the character — same code point everywhere encoding is supported.
100%Browser coverage
Google ChromeSupported
Yes
Microsoft EdgeSupported
Yes
Mozilla FirefoxSupported
Yes
Apple SafariSupported
Yes
OperaSupported
Yes
Internet ExplorerAll versions
Yes
U+22C4 / entitiesFull support
Bottom line: Prefer ⋄ in HTML. Use ⋄ or ⋄ when numeric form is required, and \\22C4 only inside CSS content.
Remember
Key Takeaways
Unicode: diamond operator is U+22C4 (decimal 8900) — glyph ⋄.
HTML: prefer ⋄, or use ⋄ / ⋄ / type ⋄.
CSS: use \22C4 inside content for generated text.
Meaning:⋄ is a math/logic operator — not the same as ♦ or ◊.
One line:U+22C4 → ⋄ / ⋄ / ⋄ / CSS \22C4 / type ⋄.
Frequently Asked Questions
Use ⋄ (named), ⋄ (hex), ⋄ (decimal), type ⋄ directly in UTF-8, or the CSS escape \22C4 in content. Prefer ⋄ in normal HTML.
U+22C4 (DIAMOND OPERATOR). Hex 22C4, decimal 8900. It belongs to the Mathematical Operators block (U+2200–U+22FF).
Yes. Use ⋄ — the preferred form in HTML markup. Numeric forms ⋄ and ⋄ also work.
Use it in mathematics, modal logic, and related notation when you need the diamond operator (often possibility, or a custom binary operator), not a card-suit diamond.
HTML entities (⋄, ⋄, or ⋄) go in markup. The CSS escape \22C4 goes in stylesheet strings (usually content on ::before/::after).
No. ⋄ is U+22C4 (diamond operator ⋄). ♦ / ♦ is U+2666 (black diamond suit ♦). Use the operator for math; use the suit for cards or decoration.
🤔
Did you know?
Diamond operator is Unicode U+22C4 (decimal 8900) — glyph ⋄ in the Mathematical Operators block. HTML5 names it ⋄. It is a math/logic operator, not the card suit diamond ♦ (♦) or the lozenge ◊ (◊).