Em dash

— is the Unicode character “EM DASH” (U+2014). It belongs to the General Punctuation block and was added in Unicode 1.1. Click it to copy, or use the codes below.

— codes

UnicodeCode point U+2014
HTML codeDecimal, works in any HTML page —
HTML hexHexadecimal HTML code —
HTML entityNamed HTML entity —
CSSFor the CSS content property \2014
JavaScriptEscape in JavaScript strings \u2014
PythonEscape in Python strings \u2014
URL encodedPercent-encoded UTF-8 %E2%80%94
UTF-8Bytes in UTF-8 E2 80 94
UTF-16Code units in UTF-16 2014
Alt codeWindows, number pad Alt + 0151

How to type —

Copy and paste

Click to copy it, then paste with Ctrl + V (⌘ + V on a Mac) or a long press on phones.

Windows

Hold Alt and type 0151 on the number pad (Num Lock on), then let go of Alt.

In Microsoft Word, type 2014 and press Alt + X.

Mac

Press Option + Shift + -.

Or open the Character Viewer with Control + ⌘ + Space.

iPhone and Android

Copy it here and paste it. To type it again later, save it as a text replacement (iPhone: Settings › General › Keyboard › Text Replacement; Gboard: Settings › Dictionary › Personal dictionary).

HTML and CSS

Unicode U+2014. Every format is on the em dash page.

About —

Unicode name
EM DASH
Code point
U+2014 (8212)
Block
General Punctuation
Category
Dash Punctuation
Unicode version
1.1
Mac shortcut
Option + Shift + -