White Diamond

Shortcodes

Copy and paste codes for White Diamond symbol ◇ to use in your websites, apps, blogs, and more.

Unicode
U+25C7
HTML Code
◇
HEX Code
◇
CSS Code
\25C7
JS/JSON
\u25C7
Unix/C/PHP/JAVA
0x25C7
URL-encode
%E2%97%87
copied

Customize White Diamond Symbol

Customize ◇ symbol as you like and download White Diamond as SVG or PNG or copy its HTML code to use in your projects.

Preview helps customize symbol. Downloaded image and HTML code may have size/spacing differences.
 

How to add White Diamond symbol in HTML, CSS, and JS?

Insert ◇ White Diamond using HTML

1. Copy-paste White Diamond directly:
<span>◇</span>
2. HTML Decimal Code:
<span>&#9671;</span>
3. Hexadecimal Code:
<span>&#x25C7;</span>
Preview:

Add White Diamond symbol with CSS

.white-diamond::before {
    content: '\\25C7';
}
Preview: White Diamond

White Diamond JavaScript Code

1. Direct Symbol:
document.querySelector('.white-diamond').textContent = '◇';
2. Unicode Escape for ◇:
document.querySelector('.white-diamond').textContent = '\u25C7';
Preview: