Hashtag and Number Sign (#)
U+0023Basic Latin
Also known as hashhashtagoctothorpepound keyhash sign
The number sign # is the symbol of hashtags on social media. It is also called the hash, the pound sign in the United States, and the octothorpe, and it marks numbers, as in #1, and comments in many programming languages.
Symbol codes
- Unicode
U+0023- Alt Code
Alt+35- HTML Code
#- CSS Code
\23- HTML Entity
#- HEX Code
#
Symbols that look like #
- Music Sharp Sign: The music sharp sign, which raises a note. Its strokes slant differently; use # for hashtags.
- Numero Sign: The numero sign, an abbreviation of “number” used in many languages.
- Small Number Sign: A small compatibility form of the number sign. Hashtags need the ordinary #.
About Number Sign
The number sign # is the symbol of hashtags on social media. It is also called the hash, the pound sign in the United States, and the octothorpe, and it marks numbers, as in #1, and comments in many programming languages.
# is encoded in Unicode as code point U+0023 (decimal 35). Its official Unicode name is NUMBER SIGN.
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
- Starting a hashtag, as in #travel
- Writing “number” before a figure, as in Apartment #4
- Marking comments and headings in code and Markdown
- The # key on phone keypads
Examples
- Hashtag
- #WorldCup
- Number
- Ticket #42
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 Number Sign
- Windows
- Press Shift+3 on a U.S. keyboard layout. On a U.K. layout, # has its own key next to Enter.
- macOS
- Press Shift+3 on a U.S. layout. On a British layout, press Option+3, because Shift+3 types £.
- iPhone and iPad
- Tap 123, then #+=; # is in the top 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 35 on the numeric keypad, then release Alt.
- Microsoft Word
- Type
0023, then press Alt+X. - macOS Character Viewer
- Press Control+⌘+Space and search for “number sign”.
- Linux (GTK and IBus)
- Press Ctrl+Shift+U, type
0023, then press Space. - HTML
#or#. In a UTF-8 page you can also paste the character itself.- CSS
content: "\23";in a::beforeor::afterrule.- JavaScript
"\u0023"
Technical properties
Unicode 18.0.0
- Code point
- U+0023
- Decimal
- 35
- Unicode name
- NUMBER SIGN
- Block
- Basic Latin · U+0000–U+007F
- General category
- Other Punctuation (Po)
- Script
- Common
- Introduced
- Unicode 1.1
- JavaScript
- "\u0023"
Common questions about Number Sign
What is the Number Sign?
The number sign # is the symbol of hashtags on social media. It is also called the hash, the pound sign in the United States, and the octothorpe, and it marks numbers, as in #1, and comments in many programming languages. In Unicode it is U+0023, officially named NUMBER SIGN. It is also known as hash, hashtag, octothorpe, and pound key.
Is # called a pound sign or a hashtag?
Both, depending on where you are. In the United States it is often called the pound sign, in the United Kingdom the hash, and on social media a hashtag is a word that starts with #. The British pound sterling sign is a different character, £.
Can I use the sharp sign ♯ for a hashtag?
No. Social networks recognize hashtags only when they start with the number sign #. ♯ is the music sharp sign, a different character.
How do I type # on a British keyboard?
On a U.K. Windows keyboard, press the # key next to Enter. On a Mac with a British layout, press Option+3.
How do I copy and paste the Number Sign?
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 Number Sign on Windows?
Turn on Num Lock, hold Alt, type 35 on the numeric keypad, then release Alt. In Microsoft Word, type 0023 and press Alt+X to turn the code into #. In any app, open Character Map from the Start menu, search for “number sign”, then select and copy the character.
How do I type the Number Sign on a Mac?
Press Control+⌘+Space to open the Character Viewer, search for “number sign”, and double-click the result to insert it.
How do I type the Number Sign 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 Number Sign 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 “number sign”. In Word, choose Insert > Symbol > More Symbols, set from to Unicode (hex), and enter 0023 as the character code.
Is the Number Sign 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 Number Sign 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 Number Sign?
In HTML, write # (decimal) or # (hexadecimal), or the named entity #. In CSS, use content: "\23"; in a ::before or ::after rule, and in JavaScript "\u0023". See all HTML codes.