| Symbol Name | Exclamation Mark |
| Unicode Version | 1.1 |
| Unicode | U+0021 |
| Unicode block | |
| General category | Other Punctuation (Po) |
| CSS Code | \0021 |
| Hex Code | 0x0021 |
| HTML Code | ! |
| LaTeX | ! |
| Symbol | ! |
| URL encode (UTF-8 percent) | %21 |
| Spoken / screen reader name | Exclamation Mark |
| UTF-8 | 21 |
| UTF-16 | 0021 |
| UTF-32 | 00000021 |
1\documentclass{article}2\usepackage{pifont}3!4\end{document}You can type the exclamation mark symbol on most modern devices with the help of following methods:
Alt + 33 on Windows (numeric keypad with Num Lock), or insert via Character Map.
Edit → Emoji & Symbols, search "exclamation mark", or use Unicode Hex Input with 0021.
Ctrl + Shift + U, type 0021, then Enter (layout-dependent).
Paste from this page, use text replacement, or pick from the symbol keyboard.
Paste from this page or use a keyboard with punctuation support.
1span.exclamation-mark::before { content: "\0021"; }1<span>!</span>Exclamation Mark symbol's representation in different programming languages can be found in the table below:
| Language | Representation |
|---|---|
| JavaScript / TypeScript | '\u0021' or String.fromCodePoint(33) |
| Python | '\N{EXCLAMATION MARK}' or chr(33) |
| Rust | '\u{0021}' |
| C / C++ | UTF-8 source or wchar_t with U+0021 |
| Go | string(rune(0x0021)) |
| Ruby | "\u{0021}" |