Home / Guides

How to Type an Em Dash (—): Shortcuts and Copy-Paste

Published 2026-10-29

To type an em dash (—), press Option + Shift + - on a Mac, or hold Alt and type 0151 on the numeric keypad in Windows. On a phone, touch and hold the hyphen key. If you only need it once, copy it from the box below. This guide lists the way for every common device and app, shows how to set up a shortcut of your own, and explains what to do when a shortcut refuses to work.

Em dash copy and paste

Select the dash below and copy it. Paste it with the usual paste command.

—
ItemValue
NameEm dash
UnicodeU+2014 (decimal 8212)
HTML—, — or —
Windows Alt codeAlt + 0151 on the numeric keypad
UTF-8 bytesE2 80 94

For what an em dash is and how to use it in a sentence, see our em dash guide. This page is only about getting the character onto the screen.

How to type an em dash on a Mac

MethodSteps
Keyboard shortcutOption + Shift + - (the hyphen key), in any app
Character ViewerPress Ctrl + Cmd + Space, search for em dash and double-click the result
Auto-convertSystem Settings > Keyboard > Text Input > Edit, then turn on Use smart quotes and dashes. Two hyphens typed in a row become an em dash in apps that support it

If your keyboard layout puts the hyphen on another key, use that key with Option and Shift.

How to type an em dash on Windows

MethodSteps
Alt codeTurn on Num Lock, hold Alt, type 0151 on the numeric keypad and release Alt
Emoji panelPress Win + . (period), switch to the symbols tab and pick the dash
Character MapOpen the Character Map app, find the em dash, then choose Select and Copy
WordType 2014 and press Alt + X; or Ctrl + Alt + - on the numeric keypad
Word, automaticType two hyphens between two words with no spaces, then keep typing

The Alt code only works with a numeric keypad. A laptop without one cannot use the number row for this. That is the usual reason people give up on it and use the emoji panel or copy the character instead.

iPhone, iPad and Android

DeviceSteps
iPhone and iPadOpen the numbers keyboard, touch and hold the hyphen key, and slide your finger to the longest dash
iPhone and iPad, automaticSettings > General > Keyboard, turn on Smart Punctuation. Typing two hyphens in a row gives an em dash
Android with GboardOpen the symbols page, touch and hold the hyphen key, and choose the em dash

Other Android keyboards usually hide the dashes behind a long press as well, but the exact spot varies.

Chromebook, Linux and the web

Set up your own shortcut

If you type em dashes often, a text replacement saves a lot of searching. You choose a short sequence, and the system swaps it for the dash.

WhereWhere to set it up
MacSystem Settings > Keyboard > Text Replacements, then add a phrase and paste the dash as the replacement
iPhone and iPadSettings > General > Keyboard > Text Replacement. Use a phrase you will not type on purpose, such as ;md
WordFile > Options > Proofing > AutoCorrect Options. Add a replacement under the AutoCorrect tab
Google DocsTools > Preferences > Substitutions

Pick a trigger that never appears in normal writing. A replacement such as -- is convenient, but it also fires on command-line options you paste into a document.

In code and markup

WhereWrite it as
HTML—
CSS content"\2014"
JavaScript, Python, Java, JSON"\u2014"
LaTeX---
Excel and Google Sheets formulaUNICHAR(8212)

Markdown has no syntax of its own for the em dash, so paste the character. Some processors, such as Pandoc and markdown-it with its typographer option on, turn three hyphens in running text into an em dash.

When the shortcut does not work

  1. Check Num Lock. Alt codes need it on, and they need the numeric keypad.
  2. Try another app. Some apps and browser fields intercept Alt combinations. Test in Notepad or Word first.
  3. Look at the layout. On a non-US keyboard the hyphen sits elsewhere, and the Mac shortcut moves with it.
  4. Use the panel or copy it. The emoji panel, Character Viewer and Character Map do not depend on any layout.
  5. Check for a hotkey clash. Another program may be using the same key combination.

When the dash shows up as something else

Removing em dashes instead

If the aim is the reverse, the AI Text Cleaner has an Em dash menu. It can keep the dash, or replace each one with a spaced hyphen, a comma or a space. A dash at the very start or end of a line is dropped. The cleaner runs in your browser, so nothing you paste is sent anywhere.

Quick answers

What is the em dash shortcut on a Mac? Option + Shift + -.

What is the em dash Alt code? Alt + 0151 on the numeric keypad. The en dash is Alt + 0150.

How do I type an em dash on a phone? Touch and hold the hyphen key on the numbers or symbols keyboard.

Is two hyphens the same as an em dash? It is the typewriter version. Many apps convert the pair into the real character as you type, and plain-text fields leave it as two hyphens.

Want plain hyphens instead? Paste your text into the cleaner and choose what each em dash turns into. A spaced hyphen is the default. Open the AI Text Cleaner

Related guides