Character Code
HTML Em 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.
—
Em dash (U+2014)
—
Named entity — easiest to remember
—
Decimal — numeric reference
—
Hex — hexadecimal reference
1How To Use
Follow these steps — no coding experience needed.
- Pick a formatNamed entities are the easiest to read in source code; decimal and hex work identically in every browser.
- Click CopyEach variant has its own copy button — no need to select text manually.
- 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.
The launch date — originally set for March — has moved to April.
3Browser Compatibility
| Browser | Support | Notes |
|---|---|---|
| Chrome | ✓ Supported | Full support |
| Firefox | ✓ Supported | Full support |
| Safari | ✓ Supported | Full support |
| Edge | ✓ Supported | Full support |
| Opera | ✓ Supported | Full support |
| Mobile browsers | ✓ Supported | Full 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.