ASCII code for exclamation mark
33
Exclamation mark — !
| Decimal | 33 |
| Hexadecimal | 0x21 |
| Octal | 0041 |
| Binary | 00100001 |
| HTML entity | ! |
What it is
Exclamation mark is one of the 95 printable ASCII characters, the set every text encoding in common use still agrees on. UTF-8 encodes it as the single byte 33, which is why ASCII text is also valid UTF-8.
The full entry
ASCII 33 in full — the code point page, with what sits either side of it and how the character is encoded elsewhere.
Frequently asked questions
What is the ASCII code for exclamation mark?
The ASCII code for exclamation mark is 33 in decimal, 0x21 in hexadecimal and 0041 in octal.
What is exclamation mark in binary?
00100001 — eight bits, though ASCII only defines seven, so the top bit is always zero.
Is exclamation mark a printable character?
Yes. Exclamation mark is in the printable range, codes 32 to 126, which is everything ASCII can put on a screen.
Other characters
- ASCII code for double quote — 34
- ASCII code for hash — 35
- ASCII code for dollar sign — 36
- ASCII code for percent sign — 37
- ASCII code for ampersand — 38
- ASCII code for apostrophe — 39
- ASCII code for left parenthesis — 40
- ASCII code for right parenthesis — 41
- ASCII code for asterisk — 42
- ASCII code for plus sign — 43
- ASCII code for comma — 44
- ASCII code for hyphen — 45
Every character by name · The ASCII table · Text to binary converter