Language

Exclamation Mark (!)

U+0021Basic Latin

Also known as exclamation pointbang

The exclamation mark ! ends a sentence that expresses surprise, emphasis, or a strong command. In American English it is often called the exclamation point; in mathematics, n! means the factorial of n.

Symbol codes

Unicode
U+0021
Alt Code
Alt+33
HTML Code
!
CSS Code
\21
HTML Entity
!
HEX Code
!

Other exclamation marks

About Exclamation Mark

The exclamation mark ! ends a sentence that expresses surprise, emphasis, or a strong command. In American English it is often called the exclamation point; in mathematics, n! means the factorial of n.

! is encoded in Unicode as code point U+0021 (decimal 33). Its official Unicode name is EXCLAMATION MARK.

It belongs to the Basic Latin block (U+0000–U+007F), its General Category is Other Punctuation (Po), and it was added in Unicode 1.1, released in 1993. Its script value is Common: it is shared across writing systems rather than belonging to one.

Common uses

  • Ending an exclamation, as in Watch out!
  • Factorials in mathematics, as in 5! = 120
  • “Not” in many programming languages, as in !=, which means “not equal”

Examples

Exclamation
We did it!
Factorial
4! = 24

Sources: Unicode Character Database 18.0.0, the HTML Standard’s list of named character references, and Unicode’s code page mappings.

How to type or insert Exclamation Mark

Windows
Press Shift+1 on U.S. and U.K. keyboard layouts.
macOS
Press Shift+1 on U.S. and British layouts.
iPhone and iPad
Tap 123; ! is in the third row.
Android
Tap ?123; ! is on the first page of the symbols keyboard.
Any device
Select Copy symbol, then paste with Ctrl+V, or ⌘+V on a Mac.
Windows Alt code
With Num Lock on, hold Alt, type 33 on the numeric keypad, then release Alt.
Microsoft Word
Type 0021, then press Alt+X.
macOS Character Viewer
Press Control+⌘+Space and search for “exclamation mark”.
Linux (GTK and IBus)
Press Ctrl+Shift+U, type 0021, then press Space.
HTML
! or !. In a UTF-8 page you can also paste the character itself.
CSS
content: "\21"; in a ::before or ::after rule.
JavaScript
"\u0021"

Technical properties

Unicode 18.0.0

Code point
U+0021
Decimal
33
Unicode name
EXCLAMATION MARK
Block
Basic Latin · U+0000–U+007F
General category
Other Punctuation (Po)
Script
Common
Introduced
Unicode 1.1
JavaScript
"\u0021"

Common questions about Exclamation Mark

What is the Exclamation Mark?

The exclamation mark ! ends a sentence that expresses surprise, emphasis, or a strong command. In American English it is often called the exclamation point; in mathematics, n! means the factorial of n. In Unicode it is U+0021, officially named EXCLAMATION MARK. It is also known as exclamation point and bang.

Is it an exclamation mark or an exclamation point?

Both names are correct. “Exclamation point” is more common in American English and “exclamation mark” in British English.

What does ! mean in math?

It means factorial: n! is the product of every whole number from 1 to n, so 5! = 5 × 4 × 3 × 2 × 1 = 120.

How do I copy and paste the Exclamation Mark?

Select Copy symbol at the top of this page, then paste with Ctrl+V on Windows and Linux or ⌘+V on a Mac. On a phone, tap Copy symbol, then touch and hold where you want it and choose Paste. ! pastes as ordinary text, so it works in documents, messages, and code.

How do I type the Exclamation Mark on Windows?

Turn on Num Lock, hold Alt, type 33 on the numeric keypad, then release Alt. In Microsoft Word, type 0021 and press Alt+X to turn the code into !. In any app, open Character Map from the Start menu, search for “exclamation mark”, then select and copy the character.

How do I type the Exclamation Mark on a Mac?

Press Control+⌘+Space to open the Character Viewer, search for “exclamation mark”, and double-click the result to insert it.

How do I type the Exclamation Mark on an iPhone or Android phone?

The simplest way is to copy it from this page and paste it where you need it. If you use it often, save it as a text shortcut: on iPhone, go to Settings > General > Keyboard > Text Replacement; with Gboard on Android, go to Gboard settings > Dictionary > Personal dictionary.

Can I use the Exclamation Mark in Word, Google Docs, and social media?

Yes. ! is a standard Unicode character, so you can paste it into Microsoft Word, Google Docs, emails, and posts or bios on Instagram, X, Facebook, and TikTok. In Google Docs you can also choose Insert > Special characters and search for “exclamation mark”. In Word, choose Insert > Symbol > More Symbols, set from to Unicode (hex), and enter 0021 as the character code.

Is the Exclamation Mark an emoji?

No. ! is a text symbol, not an emoji. It takes the color and size of the surrounding text, and its exact shape depends on the font.

Why does the Exclamation Mark show as a box or question mark?

An empty box or a question mark means the font on that device has no glyph for !. The character is still there: it appears correctly wherever a font covers Unicode’s Basic Latin block, and free font families such as Google Noto cover nearly all of Unicode.

What are the HTML and CSS codes for the Exclamation Mark?

In HTML, write ! (decimal) or ! (hexadecimal), or the named entity !. In CSS, use content: "\21"; in a ::before or ::after rule, and in JavaScript "\u0021". See all HTML codes.