U+0021
Exclamation Mark!
Exclamation Mark is a monochrome text character from the Unicode Basic Latin block, listed here under Basic Latin (ASCII). 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 "bang", "exclaim", "shout", "punctuation".
Quick facts
- Unicode
- U+0021
- Decimal
- 33
- Hex
- 0x0021
- Octal
- 0o41
Unicode identity
| Format | Value | Copy |
|---|---|---|
| Code pointOfficial Unicode notation | U+0021 | |
| Official nameUnicodeData.txt, Unicode 18.0.0 | EXCLAMATION MARK | |
| DecimalBase 10 | 33 | |
| HexadecimalBase 16 | 0x0021 | |
| OctalBase 8 | 0o41 | |
| BinaryBase 2 | 0000000000100001 | |
| General categoryPunctuation, other | Po | |
| Unicode blockU+0000–U+007F | Basic Latin | |
| Plane | Basic Multilingual Plane (BMP, Plane 0) |
HTML & CSS
| Format | Value | Copy |
|---|---|---|
| HTML entity (decimal) | ! | |
| HTML entity (hex) | ! | |
| CSS content escapeUse inside content: "…" | \0021 | |
| URL encodedPercent-encoded UTF-8 | ! |
Programming languages
| Format | Value | Copy |
|---|---|---|
| JavaScript / TypeScript | \u0021 | |
| JSONUTF-16 surrogate pairs | \u0021 | |
| Python | \u0021 | |
| Java / C# / Kotlin | \u0021 |
Byte encodings
| Format | Value | Copy |
|---|---|---|
| UTF-81 byte | 21 | |
| UTF-16 (BE) | 0021 | |
| UTF-32 (BE) | 00000021 |
How to type Exclamation Mark
Windows
Hold Alt and type +21 with the hex numeric keypad option enabled, or type 21 then press Alt+X in Word and most Office apps.
macOS
Enable the Unicode Hex Input keyboard, hold Option, and type 0021. Or open Character Viewer (Control+Command+Space) and search "Exclamation Mark".
Linux
Press Ctrl+Shift+U, type 21, 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, \0021 in CSS, and \u0021 in JavaScript.
Official Unicode reference
- Character name
- EXCLAMATION MARK
- Block
- Basic Latin (U+0000–U+007F)
- General category
- Po — Punctuation, other
Data from the Unicode Character Database, version 18.0.0. See the official code chart for the Basic Latin block: U0000.pdf (PDF, unicode.org).
Frequently asked questions
How do I copy the Exclamation Mark 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 Exclamation Mark?
Exclamation Mark is U+0021 (decimal 33, hexadecimal 0x0021, octal 0o41). It lives in the Basic Latin block (U+0000–U+007F) of the Basic Multilingual Plane (BMP, Plane 0).
What is the official Unicode name of Exclamation Mark?
The Unicode Standard (version 18.0.0) names this character "EXCLAMATION MARK". Its General_Category is Po (Punctuation, other).
What is the HTML code for Exclamation Mark?
Use ! or !. In CSS, use content: "\0021".
How do I type Exclamation Mark in code?
JavaScript: "\u0021". Python: "\u0021". JSON and Java: "\u0021". The UTF-8 byte sequence is 21.
Is Exclamation Mark an emoji?
No. Exclamation Mark 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.