Hyphen and Minus Key (-)
U+002DHYPHEN-MINUSBasic Latin
Also known as keyboard minushyphen symbol
The hyphen-minus - is the keyboard character that serves as both a hyphen, as in well-known, and a minus sign, as in 10 - 3. Typeset text uses separate characters for the true minus sign and for dashes.
Symbol codes
- Unicode
U+002D- Alt Code
Alt+45- HTML Code
-- CSS Code
\2D- HEX Code
-
Similar symbols
- Hyphen: The true hyphen.
- Minus Sign: The minus sign, the correct character for subtraction in typeset math.
- En Dash: The en dash, for ranges such as 1–10.
- Em Dash: The em dash, for breaks in a sentence.
About Hyphen
The hyphen-minus - is the keyboard character that serves as both a hyphen, as in well-known, and a minus sign, as in 10 - 3. Typeset text uses separate characters for the true minus sign and for dashes.
- is encoded in Unicode as code point U+002D (decimal 45). Its official Unicode name is HYPHEN-MINUS.
It belongs to the Basic Latin block (U+0000–U+007F), its General Category is Dash Punctuation (Pd), 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.
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 Hyphen
- Windows
- Press the - key right of 0 on U.S. and U.K. keyboard layouts, or - on the numeric keypad.
- macOS
- Press the - key right of 0 on U.S. and U.K. keyboard layouts, or - on the numeric keypad.
- 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 45 on the numeric keypad, then release Alt.
- Microsoft Word
- Type
002D, then press Alt+X. - macOS Character Viewer
- Press Control+⌘+Space and search for “hyphen-minus”.
- Linux (GTK and IBus)
- Press Ctrl+Shift+U, type
002d, then press Space. - HTML
-. In a UTF-8 page you can also paste the character itself.- CSS
content: "\2D";in a::beforeor::afterrule.- JavaScript
"\u002D"
Technical properties
Unicode 18.0.0
- Code point
- U+002D
- Decimal
- 45
- Unicode name
- HYPHEN-MINUS
- Block
- Basic Latin · U+0000–U+007F
- General category
- Dash Punctuation (Pd)
- Script
- Common
- Introduced
- Unicode 1.1
- JavaScript
- "\u002D"
Common questions about Hyphen
What is the Hyphen symbol?
The hyphen-minus - is the keyboard character that serves as both a hyphen, as in well-known, and a minus sign, as in 10 - 3. Typeset text uses separate characters for the true minus sign and for dashes. In Unicode it is U+002D, officially named HYPHEN-MINUS. It is also known as keyboard minus and hyphen symbol.
How do I copy and paste the Hyphen symbol?
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 Hyphen symbol on Windows?
Turn on Num Lock, hold Alt, type 45 on the numeric keypad, then release Alt. In Microsoft Word, type 002D and press Alt+X to turn the code into -. In any app, open Character Map from the Start menu, search for “hyphen-minus”, then select and copy the character.
How do I type the Hyphen symbol on a Mac?
Press Control+⌘+Space to open the Character Viewer, search for “hyphen-minus”, and double-click the result to insert it.
How do I type the Hyphen symbol 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 Hyphen symbol 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 “hyphen-minus”. In Word, choose Insert > Symbol > More Symbols, set from to Unicode (hex), and enter 002D as the character code.
Is the Hyphen symbol 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 Hyphen symbol 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 Hyphen symbol?
In HTML, write - (decimal) or - (hexadecimal). In CSS, use content: "\2D"; in a ::before or ::after rule, and in JavaScript "\u002D". See all HTML codes.