formersi
U+2014—

U+2014 · General Punctuation

Em dash —: how to type it

Copy — with one click, or type it with Alt + 0151 on Windows, Option + Shift + - on a Mac or hold - on an iPhone.

  • WindowsAlt+0151 numeric keypad
  • Mac⌥ Option+⇧ Shift+-
  • WordCtrl+Alt+Num -
  • iPhonehold - slide to —
  • HTML— or —
Code point
U+2014
decimal 8212
Windows
Alt + 0151
Alt + numpad
Mac
Option + Shift + -
U.S. / ABC layout
Added
Unicode 1.1
Dash punctuation

Every way to type —

Only methods that exist on that system are shown as shortcuts.

Windows Alt code

Alt+0151
  1. Turn on Num Lock.
  2. Hold Alt and type the digits on the numeric keypad (not the top row).
  3. Let go of Alt.
Step-by-step guide

Mac Option key

⌥ Option+⇧ Shift+-

U.S. and ABC keyboard layouts. Hold the keys together.

Step-by-step guide

Microsoft Word shortcut

Ctrl+Alt+Num -
2014thenAlt+X

Type 2014, then press Alt + X (Word for Windows).

Step-by-step guide

Google Docs menu

Insert › Special characters, then search “em dash”, or paste it from here.

iPhone and iPad long-press

hold - slide to —

Default English (US) keyboard. Hold the key until the menu opens.

Step-by-step guide

Android symbol pages

Gboard keeps many common symbols on its symbol pages (tap ?123, then =\<). If it is not there, copy it here, or save it in Gboard’s Personal dictionary with a shortcut.

Linux Unicode input

Ctrl+Shift+Uthen2014thenEnter

GNOME and most GTK apps (IBus).

Chromebook Unicode input

Ctrl+Shift+Uthen2014thenEnter

Type the code after the underlined u appears.

How — is stored in UTF-8

3 bytes (24 bits) for 1 code point

length and continuation bitsbits of the code point
Computed from U+2014 with the UTF-8 rules of RFC 3629. Same bytes as text: see “Codes” below.

Codes

For HTML, CSS, JavaScript, JSON, Python and URLs.

HTML entity&mdash;
UnicodeU+2014
HTML decimal&#8212;
HTML hex&#x2014;
CSS content\2014
JavaScript\u2014
JSON\u2014
Python\u2014
UTF-8 bytesE2 80 94
UTF-162014
URL encoded%E2%80%94
Python name\N{EM DASH}
LaTeX---

From the Unicode Standard

Names, aliases and notes from the Unicode 13.0 names list.

  • Unicode name EM DASH
  • Category Dash punctuation (Pd)
  • Block General Punctuation
  • Note may be used in pairs to offset parenthetical text

Related symbols

Look-alikes named in the Unicode notes first, then neighbours in the same block.

SymbolNameCodeAlt code
―Horizontal barU+2015–
–En dashU+2013Alt + 0150
‖Double vertical lineU+2016–
‒Figure dashU+2012–
‗Double low lineU+2017–
‑Non-breaking hyphenU+2011–

Questions

What is the Alt code for Em dash (—)?

Hold Alt and type 0151 on the numeric keypad, then let go of Alt.

How do I type — on a Mac?

Option + Shift + - on the U.S. or ABC keyboard layout.

What is the HTML code for —?

Use &mdash; or &#8212; (decimal) or &#x2014; (hex).

Sources: Unicode Character Database 13.0 and Unicode emoji 13.0 (Unicode, Inc.); Alt codes computed from code pages 437 and 1252; Mac keys from the Apple U.S. keyboard layout. How this page is made.