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 |
|---|---|---|
| Code point | U+2014 |
|
| Decimal | 8212 |
|
| HTML decimal | — |
|
| HTML hex | — |
|
| CSS | \2014 |
|
| JavaScript | \u{2014} |
|
| Python | \u2014 |
|
| Java | \u2014 |
|
| Go | \u2014 |
|
| Ruby | \u{2014} |
|
| Rust | \u{2014} |
|
| C / C++ | \u2014 |
|
| URL-encoded | %E2%80%94 |
|
| UTF-8 bytes | e2 80 94 |
|
| UTF-16BE bytes | 20 14 |
|
| UTF-32BE bytes | 00 00 20 14 |
|
| HTML entity | — |
How to Use
HTML:
—
or
—
CSS:
content: "\2014"
JavaScript:
"\u{2014}"
Python:
"\u2014"
Properties
- Block
- General Punctuation
- Script
- Common Zyyy
- Category
- Dash Punctuation (Pd)
- Bidirectional
- ON
- Combining
- 0
- Mirrored
- No
Compare
Frequently Asked Questions
How do I type or copy EM DASH?
Copy — directly, or use the HTML entity, UTF-8, and code encodings shown on this page.