HTML Entity for Sun (☉)

Beginner
5 min read
Updated: Sep 2026
1 example
Unicode U+2609

What Is Sun?

Sun (☉) is the Unicode character at U+2609 in Miscellaneous Symbols. Official name: SUN. It is the classic astronomical and astrological solar symbol — a circle with a center dot.

Remember
Character     ☉
Unicode       U+2609
Hex entity    ☉
Decimal       ☉
CSS escape    \2609
Named entity  (none)
Not the same  ⊙ · ☀ · ☼

Prefer ☉ or ☉ in HTML markup. You can also type ☉ in UTF-8. There is no named entity.

Quick Reference

One table for every form you will actually use.

FormCodeWhere it goes
Direct character☉HTML text (UTF-8)
Hex entity☉HTML markup (preferred)
Decimal entity☉HTML markup
CSS escape\2609Stylesheet content
Named entity—Not defined in HTML5
White sun with rays (related)☼ (☼, U+263C)Rayed sun icon

When to Use Which

SituationUse
Astronomical / astrological solar symbol☉ or ☉
Black sun with rays (weather icon)☀ / ☀
White sun with rays☼ / ☼
Circled dot math operator⊙ (⊙, U+2299)
Looking for a named formDoes not exist — use numeric form
Generated text via ::before / ::aftercontent: "\2609"

Live Preview

Sun rendered next to related marks.

Example Solar symbol: ☉
Large glyph ☉
Compared ☉   ☀   ☼   ⊙
With entities Hex: ☉ | Decimal: ☉

Complete HTML Example

One page that shows Sun with hex, decimal, CSS escape, and a typed character. Use View Output or open the live editor.

Hex + Decimal + CSS + Typed

Four ways to produce ☉, plus a short solar-label example.

html
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Sun (☉) in HTML</title>
  <style>
    #point::after {
      content: "\2609";
    }
  </style>
</head>
<body>
  <p>Using Hex Code: &#x2609;</p>
  <p>Using HTML Code: &#9737;</p>
  <p id="point">Using CSS Entity: </p>
  <p>Typed directly: ☉</p>
  <p>Example: Solar symbol ☉</p>
</body>
</html>
Try It Yourself

How It Works

1. Hex: U+2609 → &#x2609; in HTML. The browser turns it into ☉.

2. Decimal: same code point as 9737 → &#9737;. Same result as hex.

3. CSS: use \2609 in content (not an HTML entity). #point::after appends that ☉ after the paragraph text.

4. Typed / example: paste ☉ in UTF-8, or write Solar symbol ☉ for a short label.

Pitfalls & Tips

Common mistakes when working with Sun.

Named?

No named entity

HTML5 does not define a named entity for U+2609. Use &#x2609; or &#9737;.

⊙

Not circled dot operator

&odot; is circled dot (U+2299). Prefer U+2609 for the astronomical solar symbol.

☀

Not black sun with rays

Black sun with rays is U+2600 (☀). White sun with rays is U+263C (☼).

Fonts

Symbol font coverage

Some UI fonts omit Miscellaneous Symbols. Prefer a symbol-capable font for display.

CSS vs HTML

Do not mix escapes

\2609 belongs in CSS strings. &#x2609; / &#9737; belong in HTML.

Semicolon

End numeric references

Always finish with ; — write &#9737;, not &#9737.

Browser Support

Sun (U+2609) and its entity forms (&#x2609;, &#9737;, CSS \\2609) are supported in all mainstream browsers. Visible glyphs depend on symbol font coverage.

✓ Universal support

Sun (☉)

Encode with hex, decimal, CSS escape, or type the character — same code point everywhere encoding is supported.

100% Browser coverage
Google Chrome Supported
Yes
Microsoft Edge Supported
Yes
Mozilla Firefox Supported
Yes
Apple Safari Supported
Yes
Opera Supported
Yes
Internet Explorer All versions
Yes
U+2609 / entities Full support

Bottom line: Prefer &#x2609; or &#9737; in HTML. Use \\2609 only inside CSS content. There is no named entity.

Key Takeaways

  • Unicode: this mark is U+2609 (decimal 9737) — glyph ☉.
  • HTML: use &#x2609; or &#9737; — no named entity; typing ☉ also works.
  • CSS: use \2609 inside content for generated text.
  • Meaning: ☉ = astronomical sun — not ⊙, not ☀, not ☼.

One line: U+2609 → &#x2609; / &#9737; / CSS \2609.

Frequently Asked Questions

Use &#x2609; (hex), &#9737; (decimal), type ☉ directly in UTF-8, or the CSS escape \2609 in content. There is no named HTML entity for U+2609.
U+2609 (SUN). Hex 2609, decimal 9737. It belongs to Miscellaneous Symbols (U+2600–U+26FF).
No. HTML5 does not define a named entity for this character. Use numeric forms &#9737; or &#x2609;.
Use it for astronomy, astrology, weather labels, solar energy content, or design when you want the classic solar symbol (circle with a center dot). Prefer U+2600 or U+263C for rayed sun icons.
HTML entities (&#9737; or &#x2609;) go in markup. The CSS escape \2609 goes in stylesheet strings (usually content on ::before/::after).
No. ☉ is SUN (U+2609). ⊙ is circled dot operator (U+2299, &odot;). ☀ is black sun with rays (U+2600). ☼ is white sun with rays (U+263C).

Did you know?

Sun (☉) is Unicode U+2609 (decimal 9737) — SUN in Miscellaneous Symbols. HTML5 has no named entity — use &#x2609; or &#9737;. It is the classic astronomical/astrological solar symbol (circle with a center dot). Do not confuse it with circled dot operator (U+2299, &odot;), black sun with rays (U+2600), or white sun with rays (U+263C).

Next: Superscript Equals

Learn the HTML entity for superscript equals (⁼).

Continue tutorial →

CODETOFUN NEWS

Stay Ahead in Tech

Get the latest IT news, programming updates, and technology trends directly on your phone.

Your daily dose of tech, straight to your feed.

About the author

Mari Selvan M P
Mari Selvan M P 🔗

Developer, cloud engineer, and technical writer

  • Experience 12 years building web and cloud systems
  • Focus Full Stack Development, AWS, and Developer Education

I write practical tutorials so students and working developers can learn by doing—from databases and APIs to deployment on AWS.

8 people found this page helpful