Star Operator

Shortcodes

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

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

Customize Star Operator

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

  

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

Insert in HTML

1. Direct symbol:
<span>⋆</span>
HTML Code:
<span>&#8902;</span>
HEX Code:
<span>&#x22C6;</span>

Add with CSS

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

Set it in JavaScript

document.querySelector('.star-operator').textContent = '⋆';
copied