formersi
U+2013–

U+2013 · General Punctuation

En dash –: how to type it

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

  • WindowsAlt+0150 numeric keypad
  • Mac⌥ Option+-
  • WordCtrl+Num -
  • iPhonehold - slide to –
  • HTML– or –
Code point
U+2013
decimal 8211
Windows
Alt + 0150
Alt + numpad
Mac
Option + -
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+0150
  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+-

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

Step-by-step guide

Microsoft Word shortcut

Ctrl+Num -
2013thenAlt+X

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

Step-by-step guide

Google Docs menu

Insert › Special characters, then search “en 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+Uthen2013thenEnter

GNOME and most GTK apps (IBus).

Chromebook Unicode input

Ctrl+Shift+Uthen2013thenEnter

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+2013 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&ndash;
UnicodeU+2013
HTML decimal&#8211;
HTML hex&#x2013;
CSS content\2013
JavaScript\u2013
JSON\u2013
Python\u2013
UTF-8 bytesE2 80 93
UTF-162013
URL encoded%E2%80%93
Python name\N{EN DASH}
LaTeX--

From the Unicode Standard

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

Related symbols

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

SymbolNameCodeAlt code
—Em dashU+2014Alt + 0151
‒Figure dashU+2012–
―Horizontal barU+2015–
‑Non-breaking hyphenU+2011–
‖Double vertical lineU+2016–
‐HyphenU+2010–

Questions

What is the Alt code for En dash (–)?

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

How do I type – on a Mac?

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

What is the HTML code for –?

Use &ndash; or &#8211; (decimal) or &#x2013; (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.