Copy it, then paste with Ctrl + V (Cmd + V on Mac).
Quick answer
| Method | How |
|---|---|
| Copy and paste | Use the copy button above |
| Windows | Alt + 0151 |
| Mac | Option + Shift + - |
| Microsoft Word | Type 2014, then press Alt + X |
| Chromebook and Linux | Ctrl + Shift + U, type 2014, press Enter |
| HTML | — or — |
| CSS | \2014 |
| JavaScript | \u2014 |
| Unicode | U+2014 (Em Dash) |
How to type the Em Dash on Windows
Hold Alt and type 0151 on the numeric keypad (Num Lock on), then release Alt.
No numeric keypad? On a laptop, use Win + . or open Character Map (search for charmap in Start).
In Microsoft Word, type 2014 and then press Alt + X to turn the code into —.
How to type the Em Dash on a Mac
Press Option + Shift + -.
On a Chromebook or Linux
Press Ctrl + Shift + U, type 2014, then press Enter or Space.
On iPhone and Android
Switch to the symbols keyboard (123 then #+= on iPhone, ?123 then =\< on Android). If it is not there, copy it from this page.
In Google Docs
Go to Insert > Special characters and search for "em dash".
Don't confuse it with
– (en dash) and - (hyphen).
About this character
A long dash used to set off a phrase in a sentence.
Related characters
Frequently asked questions
What is the Alt code for —?
On Windows, hold Alt and type 0151 on the numeric keypad.
How do I type — on a Mac?
Press Option + Shift + -.
What is the HTML code for —?
Use — or — in HTML.