En Dash (–): What It Is, When to Use It and How to Type It
The en dash (–) is a mid-length dash that mostly stands for the word "to" in ranges such as 2020–2024 or pages 10–20. It is longer than a hyphen and shorter than an em dash, and it has its own code, U+2013. This guide covers what it is for, how to type it on Windows, Mac, phones and in Word, the HTML code, and what to do when an en dash causes trouble in data.
What is an en dash?
An en dash is a punctuation mark that links two things, usually the two ends of a range. The name comes from the en, a typesetting unit that is half the width of an em. In most fonts the en dash is about as wide as a capital N, which puts it between the short hyphen and the long em dash.
It is a separate character from the hyphen on your keyboard, not just a longer drawing of it. Software compares characters by code, so a search for a hyphen does not find an en dash, and the other way round. Here is the character with its codes. You can select and copy the first column.
| Character | Name | Unicode | HTML | UTF-8 bytes |
|---|---|---|---|---|
| – | En dash | U+2013 | – or – | E2 80 93 |
| - | Hyphen-minus (keyboard key) | U+002D | typed directly | 2D |
| — | Em dash | U+2014 | — or — | E2 80 94 |
When to use an en dash
The en dash has a short list of jobs. Most of them come down to "from this to that" or "between these two".
| Job | Example |
|---|---|
| Ranges of numbers | pages 10–20, ages 18–24, 2020–2024 |
| Ranges of times and dates | 9:00–17:00, Monday–Friday, June–August |
| Scores and vote counts | the home side won 3–1, the motion passed 5–4 |
| A link between equal partners | the London–Paris train, the US–Canada border, a mother–daughter project |
| Joint names of two people in a law or a discovery | the Michaelis–Menten equation |
| A compound where one part has a space | the New York–London flight, post–World War II |
A hyphen would also work in plain text for most of these, and many people use it. In printed or formal writing, editors expect the en dash.
Rules that trip people up
- No spaces in a range. Write 10–20, not 10 – 20.
- Do not mix the dash with words that already mean a range. Write "from 2020 to 2024" or "2020–2024", never "from 2020–2024" or "between 2020–2024".
- Use words when a number is negative. A range such as −5 to −1 is clearer with "to", because a dash next to a minus sign is hard to read.
- Keep both ends the same kind. Years go with years and times with times. A range like "1990–95" is acceptable in some styles and not in others, so follow your style guide.
- Do not use it as a minus sign or a hyphen. A compound adjective such as "well-known" takes a hyphen.
Some British publishers use a spaced en dash for the pause that Americans mark with an em dash. If you see "the plan – though nobody liked it – went ahead", that is the convention at work, not a mistake.
How to type an en dash
| Where | How |
|---|---|
| Mac, any app | Option + - (the hyphen key) |
| Windows, any app | Hold Alt and type 0150 on the numeric keypad, with Num Lock on |
| Word on Windows | Ctrl + - on the numeric keypad, or type 2013 and press Alt + X |
| Word, automatically | Type a word, a space, a hyphen, a space and the next word. Word replaces the hyphen with an en dash once you type the following word |
| Google Docs | Insert > Special characters, then search for en dash |
| iPhone and iPad | On the numbers keyboard, touch and hold the hyphen key and slide to the en dash |
| Android with Gboard | On the symbols keyboard, touch and hold the hyphen key and pick the en dash |
| Linux | Compose key, then - - .; or Ctrl + Shift + U, type 2013 and press Enter in apps that support it |
| HTML | –, – or – |
| LaTeX | Two hyphens in a row: -- |
The Alt code needs a real numeric keypad. The number row above the letters does not work for it. On a laptop without a keypad, copy the character from this page or use the emoji and symbols panel (Win + . on Windows 10 and 11). The Mac shortcut assumes the US layout; on other layouts, use the key that carries the hyphen.
En dash in code and web pages
In a web page, – is the safest way to write it, because it survives a file saved in the wrong encoding. The same character in other places:
- JavaScript, Python, Java and JSON strings:
"\u2013" - CSS
contentvalue:"\2013" - Spreadsheet formula:
UNICHAR(8211)in Excel and Google Sheets - Word's Find box:
^=
En dash vs hyphen and em dash
The hyphen joins parts of a word, the en dash links the ends of a range, and the em dash breaks a sentence. The hyphen is the shortest and has no spaces around it. The em dash is the longest and, depending on the style guide, may or may not have spaces. Our guide to the em dash, en dash and hyphen sets all three side by side, and hyphen vs dash gives a quick test for choosing between them.
Problems with en dashes in data
An en dash that looks right in a document can break things once it travels somewhere that expects plain characters.
- Search misses. A search for
2020-2024with a hyphen will not find the same range written with an en dash. - Ranges stay as text. A spreadsheet may turn 5-10 into a date, while 5–10 stays plain text. Neither is a range you can calculate with.
- Identifiers stop matching. Part numbers, phone numbers and codes that picked up an en dash in a word processor no longer equal the stored value.
- File names and web addresses. Slugs and file names are safest with the plain hyphen. A dash in a URL gets percent-encoded into several unreadable bytes.
- Numbers fail to parse. A negative figure written with an en dash is text, not a number, in a spreadsheet or a program.
Text from AI chat tools and word processors is a common source, because they often swap typed hyphens in ranges for en dashes. The change is correct typography and still unwelcome in a database.
How to replace en dashes with hyphens
With the AI Text Cleaner
In the AI Text Cleaner, tick Replace en dash (–) with a hyphen. It is off by default, since en dashes in ranges are usually right in prose. When it is on, every U+2013 becomes - and the summary counts the dashes changed. The separate Em dash option does not touch en dashes, and the tool leaves the true minus sign (U+2212) alone.
In Word
Open Find and Replace, enter ^= in the Find box and a hyphen in the Replace box, then choose Replace All.
In a spreadsheet
=SUBSTITUTE(A1, UNICHAR(8211), "-")
In code
text = text.replace("\u2013", "-")
Common mistakes
- Using a spaced en dash in a range, as in "10 – 20".
- Typing two hyphens and leaving them, when the document is meant to look typeset.
- Replacing every en dash with an em dash because both are "long dashes".
- Using an en dash inside a command, file name or formula, where only the plain hyphen is understood.
Quick answers
What is an en dash used for? Mostly for ranges, such as 2020–2024, and for links between two equal items, such as London–Paris.
How long is an en dash? About the width of the letter N in the font, which is half an em.
What is the keyboard shortcut for an en dash? Option + - on a Mac, and Alt + 0150 on the numeric keypad in Windows.
Can I use a hyphen instead? In email, chat, code and data, yes. In books, reports and formal documents, readers expect the en dash in ranges.