Em Dash Copy and Paste

Click a dash to copy it: the em dash (—), the en dash (–), the minus sign (−) and every other dash and hyphen in Unicode. Below are the keyboard shortcuts for each system, the HTML and Unicode codes, and a tool that replaces or removes em dashes across a whole text.

—
EM DASH

Dashes and hyphens

Related marks

Each click copies that symbol to your clipboard and adds it to this box.

Replace or remove em dashes in a text

Paste a draft and swap every em dash for a comma, a hyphen or another dash style. Or go the other way and turn typed -- into real dashes.

Found: 3 × em dash, 1 × en dash

3 replaced.

How to type an em dash

WhereEm dash (—)En dash (–)Source
MacOption-Shift-HyphenOption-HyphenApple Style Guide
Windows, any appHold Alt and type 0151 on the numeric keypadHold Alt and type 0150 on the numeric keypadMicrosoft: Windows keyboard tips
Windows 11, no numeric keypadWindows key + . (period), then choose Symbols in the emoji panel
Microsoft WordCtrl+Alt+Minus on the numeric keypad, or type 2014 then Alt+XCtrl+Minus on the numeric keypad, or type 2013 then Alt+XMicrosoft: Word shortcuts
Linux (GTK apps)Ctrl+Shift+U, then 2014, then Enter. With a Compose key: Compose, then three hyphensCtrl+Shift+U, then 2013, then Enter. Compose, then two hyphens and a periodUnicode code points U+2014 and U+2013
iPhone, iPad, AndroidTouch and hold the hyphen key on the on-screen keyboard and slide to the dash you want
HTML— or —– or –HTML named character references
AnywhereClick a dash at the top of this page and paste it

Alt codes need the numeric keypad; the number row above the letters does not work. That is why laptops without a keypad are easier with the emoji panel or copy and paste.

Hyphen, en dash, em dash, minus: which one?

MarkNameUsed forExample
-Hyphen (hyphen-minus, the key on your keyboard)Joining words, breaking words at line ends, and as the minus sign in codewell-known, x - 1
–En dashRanges of numbers and dates, and links between two equal thingspages 5–10, the London–Paris train
—Em dashA break in a sentence: an aside, an interruption or a change of directionThe fix—a single line—took a week to find.
−Minus signMathematics in running text. It matches the width and height of + and =5 − 3 = 2, −12 °C
‑Non-breaking hyphenA hyphenated word that must not be split across two linese‑mail, 555‑0100
‒Figure dashDigits that are not a range, such as phone numbers, in fonts where it has the width of a digit555‒0100
―Horizontal barIntroducing quoted speech in some languages and styles― Who is there?

The names come from printing. An em is a width equal to the font size, so an em dash is as wide as the type is tall, and an en is half of that. Style guides differ on spacing: Apple's guide closes the em dash up against the words on both sides, while AP style puts a space on each side. Pick one and keep it the same through the document; the replacer above can convert between the two.

Em dashes in Markdown

Markdown has no dash syntax of its own. A literal — in your file always works, because Markdown files are plain Unicode text. Whether typed hyphens are converted depends on the renderer:

Renderer-----Notes
Pandoc Markdown– en dash— em dashThe smart extension, on by default for Pandoc's own Markdown (Pandoc manual)
kramdown (Jekyll)– en dash— em dashListed under typographic symbols in the kramdown syntax
Hugo (Goldmark)– en dash— em dashThe typographer extension is enabled in Hugo's default markup configuration
CommonMark and GitHubstays --stays ---Neither spec defines dash conversion. Type the real character or use —, which both accept as an entity reference

Three hyphens alone on a line are a different thing everywhere: a horizontal rule, a heading underline, or the fence around front matter. That is why the replacer leaves those lines, table delimiter rows and code untouched when Markdown safe is on.

Em dash codes for developers

FormatEm dashEn dashMinus sign
UnicodeU+2014U+2013U+2212
HTML—–−
CSS content"\2014""\2013""\2212"
JavaScript, JSON, Python"—""–""−"
UTF-8 bytesE2 80 94E2 80 93E2 88 92
LaTeX-----$-$

To find or replace every dash in code:

// JavaScript: em dash, en dash and horizontal bar to a plain hyphen
text.replace(/[–—―]/g, '-')

# Python
import re
re.sub('[–—―]', '-', text)

# Find files that contain an em dash (GNU grep)
grep -rl $'—' .

The minus sign and the hyphen are different characters. Text copied from a web page or a PDF into a terminal or a spreadsheet can carry a real minus sign (U+2212) or an en dash where the program expects a hyphen, and then −5 is not a number and –help is not an option. If a pasted command or formula fails for no visible reason, paste it into the box above and check the count line, or use the hidden character finder for characters you cannot see at all.

Every dash and hyphen in Unicode

SymbolUnicode nameCode pointHTMLCSSWindows Alt code
Dashes and hyphens
-hyphen-minusU+002D-\002D
‐hyphenU+2010‐ or ‐\2010
‑non-breaking hyphenU+2011‑\2011
‒figure dashU+2012‒\2012
–en dashU+2013– or –\2013Alt+0150
—em dashU+2014— or —\2014Alt+0151
―horizontal barU+2015― or ―\2015
−minus signU+2212− or −\2212
⸺two-em dashU+2E3A⸺\2E3A
⸻three-em dashU+2E3B⸻\2E3B
﹘small em dashU+FE58﹘\FE58
﹣small hyphen-minusU+FE63﹣\FE63
-fullwidth hyphen-minusU+FF0D-\FF0D
Related marks
~tildeU+007E~\007E
‾overlineU+203E‾ or ‾\203E
_low lineU+005F_\005F
¯macronU+00AF¯ or ¯\00AFAlt+0175
·middle dotU+00B7· or ·\00B7Alt+0183
•bulletU+2022• or •\2022Alt+0149
…horizontal ellipsisU+2026… or …\2026Alt+0133

Questions

Is there an em dash key on the keyboard?

No. The key next to zero is the hyphen-minus. The em dash is reached with the shortcuts in the table above, with autocorrect (Word and many phone keyboards turn two hyphens into a dash as you type), or by copying it from this page.

Does an em dash mean a text was written by AI?

No. The em dash has been standard punctuation in print for centuries and every style guide covers it. It is a matter of taste and house style. If your editor or publication does not want em dashes, the replacer above changes them all in one pass, and it tells you which ones it could not safely replace.

Should there be spaces around an em dash?

Both conventions exist. Book publishing and Apple's style guide use no spaces (word—word); AP news style and much web writing use a space on each side (word — word). British publishers often use a spaced en dash instead (word – word). All three are offered as replacement styles.

What is the long dash called?

The long dash is the em dash (—). The medium one is the en dash (–), and the short one on the keyboard is the hyphen (-). Unicode also has a two-em dash (⸺) and a three-em dash (⸻), used for omitted words and repeated authors in bibliographies.

Related tools