Search

Search for a symbol or emoji...

Em Dash Symbol

Em Dash Symbol Information

Symbol Name
Em Dash
Unicode Version
1.1 (June 1993)
Unicode
U+2014
CSS Code
\2014
HTML Entity
—
Hex Code
—
HTML Code
—
Latex
\textemdash
Symbol

Em Dash Symbol Encoding

UTF-8
0xE2 0x80 0x94
UTF-16
0x2014
UTF-32
0x00002014

Em DashSymbol's PNG and SVG files

Em Dash Symbol in Latex

Em Dash
1\documentclass{article} 2\begin{document} 3\textemdash 4\end{document}

How to add em dash symbol via keyboard on different Operating systems

You can type the em dash symbol on most modern devices with the help of following methods:

How to type em dash symbol on Microsoft Word

You can type the em dash in Microsoft Word using steps mentioned below:

  • Place your cursor in the text area where you need to insert the symbol and type 2014
  • Without moving the cursor press keys Alt + x together
  • The original 2014 is now transformed into

How to type em dash symbol on Microsoft Windows

You can type the em dash on Microsoft windows using following steps:

  • Hold Alt and press to type em dash on your windows machine.

How to type em dash symbol on Mac OS

You can type the em dash on Mac OS using following steps:

  • Place your cursor in the text area where you need to insert the symbol
  • Press Ctrl + ⌘ Command + ⎵ Space to bring up the Character Viewer. Alternatively, choose Edit ⇒ Emoji & Symbols
  • Type "Em Dash" in the search field at the top and press Enter
  • The symbol should appear. Click on it to insert it into your text
Mac OS Character Viewer
Mac OS Character Viewer

How to type em dash symbol on Linux

You can type the em dash on Linux using following steps:

  • Place your cursor in the text area where you need to insert the symbol
  • Hold ⇧ Shift + Ctrl and press the letter + U
  • Press keys 2014 consecutively
  • And then press ↵ Enter , the desired symbol will be added to your document

How to type em dash symbol on IOS and Android

The easiest way to type the em dash symbol on ios and android is to copy and paste it wherever you need it.

How to use em dash in CSS

//CSS Example
1span { 2 content: \2014; 3 }

How to use em dash in HTML

//HTML Example
1<span>&#8212;</span>

Em Dash symbol representation in programming languages

Em Dashsymbol's representation in different programming languages can be found in table below:

LanguageRepresentation
Rust
\u{2014}
Ruby
\u{2014}
Python
\u2014
PHP
\u{2014}
Perl
\x{2014}
Java
\u2014
Modern JavaScript - Since ES6
\u{2014}
JavaScript
\u2014
Go
\u2014
C#
\u2014
C and C++
\u2014
Bash and Zsh - inside echo -e
\u2014
RFC 5137
\u'2014'