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