| Symbol Name | En Dash |
| Unicode Version | 1.1 |
| Unicode | U+2013 |
| Unicode block | |
| General category | Dash Punctuation (Pd) |
| CSS Code | \2013 |
| Hex Code | 0x2013 |
| HTML Code | – |
| LaTeX | -- |
| Symbol | – |
| URL encode (UTF-8 percent) | %E2%80%93 |
| Spoken / screen reader name | En Dash |
| UTF-8 | E2 80 93 |
| UTF-16 | 2013 |
| UTF-32 | 00002013 |
1\documentclass{article}2\usepackage{pifont}3--4\end{document}You can type the en dash symbol on most modern devices with the help of following methods:
Alt + 8211 on Windows (numeric keypad with Num Lock), or insert via Character Map.
Edit → Emoji & Symbols, search "en dash", or use Unicode Hex Input with 2013.
Ctrl + Shift + U, type 2013, 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.en-dash::before { content: "\2013"; }1<span>–</span>En Dash symbol's representation in different programming languages can be found in the table below:
| Language | Representation |
|---|---|
| JavaScript / TypeScript | '\u2013' or String.fromCodePoint(8211) |
| Python | '\N{EN DASH}' or chr(8211) |
| Rust | '\u{2013}' |
| C / C++ | UTF-8 source or wchar_t with U+2013 |
| Go | string(rune(0x2013)) |
| Ruby | "\u{2013}" |