copied = false, 2000)"
@keydown.enter="navigator.clipboard.writeText('—'); copied = true; setTimeout(() => copied = false, 2000)"
:class="copied ? 'border-green-400 bg-green-50 dark:bg-green-950' : ''">
—
EM DASH
Overview
The em dash (—) is a long horizontal dash used to set off a parenthetical phrase, mark an abrupt break, or introduce an explanation. Encoded at U+2014 in the General Punctuation block, it is classified as dash punctuation and written in HTML as —. Named for its traditional width of one em, it is the longest of the common dashes and a versatile tool of English punctuation, distinct in both length and function from the shorter en dash and hyphen.
On this page
Encoding Table
| Format | Value | Copy |
|---|---|---|
| unicode | U+2014 | |
| decimal | 8212 | |
| htmldecimal | — | |
| htmlhex | — | |
| css | \2014 | |
| javascript | \u{2014} | |
| python | \u2014 | |
| java | \u2014 | |
| go | \u2014 | |
| ruby | \u{2014} | |
| rust | \u{2014} | |
| ccpp | \u2014 | |
| urlencoded | %E2%80%94 | |
| utf8bytes | e2 80 94 | |
| utf16bebytes | 20 14 | |
| utf32bebytes | 00 00 20 14 | |
| htmlentity | — |
How to Use
HTML:
—
or
—
CSS:
content: "\2014"
JavaScript:
"\u{2014}"
Python:
"\u2014"
Properties
- Block
- General Punctuation
- Script
- Zyyy
- Category
- Dash Punctuation (Pd)
- Bidirectional
- ON
- Combining
- 0
- Mirrored
- No
Compare
Frequently Asked Questions
What is the — character (EM DASH)?
— (EM DASH) is the Unicode character U+2014.
What is the Unicode codepoint of EM DASH?
The EM DASH character (—) has codepoint U+2014.
How do I type or copy EM DASH?
Copy — directly, or use the HTML entity, UTF-8, and code encodings shown on this page.