Em dash
—
- Unicode
- U+2014
- Alt code
- Alt + 0151
- Mac
- Option + Shift + Hyphen
- HTML
- —
When to use it
The em dash marks a break in a sentence. It is the widest of the three dashes. Style guides differ on whether to put spaces around it.
How to type —
Windows
- Hold the Alt key and type 0151 on the numeric keypad, then release Alt. Num Lock must be on, and the number row above the letters will not work.
- In Word and Outlook, type 2014 and then press Alt + X. The code turns into —.
- On Windows 10 and 11, press the Windows key and the full stop key together to open the emoji panel, then switch to its symbols tab.
Mac
- Press Option + Shift + Hyphen. This is for the US keyboard layout; other layouts may place it elsewhere.
- Press Control + Command + Space to open the Character Viewer, search for "em dash", and double-click the result.
iPhone and Android
- On an iPhone or iPad, touch and hold the - key on the numbers and symbols keyboard, then slide your finger to — and let go.
- On Android the symbol keys differ between keyboards. Open the ?123 keyboard and try a long press on the same key, or copy the symbol from this page.
- If you use it often, save it as a text shortcut. On iPhone: Settings, General, Keyboard, Text Replacement. In Gboard: Settings, Dictionary, Personal dictionary.
Linux and Chromebook
- Press Ctrl + Shift + U, type 2014, then press Enter. This works in most Linux desktop apps and on Chromebooks.
Codes for —
| Unicode | U+2014 |
|---|---|
| HTML name | — |
| HTML decimal | — |
| HTML hex | — |
| CSS | \2014 (for the content property) |
| JavaScript | \u2014 |
| URL encoding | %E2%80%94 |
| UTF-8 bytes | E2 80 94 |
| Windows Alt code | Alt + 0151 |
Unicode details
The official Unicode name of this character is Em dash. Its code point is U+2014 (decimal 8212) and it belongs to the General Punctuation block.