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–
Every way to type –
Only methods that exist on that system are shown as shortcuts.
Windows Alt code
- Turn on Num Lock.
- Hold Alt and type the digits on the numeric keypad (not the top row).
- Let go of Alt.
Microsoft Word shortcut
Type 2013, then press Alt + X (Word for Windows).
Google Docs menu
Insert › Special characters, then search “en dash”, or paste it from here.
iPhone and iPad long-press
Default English (US) keyboard. Hold the key until the menu opens.
Step-by-step guideAndroid 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
GNOME and most GTK apps (IBus).
Chromebook Unicode input
Type the code after the underlined u appears.
How – is stored in UTF-8
3 bytes (24 bits) for 1 code point
Codes
For HTML, CSS, JavaScript, JSON, Python and URLs.
| HTML entity | – | |
|---|---|---|
| Unicode | U+2013 | |
| HTML decimal | – | |
| HTML hex | – | |
| CSS content | \2013 | |
| JavaScript | \u2013 | |
| JSON | \u2013 | |
| Python | \u2013 | |
| UTF-8 bytes | E2 80 93 | |
| UTF-16 | 2013 | |
| 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.
- Unicode name EN DASH
- Category Dash punctuation (Pd)
- Block General Punctuation
Related symbols
Look-alikes named in the Unicode notes first, then neighbours in the same block.
| Symbol | Name | Code | Alt code |
|---|---|---|---|
| — | Em dash | U+2014 | Alt + 0151 |
| ‒ | Figure dash | U+2012 | – |
| ― | Horizontal bar | U+2015 | – |
| ‑ | Non-breaking hyphen | U+2011 | – |
| ‖ | Double vertical line | U+2016 | – |
| ‐ | Hyphen | U+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 – or – (decimal) or – (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.