White Square

Shortcodes

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

Unicode
U+25A1
HTML Code
□
HEX Code
□
CSS Code
\25A1
JS/JSON
\u25A1
Unix/C/PHP/JAVA
0x25A1
URL-encode
%E2%96%A1
copied

Customize White Square Symbol

Customize □ symbol as you like and download White Square 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 Square symbol in HTML, CSS, and JS?

Insert □ White Square using HTML

1. Copy-paste White Square directly:
<span>□</span>
2. HTML Decimal Code:
<span>&#9633;</span>
3. Hexadecimal Code:
<span>&#x25A1;</span>
Preview:

Add White Square symbol with CSS

.white-square::before {
    content: '\\25A1';
}
Preview: White Square

White Square JavaScript Code

1. Direct Symbol:
document.querySelector('.white-square').textContent = '□';
2. Unicode Escape for □:
document.querySelector('.white-square').textContent = '\u25A1';
Preview: