Black Star

Shortcodes

Copy and paste codes for Black Star symbol ★ to use in your websites, apps, blogs, and more.

Unicode
U+2605
HTML Code
★
HTML Entity
HEX Code
★
CSS Code
\2605
JS/JSON
\u2605
Unix/C/PHP/JAVA
0x2605
URL-encode
%E2%98%85
copied

Customize Black Star Symbol

Customize ★ symbol as you like and download Black Star 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 Black Star symbol in HTML, CSS, and JS?

Insert ★ Black Star using HTML

1. Copy-paste Black Star directly:
<span>★</span>
2. HTML Decimal Code:
<span>&#9733;</span>
3. HTML Entity:
<span>★</span>
4. Hexadecimal Code:
<span>&#x2605;</span>
Preview:

Add Black Star symbol with CSS

.black-star::before {
    content: '\\2605';
}
Preview: Black Star

Black Star JavaScript Code

1. Direct Symbol:
document.querySelector('.black-star').textContent = '★';
2. Unicode Escape for ★:
document.querySelector('.black-star').textContent = '\u2605';
Preview: