| Symbol Name | Shamrock |
| Unicode Version | 1.0 |
| Unicode | U+2618 |
| Unicode block | |
| General category | Emoji (So) |
| CSS Code | \2618 |
| Hex Code | 0x2618 |
| HTML Code | ☘️ |
| LaTeX | LuaLaTeX/XeLaTeX: literal grapheme cluster or \usepackage{emoji} (engine-dependent) |
| Symbol | ☘️ |
| URL encode (UTF-8 percent) | %E2%98%98%EF%B8%8F |
| Spoken / screen reader name | Shamrock |
| UTF-8 | E2 98 98 EF B8 8F |
| UTF-16 | 2618 FE0F |
| UTF-32 | 00002618 0000FE0F |
1\documentclass{article}2\usepackage{pifont}3LuaLaTeX/XeLaTeX: literal grapheme cluster or \usepackage{emoji} (engine-dependent)4\end{document}You can type the shamrock symbol on most modern devices with the help of following methods:
Windows: Win + . ; macOS: Ctrl + Cmd + Space; mobile: Animals & Nature in emoji keyboard.
Edit → Emoji & Symbols, search "shamrock".
Emoji picker (IBus, GNOME Characters) or paste from this page.
Emoji keyboard → Animals & Nature, or search "shamrock".
Emoji keyboard → Animals; search "shamrock".
1span.shamrock::before { content: "\2618"; } /* prefer inline grapheme for ZWJ */1<span>☘️</span>Shamrock symbol's representation in different programming languages can be found in the table below:
| Language | Representation |
|---|---|
| JavaScript / TypeScript | String.fromCodePoint(0x2618, 0xFE0F) |
| Python | '\N{SHAMROCK}' |
| Rust | '\u{2618}' |
| Swift | "\u{2618}" |
| Go | string(rune(0x2618)) |
| Ruby | "\u{2618}" |