Sun

Shortcodes

Copy and paste codes for Sun symbol ☉ to use in your websites, apps, blogs, and more.

Unicode
U+2609
HTML Code
☉
HEX Code
☉
CSS Code
\2609
JS/JSON
\u2609
Unix/C/PHP/JAVA
0x2609
URL-encode
%E2%98%89
copied

Customize Sun Symbol

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

Insert ☉ Sun using HTML

1. Copy-paste Sun directly:
<span>☉</span>
2. HTML Decimal Code:
<span>&#9737;</span>
3. Hexadecimal Code:
<span>&#x2609;</span>
Preview:

Add Sun symbol with CSS

.sun::before {
    content: '\\2609';
}
Preview: Sun

Sun JavaScript Code

1. Direct Symbol:
document.querySelector('.sun').textContent = '☉';
2. Unicode Escape for ☉:
document.querySelector('.sun').textContent = '\u2609';
Preview: