U+21EA
Caps lock⇪
Caps lock is a monochrome text character from the Unicode Arrows block, listed here under Technical & UI and Keyboard Keys. Copy it with one click, or use the hex, octal, decimal and HTML entity codes below to embed it in web pages, code, and documents. It is often searched for as "key".
Quick facts
- Unicode
- U+21EA
- Decimal
- 8682
- Hex
- 0x21EA
- Octal
- 0o20752
Unicode identity
| Format | Value | Copy |
|---|---|---|
| Code pointOfficial Unicode notation | U+21EA | |
| Official nameUnicodeData.txt, Unicode 18.0.0 | UPWARDS WHITE ARROW FROM BAR | |
| Unicode 1.0 nameLegacy alias | WHITE UP ARROW FROM BAR | |
| DecimalBase 10 | 8682 | |
| HexadecimalBase 16 | 0x21EA | |
| OctalBase 8 | 0o20752 | |
| BinaryBase 2 | 0010000111101010 | |
| General categorySymbol, other | So | |
| Unicode blockU+2190–U+21FF | Arrows | |
| Plane | Basic Multilingual Plane (BMP, Plane 0) |
HTML & CSS
| Format | Value | Copy |
|---|---|---|
| HTML entity (decimal) | ⇪ | |
| HTML entity (hex) | ⇪ | |
| CSS content escapeUse inside content: "…" | \21EA | |
| URL encodedPercent-encoded UTF-8 | %E2%87%AA |
Programming languages
| Format | Value | Copy |
|---|---|---|
| JavaScript / TypeScript | \u21EA | |
| JSONUTF-16 surrogate pairs | \u21EA | |
| Python | \u21EA | |
| Java / C# / Kotlin | \u21EA |
Byte encodings
| Format | Value | Copy |
|---|---|---|
| UTF-83 bytes | E2 87 AA | |
| UTF-16 (BE) | 21EA | |
| UTF-32 (BE) | 000021EA |
How to type Caps lock
Windows
Hold Alt and type +21EA with the hex numeric keypad option enabled, or type 21EA then press Alt+X in Word and most Office apps.
macOS
Enable the Unicode Hex Input keyboard, hold Option, and type 21EA. Or open Character Viewer (Control+Command+Space) and search "Caps lock".
Linux
Press Ctrl+Shift+U, type 21ea, then press Space or Enter in GTK apps. IBus and most terminals support the same sequence.
HTML, CSS & code
Paste the character directly, or use the escapes above: ⇪ in HTML, \21EA in CSS, and \u21EA in JavaScript.
Official Unicode reference
- Character name
- UPWARDS WHITE ARROW FROM BAR
- Unicode 1.0 name
- WHITE UP ARROW FROM BAR
- Block
- Arrows (U+2190–U+21FF)
- General category
- So — Symbol, other
Data from the Unicode Character Database, version 18.0.0. See the official code chart for the Arrows block: U2190.pdf (PDF, unicode.org).
Frequently asked questions
How do I copy the Caps lock symbol?
Click the Copy button at the top of this page, or select ⇪ and press Ctrl+C (Cmd+C on Mac). It is plain Unicode text, so it pastes into documents, chats, code, and design tools.
What is the Unicode code point for Caps lock?
Caps lock is U+21EA (decimal 8682, hexadecimal 0x21EA, octal 0o20752). It lives in the Arrows block (U+2190–U+21FF) of the Basic Multilingual Plane (BMP, Plane 0).
What is the official Unicode name of Caps lock?
The Unicode Standard (version 18.0.0) names this character "UPWARDS WHITE ARROW FROM BAR"; its Unicode 1.0 name was "WHITE UP ARROW FROM BAR". Its General_Category is So (Symbol, other).
What is the HTML code for Caps lock?
Use ⇪ or ⇪. In CSS, use content: "\21EA".
How do I type Caps lock in code?
JavaScript: "\u21EA". Python: "\u21EA". JSON and Java: "\u21EA". The UTF-8 byte sequence is E2 87 AA.
Is Caps lock an emoji?
No. Caps lock is a text symbol and renders as a monochrome glyph in the current font. Some platforms may offer an emoji variant when U+FE0F is appended.