U+2014 · General Punctuation
Em dash —: how to type it
Copy — with one click, or type it with Alt + 0151 on Windows, Option + Shift + - on a Mac or hold - on an iPhone.
- WindowsAlt+0151 numeric keypad
- Mac⌥ Option+⇧ Shift+-
- WordCtrl+Alt+Num -
- iPhonehold - slide to —
- HTML
—or—
Every way to type —
Only methods that exist on that system are shown as shortcuts.
Windows Alt code
- Turn on Num Lock.
- Hold Alt and type the digits on the numeric keypad (not the top row).
- Let go of Alt.
Mac Option key
U.S. and ABC keyboard layouts. Hold the keys together.
Step-by-step guideMicrosoft Word shortcut
Type 2014, then press Alt + X (Word for Windows).
Google Docs menu
Insert › Special characters, then search “em dash”, or paste it from here.
iPhone and iPad long-press
Default English (US) keyboard. Hold the key until the menu opens.
Step-by-step guideAndroid symbol pages
Gboard keeps many common symbols on its symbol pages (tap ?123, then =\<). If it is not there, copy it here, or save it in Gboard’s Personal dictionary with a shortcut.
Linux Unicode input
GNOME and most GTK apps (IBus).
Chromebook Unicode input
Type the code after the underlined u appears.
How — is stored in UTF-8
3 bytes (24 bits) for 1 code point
Codes
For HTML, CSS, JavaScript, JSON, Python and URLs.
| HTML entity | — | |
|---|---|---|
| Unicode | U+2014 | |
| HTML decimal | — | |
| HTML hex | — | |
| CSS content | \2014 | |
| JavaScript | \u2014 | |
| JSON | \u2014 | |
| Python | \u2014 | |
| UTF-8 bytes | E2 80 94 | |
| UTF-16 | 2014 | |
| URL encoded | %E2%80%94 | |
| Python name | \N{EM DASH} | |
| LaTeX | --- |
From the Unicode Standard
Names, aliases and notes from the Unicode 13.0 names list.
- Unicode name EM DASH
- Category Dash punctuation (Pd)
- Block General Punctuation
- Note may be used in pairs to offset parenthetical text
Related symbols
Look-alikes named in the Unicode notes first, then neighbours in the same block.
| Symbol | Name | Code | Alt code |
|---|---|---|---|
| ― | Horizontal bar | U+2015 | – |
| – | En dash | U+2013 | Alt + 0150 |
| ‖ | Double vertical line | U+2016 | – |
| ‒ | Figure dash | U+2012 | – |
| ‗ | Double low line | U+2017 | – |
| ‑ | Non-breaking hyphen | U+2011 | – |
Questions
What is the Alt code for Em dash (—)?
Hold Alt and type 0151 on the numeric keypad, then let go of Alt.
How do I type — on a Mac?
Option + Shift + - on the U.S. or ABC keyboard layout.
What is the HTML code for —?
Use — or — (decimal) or — (hex).
Sources: Unicode Character Database 13.0 and Unicode emoji 13.0 (Unicode, Inc.); Alt codes computed from code pages 437 and 1252; Mac keys from the Apple U.S. keyboard layout. How this page is made.