En Dash U+2013

Codepoint
U+2013
Decimal
8211
HTML
–
CSS
\2013
JS
\u2013
URL
%E2%80%93
UTF-8
E2 80 93
Category
Punctuation, Dash (Pd)
Block
General Punctuation

The en dash is a medium-length typographic dash, named for being roughly the width of the letter "N" in the current font. It sits between the hyphen and the em dash in length and has a specific set of legitimate uses: connecting ranges, joining related items, and clarifying complex compound modifiers.

Most people never type an en dash intentionally. It is not on any standard keyboard, and casual writing almost always uses a regular hyphen in its place. But in professionally edited text — books, magazines, academic papers, newspaper articles — the en dash is standard wherever a range or connection appears. Because AI language models train on exactly this kind of text, en dashes appear in AI-generated content far more often than in natural human writing.

When to Use an En Dash

The en dash has three main uses in English typography:

  • Numeric ranges. Use an en dash between two numbers that represent a span: pages 1–10, scores of 85–92, ages 18–24. The dash reads as "to" or "through."
  • Date ranges. The same rule applies to dates: 2020–2025, January–March, the 1990s–2000s. In formal writing, this is non-negotiable; a hyphen would be a minor typographic error.
  • Connections and directions. Use an en dash between two things that are joined or opposed: the Tokyo–Osaka train, a London–Paris flight, the Ali–Frazier fight, a north–south border.
  • Compound modifiers with multi-word parts. When one part of a compound is already a multi-word phrase, use an en dash instead of a hyphen: post–World War II, pre–Civil Rights era, New York–based company.

En Dash vs Em Dash vs Hyphen

This is one of the most common points of confusion in typography. Here is the definitive breakdown:

CharacterSymbolCodepointWidthPrimary useExample
Hyphen-U+002DShortCompound wordswell-known
En DashU+2013Medium (width of N)Ranges and connections2020–2025
U+2014Long (width of M)Sentence breaksHe arrived—finally—at noon.
Minus SignU+2212MediumMathematics5 − 3 = 2

Quick Rules

  • Joining two words? Use a hyphen: self-aware, well-being, twenty-one.
  • Showing a range or connection? Use an en dash: pages 1–10, Monday–Friday, New York–London.
  • Creating a pause or interruption in a sentence? Use an em dash: He arrived—finally—at midnight.
  • Writing math? Use the minus sign (U+2212), not a hyphen.

Why AI Models Love En Dashes

AI-generated content uses en dashes at a rate that far exceeds typical human writing. The reason is the same as for : training data.

Large language models learn writing style from professionally edited text. Editors, copyeditors, and typesetters consistently apply the rule "en dash for ranges." The model learns this rule implicitly and applies it every time.

Human writers, by contrast, almost always type a hyphen for ranges. Typing 2020–2025 on a keyboard requires either Alt+0150 (Windows), Option+Hyphen (Mac), or relying on autocorrect. Typing 2020-2025 requires zero effort. Most people default to the easy path.

The result: seeing en dashes in unexpected places — a casual blog post, a GitHub README, a Slack message — is a subtle signal that the text was either AI-generated or heavily edited. It is not definitive, but it is a tell.

How to Type an En Dash

PlatformMethod
WindowsAlt+0150 on the numeric keypad
macOSOption+Hyphen
LinuxCtrl+Shift+U, type 2013, press Enter
Microsoft WordType word space hyphen space word — autocorrect inserts en dash
Google DocsTools > Preferences > Substitutions (enable --)
HTML– or – or –
JavaScript\u2013 in strings
Python\u2013 in strings
LaTeX-- (two hyphens renders as en dash)
MarkdownNot standard; most processors render -- as en dash

Style Guide Rules for En Dashes

Different style guides handle en dash spacing and usage differently:

  • Chicago Manual of Style: En dash for ranges with no spaces on either side: 2020–2025.
  • AP Style: Does not use en dashes. AP uses regular hyphens for ranges. If you see en dashes in news content, it was either not AP-styled or the text passed through a typesetter.
  • British style: Often uses spaced en dashes for sentence breaks where American style uses em dashes: word – word. This is why AI models that mix style guides sometimes produce inconsistent dashes.
  • Academic style (APA, MLA): Follows Chicago conventions for en dashes in ranges.

When writing for a specific publication, check its style guide. When writing for yourself, consistency matters more than which rule you pick.

When En Dashes Cause Problems

Like other AI-injected characters, en dashes can silently break things:

  • Regex and validation. A regex like ^\d{4}-\d{4}$ expects a hyphen and will reject 2020–2025 with an en dash. Copy-pasted date ranges from AI content often fail validation for this reason.
  • CSV parsing. En dashes in CSV data are technically valid UTF-8 but can cause issues with older parsers, ASCII-only systems, or tools that expect data in a specific encoding.
  • Search and matching. Searching for a hyphen will not find an en dash. If you are looking up "2020-2025" in a database and the actual stored value uses an en dash, you will get zero results.
  • Command-line arguments. Pasting text with en dashes into a terminal can break commands. A command-line flag must start with a hyphen, not an en dash, and silent failures are common.
  • Code pasted from chat. AI-generated code often contains en dashes in comments, string literals, and even variable names if the model got confused. Always sanitize pasted code.

Detecting En Dashes

Paste any text into our Invisible Character Viewer on the homepage to see every en dash and other special character highlighted in context.

In code:

js
// JavaScript: detect en dashestext.includes('\u2013')
// Replace en dashes with regular hyphenstext.replace(/\u2013/g, '-')
// Replace all dash-like characters with a single standard hyphentext.replace(/[\u2013\u2014\u2212]/g, '-')
python
# Python: detect and replaceif '\u2013' in text:    text = text.replace('\u2013', '-')

The Dash Family in Unicode

Unicode defines several dash characters that look similar but serve different purposes:

CharacterCodepointWidthPrimary role
Hyphen-MinusU+002DShortASCII hyphen, minus, flag prefix
En DashU+2013MediumRanges, connections
U+2014LongSentence breaks
Horizontal BarU+2015LongQuotation dash (some languages)
Minus SignU+2212MediumMathematical minus
Figure DashU+2012MediumSame width as a digit; used in phone numbers
U+00ADInvisibleConditional line-break hyphen

Most writers only need to know three: hyphen, en dash, em dash. The rest are specialized tools.

Frequently Asked Questions

What is the difference between an en dash and an em dash?
An en dash (–) is medium-width, roughly the width of the letter N. It is used for ranges and connections. An em dash (—) is longer, roughly the width of the letter M, and is used for breaks in sentences. They are separate Unicode characters: U+2013 and U+2014. If you get them mixed up, the text will still make sense to most readers, but typography nerds and style guides will notice.
When should I use an en dash instead of a hyphen?
Use an en dash for numeric or date ranges (pages 1–10, Monday–Friday), for connections between two things (Tokyo–Osaka train, New York–London flight), and for compound modifiers where one part is a multi-word term (post–World War II era, pre–Civil Rights Movement). Use a regular hyphen (-) for ordinary compound words like well-known, self-aware, or twenty-one.
How do I type an en dash?
On Windows: Alt+0150 on the numeric keypad. On Mac: Option+Hyphen. In HTML: – or – or –. In Microsoft Word: type 'word space hyphen space word' and Word auto-corrects to an en dash. In Google Docs: Tools > Preferences > Substitutions includes -- → –. Or copy it directly from this page.
Does ChatGPT use en dashes?
Yes. AI models trained on professionally edited text use en dashes for ranges because that is the typographically correct choice. Human writers almost always just type a hyphen for the same purpose, because that is what is on the keyboard. If you see '2020–2025' with an en dash instead of '2020-2025' with a hyphen, that is a subtle signal the text was either AI-generated or professionally edited.
Can en dashes cause bugs in code or data?
Yes. En dashes are distinct from hyphens in Unicode (U+2013 vs U+002D). String matching, search, CSV parsing, and regex patterns written for hyphens will not match en dashes. If a date range copied from AI-generated text fails your 'YYYY-YYYY' validation, or a search for '2020-2025' misses matching records, an en dash is the most likely reason.

Related Characters

Need to detect or remove En Dash characters in your text?

Open Invisible Character Viewer