| Symbol Name | Em Dash |
| Unicode Version | 1.1 |
| Unicode | U+2014 |
| Unicode block | |
| General category | Dash Punctuation (Pd) |
| CSS Code | \2014 |
| Hex Code | 0x2014 |
| HTML Code | — |
| LaTeX | --- |
| Symbol | — |
| URL encode (UTF-8 percent) | %E2%80%94 |
| Spoken / screen reader name | Em Dash |
| UTF-8 | E2 80 94 |
| UTF-16 | 2014 |
| UTF-32 | 00002014 |
1\documentclass{article}2\usepackage{pifont}3---4\end{document}You can type the em dash symbol on most modern devices with the help of following methods:
Alt + 8212 on Windows (numeric keypad with Num Lock), or insert via Character Map.
Edit → Emoji & Symbols, search "em dash", or use Unicode Hex Input with 2014.
Ctrl + Shift + U, type 2014, then Enter (layout-dependent).
Paste from this page, use text replacement, or pick from the symbol keyboard.
Paste from this page or use a keyboard with geometric symbol support.
1span.em-dash::before { content: "\2014"; }1<span>—</span>Em Dash symbol's representation in different programming languages can be found in the table below:
| Language | Representation |
|---|---|
| JavaScript / TypeScript | '\u2014' or String.fromCodePoint(8212) |
| Python | '\N{EM DASH}' or chr(8212) |
| Rust | '\u{2014}' |
| C / C++ | UTF-8 source or wchar_t with U+2014 |
| Go | string(rune(0x2014)) |
| Ruby | "\u{2014}" |