Diamond Operator

Shortcodes

Copy useful codes for diamond operator symbol ⋄ to use in websites, apps, blogs, and docs.

Unicode
U+22C4
HTML Code
⋄
HEX Code
⋄
CSS Code
\22C4
JS/JSON
\u22C4
Unix/C/PHP/JAVA
0x22C4
URL-encode
%E2%8B%84

Customize Diamond Operator

Customize ⋄, download it as SVG or PNG, or copy the generated HTML snippet.

  

How to use Diamond Operator Symbol in HTML, CSS, and JS

Insert in HTML

1. Direct symbol:
<span>⋄</span>
HTML Code:
<span>&#8900;</span>
HEX Code:
<span>&#x22C4;</span>

Add with CSS

.diamond-operator::before {
  content: '\\22C4';
}

Set it in JavaScript

document.querySelector('.diamond-operator').textContent = '⋄';
copied