HTML Entity for Shamrock (☘)

Beginner
⏱️ 5 min read
📚 Updated: Jun 2026
🎯 1 Code Example
Unicode U+2618

What You'll Learn

How to display the Shamrock (☘) in HTML using hexadecimal, decimal, and CSS escape methods. This character is U+2618 (SHAMROCK) in the Miscellaneous Symbols block (U+2600–U+26FF)—a three-leaf clover and traditional symbol of Ireland, widely used for St. Patrick’s Day and Irish-themed design.

Render it with ☘, ☘, or CSS \2618. There is no named HTML entity. Note: the shamrock is a three-leaf clover—not the same as a four-leaf clover emoji (U+1F340).

⚡ Quick Reference — Shamrock

Unicode U+2618

Miscellaneous Symbols

Hex Code ☘

Hexadecimal reference

HTML Code ☘

Decimal reference

Named Entity

Use numeric codes only

Reference Table
Name           Value
────────────   ──────────
Unicode        U+2618
Hex code       ☘
HTML code      ☘
Named entity   (none)
CSS code       \2618
Official name  Shamrock
Related        U+1F340 = four-leaf clover emoji
Block          Miscellaneous Symbols (U+2600–U+26FF)
1

Complete HTML Example

A simple example showing ☘ using hexadecimal code, decimal HTML code, and a CSS content escape:

html
<!DOCTYPE html>
<html>
<head>
 <style>
  #point::after{
   content: "\2618";
  }
 </style>
</head>
<body>
<p>Shamrock (hex): &#x2618;</p>
<p>Shamrock (decimal): &#9752;</p>
<p id="point">Shamrock (CSS): </p>
</body>
</html>
Try it Yourself

🌐 Browser Support

The Shamrock (☘) is supported in modern browsers when fonts include Miscellaneous Symbols glyphs:

Chrome1+
Firefox1+
Safari1+
Edge12+
Opera4+
Android4.4+
iOS Safari1+

👀 Live Preview

See the Shamrock in festive and cultural contexts:

Single symbol
St. Patrick’s Day ☘ Happy St. Patrick’s Day!
Irish heritage ☘ Irish Culture & Heritage
Decorative row ☘ ☘ ☘ ☘
Numeric refs &#x2618; &#9752; \2618

🧠 How It Works

1

Hexadecimal Code

&#x2618; uses Unicode hexadecimal 2618 to display the shamrock.

HTML markup
2

Decimal HTML Code

&#9752; uses decimal Unicode value 9752 for the same character.

HTML markup
3

CSS Entity

\2618 is used in CSS stylesheets in the content property of pseudo-elements for decorative markers.

CSS stylesheet
=

Cultural symbol result

All three methods produce . Unicode U+2618 in Miscellaneous Symbols. No named entity. Next: Short Right Arrow Above Left Arrow.

Use Cases

The Shamrock (☘) commonly appears in:

🌱 St. Patrick’s Day

Festive pages, event banners, and seasonal promotions.

🇮🇪 Irish themes

Heritage sites, cultural content, and Irish identity design.

🎉 Celebrations

Holiday content, party invites, and festive decorations.

🎨 Decorative UI

Ornamental accents, badges, and creative layouts.

🛠 CSS markers

Custom list bullets via ::before content.

📖 Symbol guides

Miscellaneous Symbols and HTML entity reference docs.

💡 Best Practices

Do

  • Use &#x2618; or &#9752; in HTML markup
  • Pair the symbol with descriptive text for accessibility
  • Use CSS content: "\2618" for reusable festive components
  • Test rendering across browsers and fonts
  • Remember the shamrock is a three-leaf clover symbol

Don’t

  • Use padded Unicode notation like U+02618—the correct value is U+2618
  • Confuse ☘ with the four-leaf clover emoji (U+1F340)
  • Expect a named HTML entity for U+2618
  • Put CSS escape \2618 in HTML text nodes
  • Rely on the symbol alone without context for screen readers

Key Takeaways

1

Three ways to render U+2618 in HTML and CSS

&#x2618; &#9752;
2

For CSS stylesheets, use \2618 in the content property

3

Unicode U+2618 — SHAMROCK (three-leaf clover)

4

No named entity—Miscellaneous Symbols character

❓ Frequently Asked Questions

Use &#x2618; (hex), &#9752; (decimal), or \2618 in CSS content. There is no named HTML entity. All three render ☘.
U+2618 (SHAMROCK). Miscellaneous Symbols (U+2600–U+26FF). Hex 2618, decimal 9752. A three-leaf clover associated with Ireland and St. Patrick’s Day.
No. ☘ (U+2618) is the shamrock—a three-leaf clover. A four-leaf clover is a different symbol, commonly shown as the emoji U+1F340.
For St. Patrick’s Day content, Irish-themed designs, cultural celebrations, festive pages, heritage websites, and decorative Irish symbolism.
Miscellaneous Symbols characters like U+2618 use numeric hex or decimal codes in HTML. Named entities cover common characters only; cultural symbols typically use numeric references.

Explore More HTML Entities!

Discover 1500+ HTML character references — symbols, Dingbats, and more.

All HTML Entities →

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