EN DASH vs EM DASH

EN DASH
U+2013
View details →
EM DASH
U+2014
View details →
VS

Property Comparison

Property – U+2013 — U+2014
Name EN DASH EM DASH
Block General Punctuation General Punctuation
Script Zyyy Zyyy
Category Dash Punctuation (Pd) Dash Punctuation (Pd)
Bidirectional ON ON

Encoding Comparison

Format U+2013 U+2014
unicode U+2013 U+2014
decimal 8211 8212
htmldecimal – —
htmlhex – —
css \2013 \2014
javascript \u{2013} \u{2014}
python \u2013 \u2014
java \u2013 \u2014
go \u2013 \u2014
ruby \u{2013} \u{2014}
rust \u{2013} \u{2014}
ccpp \u2013 \u2014
urlencoded %E2%80%93 %E2%80%94
utf8bytes e2 80 93 e2 80 94
utf16bebytes 20 13 20 14
utf32bebytes 00 00 20 13 00 00 20 14
htmlentity – —

How to Distinguish

Both EN DASH and EM DASH belong to the General Punctuation block and Zyyy script. Compare their codepoints and visual rendering to distinguish them.

Tip: Paste the character into a hex editor or use charCodeAt() in JavaScript to check the actual codepoint.

Related Comparisons

– EN DASH details — EM DASH details All Comparisons