The em dash is — (U+2014), the long dash used to set off a phrase inside a sentence. You can select and copy it straight from this page. To type it instead: on a Mac press Option + Shift + Hyphen; on Windows hold Alt and type 0151 on the numeric keypad with Num Lock on. In HTML it is — or —. It is longer than both the en dash (–) and the hyphen (-), which are different characters with different jobs.
Copy an em dash
The em dash on its own, ready to select and copy:
—
The two characters it is most often confused with, for contrast:
| Name | Character | Code point |
|---|---|---|
| Em dash | — |
U+2014 |
| En dash | – |
U+2013 |
| Hyphen | - |
U+002D |
Copying works from any of those cells. If you want the spaced form used in a lot of AI output, it is a space, an em dash, and a space: before — after. US publishing convention closes the dash up against the words instead — before—after — and both are correct as long as a document picks one.
Copy and paste is fine for one dash. If you are going to type them regularly, learn the keystroke below: pasting from a web page can also carry along invisible characters that the page used for line-break control.
How do you type an em dash on a keyboard?
There is no em dash key on any standard keyboard layout, which is the whole reason this page exists. Every platform hides it behind a modifier, an autocorrect rule, or a character picker.
| Where you are | Em dash (—) | Notes |
|---|---|---|
| macOS (any app) | Option + Shift + - | System-wide. Option + - alone gives an en dash |
| macOS Character Viewer | Control + Command + Space | Search "em dash", double-click to insert |
| Windows (any app) | Alt + 0151 | Numeric keypad only, Num Lock on |
| Windows emoji panel | Win + . | Symbols tab, general punctuation. No keypad needed |
| Windows Character Map | charmap.exe |
Advanced view, search "em dash", Copy |
| Microsoft Word | Ctrl + Alt + - (keypad minus) | Also needs a numeric keypad |
| Microsoft Word (Unicode) | Type 2014 then Alt + X |
Works with no keypad at all |
| Microsoft Word (autocorrect) | Type word--word then a space |
Converts on the following word |
| Google Docs | Insert → Special characters | No built-in keyboard shortcut |
| iOS / iPadOS | Long-press the - key | On the 123 symbol layer |
| Android (Gboard) | Long-press the - key | On the ?123 symbol layer |
| Linux (IBus) | Ctrl + Shift + U, then 2014 |
Then Enter or Space |
| Linux (Compose key) | Compose then --- |
Three hyphens |
| ChromeOS | Ctrl + Shift + U, then 2014 |
Then Enter |
| HTML | — or — |
— also valid |
CSS content |
"\2014" |
Trailing space ends the escape |
| JavaScript / Python | "\u2014" |
Python also accepts "\N{EM DASH}" |
| LaTeX | --- |
-- gives an en dash |
Two of those deserve a warning. The Windows Alt + 0151 code and Word's Ctrl + Alt + - both require a real numeric keypad, not the number row along the top. The Ctrl + Shift + U sequence on Linux is provided by the input method, normally IBus, so it works in GTK applications and may do nothing under a different input method or in a bare terminal.
How do I type an em dash on a Mac?
Press Option + Shift + -. The hyphen key is the one to the right of the zero. That single shortcut works everywhere in macOS — Mail, Safari, Slack, Xcode, Pages — because it is part of the keyboard layout rather than an application feature.
The related shortcuts on the same key:
- Option + - produces an en dash (–), the one you want for ranges and dates.
- Shift + - produces an underscore.
- - on its own is the ordinary hyphen.
macOS also has a smart dashes substitution that turns two hyphens into an em dash as you type. It lives in System Settings → Keyboard → Text Input → Edit, and it applies only in apps that opt into the system text engine, such as TextEdit, Notes, Pages, and Mail. It does nothing in most code editors and browsers, which is usually what you want.
If you would rather not memorise anything, the Character Viewer (Control + Command + Space) has a search box: type "em dash" and double-click the result.
How do I type an em dash on Windows?
Hold Alt, type 0151 on the numeric keypad, and release Alt. That is the Alt code for the em dash. Three conditions have to hold or nothing appears:
- The digits must come from the numeric keypad, not the number row.
- Num Lock must be on.
- The leading zero matters.
Alt+0151is the em dash;Alt+151is a different character entirely (ù), because codes without a leading zero use the old OEM code page.
The matching en dash code is Alt + 0150.
No numeric keypad? Most laptops do not have one, and this is where the Alt code advice usually stops being useful. Three options that need no keypad:
- The emoji panel. Press Win + . (or Win + ;), switch to the symbols tab, and open general punctuation. The em dash is in there and inserts on click.
- Character Map. Press Win, type
charmap, open it, tick Advanced view, search for "em dash", then Select and Copy. - Word's Unicode trick. In Word, type
2014and press Alt + X. The digits turn into the character in place. This is the most reliable keyboard-only route on a laptop, and it also works in Outlook's Word-based editor.
Some laptops expose a hidden numeric keypad on the letter keys behind an Fn layer, in which case the Alt code works if you hold Fn as well. It varies by manufacturer, so test it before relying on it.
How do I get an em dash in Microsoft Word?
Word has more routes to an em dash than anything else on this list, and one of them fires whether you asked for it or not.
Autocorrect, the one most people use by accident. With AutoFormat As You Type enabled — it is on by default — Word rewrites hyphens once you finish the next word:
| What you type | What Word produces |
|---|---|
word--word then a space |
word—word with an em dash |
word - word then a space |
word – word with an en dash |
Note that the spaced single hyphen gives you an en dash, not an em dash. This is the single most common reason a document ends up with a mix of both marks. The rule lives under File → Options → Proofing → AutoCorrect Options → AutoFormat As You Type, as "Hyphens (--) with dash (—)", and you can switch it off there.
The keyboard shortcut is Ctrl + Alt + -, using the minus key on the numeric keypad. Ctrl + - on the keypad gives an en dash. Both need the keypad.
The Unicode route works on any keyboard: type 2014 and press Alt + X. Pressing Alt + X again with the cursor after an existing em dash reverses the conversion and shows you the code point, which is a quick way to check which dash a document actually contains.
Insert → Symbol → More Symbols → Special Characters lists Em Dash and En Dash by name, and lets you assign your own shortcut key from the same dialog.
How do I get an em dash in Google Docs?
Google Docs has no built-in keyboard shortcut for the em dash, and unlike Word it does not convert a double hyphen for you by default. There are three practical ways in.
Insert → Special characters. Type "em dash" into the search box, or draw a long horizontal line in the sketch box, and click the character. Fine once, tedious repeatedly.
Set up your own substitution. Tools → Preferences → Substitutions, then add a rule with -- in the Replace column and an em dash pasted into the With column. Make sure Automatic substitution is ticked. From then on Docs behaves like Word. This is the setting worth spending sixty seconds on if you write in Docs daily.
Paste it. The character at the top of this page, or the OS-level shortcut, both work in Docs — Option + Shift + - on a Mac produces an em dash in Docs because macOS handles it before Docs ever sees the keystroke.
On the Windows side there is no equivalent OS-level shortcut, so Docs users on a laptop generally end up using the substitution rule or the emoji panel.
How do you type an em dash on a phone?
iPhone and iPad. Tap 123 to reach the number and symbol layer, then press and hold the hyphen key. A small popup appears with the hyphen, en dash, em dash, and bullet. Slide onto the longest dash and release.
Android with Gboard. Tap ?123, then press and hold the hyphen. The same popup logic applies, though the exact set of alternatives depends on the keyboard app and the language layout. Samsung Keyboard and SwiftKey both offer it in the same place.
If long-pressing is too slow, both platforms support a text replacement rule: on iOS it is Settings → General → Keyboard → Text Replacement, where you can map a shortcut such as -- to an em dash. Android has the same feature under the keyboard's personal dictionary.
Note that iOS also applies smart dash substitution in some apps, which converts a double hyphen automatically. It is inconsistent across apps, so do not depend on it.
What is the Unicode code point for an em dash?
The em dash is U+2014 EM DASH. Everything a program needs to know about it:
| Representation | Value |
|---|---|
| Unicode code point | U+2014 |
| Decimal | 8212 |
| UTF-8 bytes | E2 80 94 |
| UTF-16 | 2014 (single unit) |
| HTML named entity | — |
| HTML numeric entity | — or — |
| CSS escape | \2014 |
| JavaScript / JSON | \u2014 |
| Python | \u2014 or \N{EM DASH} |
| Windows-1252 byte | 0x97 |
That last row explains a common corruption. The em dash exists at byte 0x97 in Windows-1252 but not in ISO-8859-1, so text mislabelled between the two turns em dashes into a control character or the familiar — mojibake. If your dashes have arrived as three garbled characters, the file is UTF-8 being read as a single-byte encoding, and the fix is the declared encoding rather than the punctuation.
In a terminal or a script, matching it in a regular expression is \u2014 in most flavours; the three-dash family together is [-\u2013\u2014].
Em dash, en dash, or hyphen: which one do you want?
At a glance, then the detail lives elsewhere:
| Mark | Character | Code point | Use it for | Example |
|---|---|---|---|---|
| Hyphen | - |
U+002D | Joining words | well-known |
| En dash | – |
U+2013 | Ranges and dates | 2020–2024 |
| Em dash | — |
U+2014 | Breaks in a sentence | It worked — eventually |
The one that catches people out: dates and ranges take an en dash, not an em dash. June–September, pages 20–24, 9am–5pm. Reach for the em dash only when you are interrupting a sentence.
The "long dash" and "em dash" are the same thing — em is a typesetting measure, the width of a capital M, and en is the width of a capital N. Neither is a hyphen with extra length; all three are separate characters that sort, search, and parse differently.
For the full treatment of when each mark is correct, spacing conventions, and the cases where a hyphen genuinely will not do, see em dash vs en dash vs hyphen.
When the em dash causes problems
The em dash is a typographic character living in a world of plain-text systems, and it does not always survive the trip.
- Code and shell commands. A
--flagthat autocorrect turned into—flagis not a flag. The error message will complain about an unrecognised option and say nothing about dashes. - CSV and data imports. The character itself imports fine as UTF-8, but a file saved as Windows-1252 and read as UTF-8 (or the reverse) turns every em dash into mojibake across every row.
- Search and find-and-replace. Exact-match search treats
—,–and-as three different characters, so a query written with one will not find text written with another. - Applicant tracking systems and résumé parsers. Older parsers handle non-ASCII punctuation unevenly, and a mangled character in a job title or a date range is a bad place to find out. Plain hyphens are the safer choice in a CV.
- Plain-text email, SMS, and legacy forms. Anything that downgrades to ASCII may drop the character or replace it with a question mark.
- Filenames and URLs. Only the ASCII hyphen is safe.
There is also the stylistic reason people strip them: models produce em dashes far more consistently than human writers do, which is why the mark reads as an AI tell. That pattern is covered in why ChatGPT uses so many em dashes.
When you need them gone, Remove Em Dashes replaces every em dash with the substitute you choose — a comma, a semicolon, a plain hyphen, or nothing — and reports how many it changed, so you can check the count against what you expected rather than trusting a silent find-and-replace. For a document carrying smart quotes and non-breaking spaces as well, AI Text Cleaner handles the whole set in one pass.
Frequently asked questions
How do I type an em dash on a Mac?
Press Option + Shift + Hyphen. It works system-wide in every macOS application because it is part of the keyboard layout. Option + Hyphen without Shift gives an en dash (–) instead, which is the one you want for ranges and dates.
What is the Alt code for an em dash?
Alt + 0151. Hold Alt, type 0151 on the numeric keypad with Num Lock on, then release Alt. The leading zero is required — Alt + 151 without it produces a different character. The en dash is Alt + 0150.
How do I type an em dash without a numeric keypad?
On Windows, press Win + . to open the emoji panel and pick the em dash from the symbols tab, or open Character Map and copy it. In Microsoft Word, type 2014 and press Alt + X, which converts the digits into the character in place and needs no keypad at all.
What is the Unicode for an em dash?
U+2014 EM DASH, decimal 8212, encoded in UTF-8 as the three bytes E2 80 94. In HTML write — or —; in JavaScript, JSON, or Python write \u2014.
How do I get an em dash in Google Docs?
Google Docs has no built-in shortcut. Use Insert > Special characters and search for 'em dash', or create your own rule under Tools > Preferences > Substitutions mapping -- to an em dash. On a Mac, the system shortcut Option + Shift + Hyphen also works inside Docs.
Is an em dash the same as a long hyphen?
No. They look similar but are separate Unicode characters. A hyphen is U+002D and joins words; an em dash is U+2014 and breaks a sentence. Search, sorting, and parsing treat them as unrelated, so a hyphen will never match text written with an em dash.
Should I use an em dash between dates?
No — date and number ranges take an en dash (–, U+2013): June–September, 2020–2024, pages 20–24. The em dash is for interrupting a sentence. If you write out the word 'from', use 'to' rather than a dash: from 2020 to 2024.