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.
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
| Where | Em dash (—) | En dash (–) | Source |
|---|---|---|---|
| Mac | Option-Shift-Hyphen | Option-Hyphen | Apple Style Guide |
| Windows, any app | Hold Alt and type 0151 on the numeric keypad | Hold Alt and type 0150 on the numeric keypad | Microsoft: Windows keyboard tips |
| Windows 11, no numeric keypad | Windows key + . (period), then choose Symbols in the emoji panel | ||
| Microsoft Word | Ctrl+Alt+Minus on the numeric keypad, or type 2014 then Alt+X | Ctrl+Minus on the numeric keypad, or type 2013 then Alt+X | Microsoft: Word shortcuts |
| Linux (GTK apps) | Ctrl+Shift+U, then 2014, then Enter. With a Compose key: Compose, then three hyphens | Ctrl+Shift+U, then 2013, then Enter. Compose, then two hyphens and a period | Unicode code points U+2014 and U+2013 |
| iPhone, iPad, Android | Touch and hold the hyphen key on the on-screen keyboard and slide to the dash you want | ||
| HTML | — or — | – or – | HTML named character references |
| Anywhere | Click 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?
| Mark | Name | Used for | Example |
|---|---|---|---|
| - | Hyphen (hyphen-minus, the key on your keyboard) | Joining words, breaking words at line ends, and as the minus sign in code | well-known, x - 1 |
| – | En dash | Ranges of numbers and dates, and links between two equal things | pages 5–10, the London–Paris train |
| — | Em dash | A break in a sentence: an aside, an interruption or a change of direction | The fix—a single line—took a week to find. |
| − | Minus sign | Mathematics in running text. It matches the width and height of + and = | 5 − 3 = 2, −12 °C |
| ‑ | Non-breaking hyphen | A hyphenated word that must not be split across two lines | e‑mail, 555‑0100 |
| ‒ | Figure dash | Digits that are not a range, such as phone numbers, in fonts where it has the width of a digit | 555‒0100 |
| ― | Horizontal bar | Introducing 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 dash | The smart extension, on by default for Pandoc's own Markdown (Pandoc manual) |
| kramdown (Jekyll) | – en dash | — em dash | Listed under typographic symbols in the kramdown syntax |
| Hugo (Goldmark) | – en dash | — em dash | The typographer extension is enabled in Hugo's default markup configuration |
| CommonMark and GitHub | stays -- | 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
| Format | Em dash | En dash | Minus sign |
|---|---|---|---|
| Unicode | U+2014 | U+2013 | U+2212 |
| HTML | — | – | − |
CSS content | "\2014" | "\2013" | "\2212" |
| JavaScript, JSON, Python | "—" | "–" | "−" |
| UTF-8 bytes | E2 80 94 | E2 80 93 | E2 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
| Symbol | Unicode name | Code point | HTML | CSS | Windows Alt code |
|---|---|---|---|---|---|
| Dashes and hyphens | |||||
| - | hyphen-minus | U+002D | - | \002D | |
| ‐ | hyphen | U+2010 | ‐ or ‐ | \2010 | |
| ‑ | non-breaking hyphen | U+2011 | ‑ | \2011 | |
| ‒ | figure dash | U+2012 | ‒ | \2012 | |
| – | en dash | U+2013 | – or – | \2013 | Alt+0150 |
| — | em dash | U+2014 | — or — | \2014 | Alt+0151 |
| ― | horizontal bar | U+2015 | ― or ― | \2015 | |
| − | minus sign | U+2212 | − or − | \2212 | |
| ⸺ | two-em dash | U+2E3A | ⸺ | \2E3A | |
| ⸻ | three-em dash | U+2E3B | ⸻ | \2E3B | |
| ﹘ | small em dash | U+FE58 | ﹘ | \FE58 | |
| ﹣ | small hyphen-minus | U+FE63 | ﹣ | \FE63 | |
| - | fullwidth hyphen-minus | U+FF0D | - | \FF0D | |
| Related marks | |||||
| ~ | tilde | U+007E | ~ | \007E | |
| ‾ | overline | U+203E | ‾ or ‾ | \203E | |
| _ | low line | U+005F | _ | \005F | |
| ¯ | macron | U+00AF | ¯ or ¯ | \00AF | Alt+0175 |
| · | middle dot | U+00B7 | · or · | \00B7 | Alt+0183 |
| • | bullet | U+2022 | • or • | \2022 | Alt+0149 |
| … | horizontal ellipsis | U+2026 | … or … | \2026 | Alt+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
- Bullet Point Symbols: bullets to copy, and a converter between • lists and Markdown lists.
- Arrow Symbols: arrows to copy with HTML, CSS and LaTeX codes.
- Check Mark Symbols: check marks, crosses and boxes.
- Invisible Character: blank characters and a hidden character finder.
- Remove Line Breaks: fix text copied from PDFs and emails.
- Markdown to Plain Text: strip asterisks and pound signs from pasted Markdown.