En Dash U+2013

Copy and paste the en dash (–). How to type it on Mac, Windows and phone, when to use it for ranges like 2020–2025, and how it differs from the em dash.

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 dash, roughly the width of the letter "N". It is longer than a hyphen, shorter than an em dash, and marks ranges, connections and complex compound modifiers. Use the "Copy En Dash" button above to copy – to your clipboard.

No standard keyboard has an en dash, so casual writing uses a hyphen. Professionally edited text (books, magazines, academic papers, newspapers) uses the en dash for every range. AI models train on that text, so en dashes show up far more often in AI output than in everyday writing.

When to Use an En Dash

  • Numeric ranges. Between two numbers that mark a span: pages 1–10, scores of 85–92, ages 18–24. The dash reads as "to" or "through."
  • Date ranges. 2020–2025, January–March, the 1990s–2000s. In formal writing a hyphen here is a typographic error.
  • Connections and directions. 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 is already a multi-word phrase: post–World War II, pre–Civil Rights era, New York–based company.

En Dash vs Em Dash vs Hyphen

CharacterSymbolCodepointWidthPrimary useExample
Hyphen-U+002DShortCompound wordswell-known
En Dash–U+2013Medium (width of N)Ranges and connections2020–2025
Em Dash—U+2014Long (width of M)Sentence breaksHe arrived—finally—at noon.
Minus Sign−U+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

As with em dashes, the cause is training data: editors apply "en dash for ranges," and models learn the rule. People type 2020-2025 with a hyphen because 2020–2025 takes Alt+0150, Option+Hyphen or autocorrect.

So an en dash in a casual blog post, GitHub README or Slack message hints that the text was AI-generated or heavily edited. It is a tell, not proof.

How to Type an En Dash

PlatformMethod
WindowsAlt+0150 on the numeric keypad (the "en dash alt code")
macOSOption+Hyphen
iPhone / iPadLong-press the hyphen (-) key, then choose the en dash (–)
AndroidLong-press the hyphen (-) key, then select the en dash (–)
LinuxCtrl+Shift+U, type 2013, press Enter
Microsoft WordType word space hyphen space word; autocorrect inserts an en dash
Google DocsType --; the default substitution (Tools > Preferences > Substitutions) converts it to –
HTML– or – or –
JavaScript\u2013 in strings
Python\u2013 in strings
LaTeX-- (two hyphens renders as en dash)
MarkdownNot standard; processors with smart punctuation (e.g., SmartyPants) render -- as en dash

Style Guide Rules for En Dashes

  • Chicago Manual of Style: En dash for ranges, no spaces on either side: 2020–2025.
  • AP Style: No en dashes; AP uses hyphens for ranges. En dashes in news content mean it was not AP-styled or went through a typesetter.
  • British style: Often uses spaced en dashes for sentence breaks where American style uses em dashes: word – word. AI models that mix style guides sometimes produce inconsistent dashes.
  • Academic style (APA, MLA): APA uses en dashes for ranges. MLA uses en dashes in published work but accepts hyphens for ranges in student papers.

For a publication, follow its style guide. Otherwise, pick one rule and stay consistent.

When En Dashes Cause Problems

  • Regex and validation. ^\d{4}-\d{4}$ expects a hyphen and rejects 2020–2025. Date ranges pasted from AI content often fail this way.
  • CSV parsing. En dashes are valid UTF-8 but can trip up older parsers, ASCII-only systems or tools that expect a specific encoding.
  • Search and matching. A search for "2020-2025" returns nothing when the stored value has an en dash.
  • Command-line arguments. A command-line flag must start with a hyphen, not an en dash. Pasted commands with en dashes often fail silently.
  • Code pasted from chat. AI-generated code can contain en dashes in comments and strings, and rich-text tools can turn hyphens into dashes.

Detecting En Dashes

Paste text into our Invisible Character Viewer on the homepage to see every en dash 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

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

Most writers only need three: hyphen, en dash and em dash.

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, and marks ranges and connections. An em dash (—) is longer, roughly the width of M, and marks breaks in sentences. They are separate Unicode characters: U+2013 and U+2014.

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 hyphen (-) for ordinary compounds like well-known 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 Word: type 'word space hyphen space word' and autocorrect makes an en dash. In Google Docs: type two hyphens (--); the default substitution turns them into –. Or copy it from this page.

Does ChatGPT use en dashes?

Yes. AI models trained on professionally edited text use en dashes for ranges, the typographically correct choice. Most people type a hyphen because it is on the keyboard. '2020–2025' with an en dash instead of '2020-2025' is a subtle sign the text was AI-generated or professionally edited.

Can en dashes cause bugs in code or data?

Yes. En dashes are distinct from hyphens (U+2013 vs U+002D), so string matching, search, CSV parsing and regex patterns written for hyphens miss them. If a date range copied from AI text fails 'YYYY-YYYY' validation, or a search for '2020-2025' misses records, an en dash is the likely cause.

Related Characters

Need to find every hidden character in your text, not just the En Dash?

Open the viewer