Skip to content
ASCII World
!

Exclamation mark

PrintableASCII 33 | Hex 0x21 | U+0021
ASCII 33 marks emphasis in written text and doubles as a logical NOT operator in C, Java, JavaScript, and most languages derived from them. In Unix shells, ! triggers history expansion, which can cause unexpected behavior in scripts if left unquoted. URL encoding represents it as %21. Some older email systems used !! paths (bang paths) for routing before DNS became standard in the late 1980s.

ASCII Code

Decimal
33
Hexadecimal
0x21
Octal
41
Binary
0010 0001
URL Escape
%21

Unicode

Code Point
U+0021
Escape
\u0021
UTF-8 Hex
0x21
UTF-8 Binary
00100001
UTF-16
0x0021
UTF-32
0x00000021

HTML Entities

Numeric
!
Hex
!
Named
!

How to Type

Windows Alt CodeAlt + 33
HTML Entity
!
Unicode InputU+0021

Source Code Representations

C / Java
"\u0021"
CSS
\0021
JavaScript
"\u0021"
Perl
\x{0021}
Python 2
u"\u0021"
Python 3
\u0021
Ruby
\u{0021}

Frequently Asked Questions

What is ASCII code 33?
ASCII code 33 represents the Exclamation mark character. In hexadecimal it is 0x21, in binary 0010 0001, and in octal 41. It is a printable character that appears as "!" in text.
How do I type ASCII 33 on a keyboard?
On Windows, hold Alt and type 33 on the numeric keypad. On Mac, you can use the Character Viewer (Edit > Emoji & Symbols). In HTML, use the entity ! or !.