Em Dash Unicode Code Point
The em dash is Unicode U+2014. Learn how it differs from hyphens and other dashes, how to enter it, and when copying or sharing it can cause problems.
The em dash is encoded in Unicode as U+2014, with the official character name EM DASH. It belongs to the Dash Punctuation general category and sits in the General Punctuation block. Its decimal value is 8212. If you only need the identifier, that is the answer. The rest of this article explains what the character is, how it differs from similar long dashes, and when inserting it into a workflow helps or hurts.
Quick Reference for U+2014
| Property | Value |
| Code point | U+2014 |
| Name | EM DASH |
| Decimal | 8212 |
| General category | Pd (Dash Punctuation) |
| Unicode block | General Punctuation |
| UTF-8 bytes | E2 80 94 |
| UTF-16 code unit | 2014 |
| HTML named entity | — |
| HTML numeric references | — or — |
| Windows-1252 byte (legacy) | 0x97 |
The same code point can be written in common programming and markup contexts as shown below. Each form produces the identical stored character.
HTML: — — —
CSS content: content: "\2014";
JavaScript: "\u2014"
Python: "\u2014" chr(8212) ord("—") == 8212
JSON: "\u2014"
How the Em Dash Differs from Other Long Dashes
People searching for a "long dash" in Unicode often land on the em dash, but several distinct characters look similar. They are separate code points, so software treats them as different characters even when a font draws them at almost the same length.
| Character | Code point | Name | Typical use |
| • | U+002D | HYPHEN-MINUS | Keyboard hyphen, command-line options, ASCII text |
| ‐ | U+2010 | HYPHEN | Typographic hyphen in compound words |
| ‒ | U+2012 | FIGURE DASH | Dash matching digit width, such as in phone numbers |
| – | U+2013 | EN DASH | Ranges, such as pages 10–20 |
| — | U+2014 | EM DASH | Breaks or interruptions in a sentence |
| ― | U+2015 | HORIZONTAL BAR | Introducing quoted dialogue in some typographic traditions |
| ⸺ | U+2E3A | TWO-EM DASH | Omitted letters or words |
| ⸻ | U+2E3B | THREE-EM DASH | Repeated author names in bibliographies |
| − | U+2212 | MINUS SIGN | Mathematical subtraction and negative numbers |
Rendered length depends on the font. The "em" in the name refers to a traditional typographic width, but Unicode defines the character's identity, not a fixed pixel length. Two dashes that look identical on one screen may look different on another, which is why checking the code point is more reliable than judging by eye.
What Inserting or Substituting an Em Dash Actually Changes
Replacing a hyphen or a pair of hyphens with an em dash is a character substitution. It changes the stored text, not just its appearance. A document that contains U+2014 has a different byte sequence from one that contains two U+002D hyphen-minus characters, even if the visible result looks like a natural typographic upgrade. This is the same kind of change that word processors make when autocorrect converts a double hyphen into a dash.
This is different from purely visual techniques. CSS styling or a font choice can change how a character looks without changing which character is stored. Bidirectional display can change where a character appears on screen without changing the stored order. An em dash substitution does neither of those things; it swaps one code point for another.
The em dash is also largely unaffected by reversal and mirroring tools. It is a single code point, so reversing a string by code points or by grapheme clusters keeps it intact, with no combining marks or multi-code-point sequences to split. Its Unicode bidirectional class is Other Neutral and it is not listed as a mirrored character, so right-to-left contexts do not replace it with a mirrored glyph. Its horizontal shape is visually symmetric, so a mirrored rendering looks the same as the original. Its position in mixed-direction text, however, is determined by the surrounding characters, which can make it appear on an unexpected side when left-to-right and right-to-left text are combined.
Copying, Sharing and Compatibility
In modern Unicode-aware software, an em dash generally survives copy and paste because it is a standard, long-established character supported by common fonts. The risks appear at boundaries where text moves between systems with different expectations.
- Encoding mismatches: when UTF-8 text is misread as Windows-1252, the three bytes E2 80 94 display as the garbled sequence "—". Seeing that pattern usually indicates an encoding problem rather than a damaged character.
- Code and commands: command-line tools expect ASCII hyphen-minus for options. Text that was autocorrected so that "--option" became an em dash followed by "option" will not be recognized as an option. Code samples should keep plain hyphens.
- Search and matching: searching for a hyphen will not find an em dash, and the reverse is also true, unless the search tool normalizes punctuation. Data cleaning, find-and-replace and validation rules may need to account for both.
- Identifiers and filenames: URLs, usernames, slugs and filenames are safer with ASCII hyphens, since some systems reject, escape or transform non-ASCII punctuation.
- Fixed-width and East Asian contexts: U+2014 has an ambiguous East Asian width, so its column width can vary between terminals and fonts, which may shift alignment in monospaced layouts.
- Line breaking: Unicode line-breaking rules allow breaks before and after an em dash, so a long phrase may wrap at the dash in narrow layouts.
Accessibility depends on the screen reader and its punctuation settings. Some configurations announce the character by name, some produce a pause, and some skip it. No scoped test of a particular screen reader, browser or platform was available for this article, so behavior in any specific assistive technology should be verified directly rather than assumed. If the dash carries meaning that a listener must not miss, such as marking an omission, rewording the sentence or adding text is more reliable than depending on how the punctuation is spoken.
Entering the Em Dash
- Windows: hold Alt and type 0151 on the numeric keypad. This code reflects the legacy Windows-1252 byte, not the Unicode value.
- macOS: press Option + Shift + Hyphen.
- HTML: use — or a numeric reference.
- Character pickers and inspectors: search for the name "EM DASH" or the value 2014 to confirm you have the correct character rather than an en dash or horizontal bar.
Keyboard shortcuts and input methods vary by layout, operating system version and application, so treat these as common defaults rather than guarantees.
Is the Em Dash Suitable for Your Use?
For published prose, such as articles, books, documentation text and messages, using U+2014 is a sound choice. The main benefit is correct typography: the character carries a clear identity, renders consistently in mainstream fonts, and distinguishes a sentence break from a hyphenated word or a numeric range.
The decisive tradeoff is that it is a different stored character from the keyboard hyphen. That matters wherever text is processed by machines rather than read by people. Plain ASCII hyphens are preferable in source code, command examples, configuration files, identifiers, URLs, filenames, data meant for exact matching, and pipelines where the encoding is uncertain or legacy. In those settings, a plain-text equivalent such as a single hyphen with spaces, or two hyphens, avoids breakage at the cost of typographic polish.
Evidence gaps: this overview relies on documented Unicode properties and widely known encoding behavior. It does not include tested results for specific applications, platforms, messaging services or screen readers. If your workflow depends on a particular destination, paste a sample containing the em dash there and inspect both the rendering and the stored code point before adopting it broadly.