Star Operator

Shortcodes

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

Unicode
U+22C6
HTML Code
⋆
HEX Code
⋆
CSS Code
\22C6
JS/JSON
\u22C6
Unix/C/PHP/JAVA
0x22C6
URL-encode
%E2%8B%86
copied

Customize Star Operator Symbol

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

Insert ⋆ Star Operator using HTML

1. Copy-paste Star Operator directly:
<span>⋆</span>
2. HTML Decimal Code:
<span>&#8902;</span>
3. Hexadecimal Code:
<span>&#x22C6;</span>
Preview:

Add Star Operator symbol with CSS

.star-operator::before {
    content: '\\22C6';
}
Preview: Star Operator

Star Operator JavaScript Code

1. Direct Symbol:
document.querySelector('.star-operator').textContent = '⋆';
2. Unicode Escape for ⋆:
document.querySelector('.star-operator').textContent = '\u22C6';
Preview: