Copy & encode
Character
—Unicode codepoint
U+2014HTML named entity
—HTML decimal entity
—HTML hex entity
—CSS escape
\2014JavaScript escape
\u2014Windows Alt code
0151Meaning and usage
Writers use it to insert a related thought, replace a colon or parentheses, or add emphasis in the middle of a sentence, though many style guides prefer a plain hyphen or comma instead.
Frequently Asked Questions
What is the HTML entity for the em dash?
Use — or —.
What is the Windows Alt code for the em dash?
Hold Alt and type 0151 on the numeric keypad.