Typography & Punctuation

En Dash ()

The en dash is equal to the width of the letter "N", half the width of an em dash. Typographically standard for numeric and date ranges (e.g. 2020–2026, pp. 14–28).

One-Click Copyable Code Formats

HTML Named Entity
–
HTML Decimal Code
–
HTML Hex Code
–
CSS content (\XXXX)
\2013
JavaScript Unicode (\uXXXX)
\u2013
URL Percent Encoded
%E2%80%93

Real-World Implementation Snippets

HTML5 Document
<p>Example: &ndash;</p>
CSS ::before / ::after
.badge::before { content: '\2013 '; }
React JSX / TypeScript
<span>{"\u2013"}</span>
Frequently Asked Questions

En Dash (–) HTML Entity FAQ

Common questions regarding HTML escape codes, CSS pseudo-elements, and browser character encoding.

The standard HTML named entity is "&ndash;". If using numeric codes, you can use the decimal code "&#8211;" or hex code "&#x2013;".