Character Code

HTML En Dash Code

Three ways to write this character in HTML — pick whichever your project already uses, copy it, and paste it straight into your markup.

En dash (U+2013)
–
Named entity — easiest to remember
–
Decimal — numeric reference
–
Hex — hexadecimal reference

1How To Use

Follow these steps — no coding experience needed.

  1. Pick a formatNamed entities are the easiest to read in source code; decimal and hex work identically in every browser.
  2. Click CopyEach variant has its own copy button — no need to select text manually.
  3. Paste into your HTMLDrop it directly into your page text, exactly where the symbol should appear.

2Example Output

What this code looks like once it's on a real page.

Open Monday–Friday, 9am–5pm.

3Browser Compatibility

BrowserSupportNotes
Chrome✓ SupportedFull support
Firefox✓ SupportedFull support
Safari✓ SupportedFull support
Edge✓ SupportedFull support
Opera✓ SupportedFull support
Mobile browsers✓ SupportedFull support, iOS & Android

Supported in every current browser — Chrome, Firefox, Safari, Edge and Opera all render this identically, on both desktop and mobile.

Related Pages

More tools that pair naturally with this one.