En Dash Unicode Code Point

The en dash is U+2013 in Unicode. This guide covers its encodings and how it differs from hyphens and em dashes, plus how substituting it affects copying, search, code and screen readers.

The en dash is a single Unicode character: U+2013 EN DASH. It sits in the General Punctuation block and is classified as dash punctuation. Most practical questions about it concern substitution, meaning swapping a plain hyphen for it or the reverse. They also cover whether that swap holds up when text is copied, searched, pasted into code or read aloud by assistive technology. This review covers what the character is, how it differs from similar dashes, and when plain text is the safer choice.

Quick reference: how U+2013 is encoded

Representation | Value
Code point | U+2013
Unicode name | EN DASH
Block | General Punctuation (U+2000–U+206F)
General category | Pd (Dash punctuation)
UTF-8 bytes | E2 80 93
UTF-16 code unit | 2013
HTML named entity | –
HTML numeric references | – or –
CSS escape (in content strings) | \2013
Windows-1252 legacy byte | 0x96
# Python
en_dash = "\u2013"        # or chr(0x2013)

// JavaScript
const enDash = "\u2013";

/* CSS */
.range::before { content: "\2013"; }

<!-- HTML -->
2019&ndash;2024

How the en dash differs from look-alike characters

Several dash and hyphen characters look similar but have distinct code points. Fonts often draw some of them identically, so you can't reliably tell them apart by eye. A code point inspector is the dependable way to confirm which one is present.

Character | Code point | Typical role
Hyphen-minus | U+002D | The keyboard hyphen; used in compound words, command-line options, code and URLs
Hyphen | U+2010 | Unambiguous typographic hyphen; less widely supported by fonts and input methods
Non-breaking hyphen | U+2011 | Hyphen that should not allow a line break
Figure dash | U+2012 | Dash matching digit width, for example in phone-number style groupings
En dash | U+2013 | Ranges (pages 10–20), connections and relationships (New York–London flight), and spaced dashes in some style guides
Em dash | U+2014 | Parenthetical breaks in a sentence
Horizontal bar | U+2015 | Introducing quotations in some typographic traditions
Minus sign | U+2212 | Mathematical subtraction and negative values

What substituting an en dash actually changes

Replacing a hyphen with an en dash changes the stored character, not just its appearance. The text now contains U+2013 (three bytes in UTF-8) where it previously held U+002D (one byte). That differs from styling or CSS presentation, which leave the underlying characters intact. It also differs from a font choice. A font can change how a dash is drawn but cannot turn a hyphen into an en dash.

Other transformations treat the en dash simply. It is a single code point with no combining marks, so reversing a string keeps it intact as one unit. Its Unicode properties mark it as not mirrored, so right-to-left display does not swap its glyph. Its bidirectional class is Other Neutral, which means its visual position in mixed-direction text depends on the characters around it. A range like 10–20 inside right-to-left text may therefore display in an unexpected order. Inserting a directional mark or isolating the range may be needed in that case.

Will the en dash stay usable after copying or sharing?

In UTF-8 and UTF-16 environments, copying and pasting carries U+2013 through unchanged, because the character is part of standard Unicode. The practical risks come from systems that treat it differently from a hyphen, or that misread its encoding.

  • Search and find: a search for a hyphen-minus will not match an en dash unless the search tool normalizes punctuation. Some tools do and many do not, so a document mixing both characters can produce missed matches.
  • Code and command lines: a shell or parser does not recognize an en dash as the option prefix. A command copied from a word processor that auto-converted --option or -o into a dash may fail. Code, configuration files, identifiers and URLs should keep the plain hyphen-minus.
  • Encoding mismatches: if UTF-8 text is mistakenly decoded as Windows-1252, the bytes E2 80 93 show up as mojibake, commonly seen as –. ISO-8859-1 has no en dash at all, so conversion to that encoding loses it or replaces it.
  • Line breaking: Unicode line-breaking rules allow a break after an en dash. A range can therefore wrap across lines, leaving 10– at the end of one line and 20 at the start of the next. No standard non-breaking en dash exists. Preventing the break requires word joiners or layout controls.
  • Normalization: Unicode normalization forms (NFC, NFD, NFKC, NFKD) do not convert an en dash into a hyphen. Folding dashes together requires an explicit substitution step.

Accessibility and screen readers

Screen readers handle punctuation according to their verbosity settings. Depending on the reader and configuration, an en dash may be announced by name, voiced as a pause, read as "to" in some contexts, or skipped. No scoped tests of specific screen readers or settings were supplied for this review, so this article cannot say how any particular product announces U+2013. When the meaning depends on the dash, as in a date or number range, writing "10 to 20" or "2019 through 2024" in plain words removes the ambiguity for listeners. If a specific audience matters, test with the assistive technology and settings that audience actually uses.

Is substituting an en dash right for your use?

For edited prose, the en dash is a sound choice. Examples include articles, reports, books and typeset documents where style guides call for it in ranges and connections. Its main benefit is typographic precision: it signals a range or relationship more clearly than a hyphen and matches established conventions.

The decisive tradeoff is that it is a different character, not a styled hyphen. Anything that matches text literally treats it as distinct, including search, filtering, parsing, command lines and data pipelines. Legacy encodings can garble or drop it.

  • Use the en dash in published prose and typeset documents that are stored and served as UTF-8.
  • Use the plain hyphen-minus in code, commands, filenames, URLs, identifiers, CSV or other structured data, and any field that will be searched or matched literally.
  • Use words such as "to" or "through" when the reading of a range must be unambiguous for screen-reader users or plain-text recipients.
  • Check the encoding before sharing to systems that may not use UTF-8, such as older email clients, legacy databases or exported files.

Evidence gaps

The code point, encodings and character properties above are fixed by the Unicode Standard and related specifications. No destination-specific tests were supplied for this review. That includes how particular apps, social platforms, search engines or screen readers handle U+2013, and no such results are claimed here. A dash rendering correctly in one environment does not show it will behave the same in another.