Exclamation mark in binary code

AnswerExclamation mark ! is 00100001 in binary — ASCII code 33.

012806413201608040211

How exclamation mark becomes 00100001

The character’s code is 33. Writing 33 as a sum of powers of two gives 32 + 1 = 33. Put a 1 under each place value used and a 0 everywhere else, and you get 00100001.

Binary (8-bit)00100001
Decimal (ASCII code)33
Hexadecimal21 (0x21)
Octal041
UnicodeU+0021
HTML entity!

Frequently asked questions

What is exclamation mark in binary?

Exclamation mark is 00100001 in 8-bit binary. That is ASCII and UTF-8 code 33, which is 32 + 1 = 33.