| Symbol Name | Keycap: 4 |
| Unicode Version | 0.6 |
| Unicode | U+0034 |
| Unicode block | |
| General category | Emoji (Nd) |
| CSS Code | \0034 |
| Hex Code | 0x0034 |
| HTML Code | 4️⃣ |
| LaTeX | LuaLaTeX/XeLaTeX: literal grapheme cluster or \usepackage{emoji} (engine-dependent) |
| Symbol | 4️⃣ |
| URL encode (UTF-8 percent) | %34%EF%B8%8F%E2%83%A3 |
| Spoken / screen reader name | Keycap: 4 |
| UTF-8 | 34 EF B8 8F E2 83 A3 |
| UTF-16 | 0034 FE0F 20E3 |
| UTF-32 | 00000034 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: 4 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: 4".
Emoji picker (IBus, GNOME Characters) or paste from this page.
Emoji keyboard → Symbols, or search "keycap: 4".
Emoji keyboard → Symbols; search "keycap: 4".
1span.keycap-4::before { content: "\0034"; } /* prefer inline grapheme for ZWJ */1<span>4️⃣</span>Keycap: 4 symbol's representation in different programming languages can be found in the table below:
| Language | Representation |
|---|---|
| JavaScript / TypeScript | String.fromCodePoint(0x34, 0xFE0F, 0x20E3) |
| Python | '\N{KEYCAP: 4}' |
| Rust | '\u{0034}' |
| Swift | "\u{0034}" |
| Go | string(rune(0x0034)) |
| Ruby | "\u{0034}" |