Em Dash Alt Code

Copy the em dash, —, or read its Alt code, Alt+0151, and the en dash code, Alt+0150.

—Em dashU+2014Ready to copy

26 dashes and hyphens. Tap any value to copy it.

26 dashes and hyphens. A character and its name both copy the character. A code copies the code.
CharacterNameCode pointAlt codeOption keysHTMLLaTeX
U+2014. The long dash. It breaks a sentence, and a pair sets off an aside. Alt+0151 on a number pad, with the zero; it has no short Alt code.
U+2013. Shorter than the em dash, and generally used for a range of values, as in 10–20. Alt+0150 on a number pad, with the zero.
U+002D. The one key of the keyboard that serves as hyphen, minus sign and dash. Unicode gives each of those three a character of its own as well.
U+2212. The minus sign of arithmetic. − in HTML. It has no Alt code.
U+2011. A hyphen that does not allow a line break, so both halves of the word stay on one line.
Made of U+002D and U+002D. The typewritten stand-in for an em dash: typographic convention replaces a double hyphen with the real dash.
Made of U+002D, U+002D and U+002D. The em dash as three key presses. With a Compose key, Compose and three hyphens type the em dash itself.

How it works

The em dash alt code is Alt+0151: hold Alt and type 0151 on the number pad to get —. The en dash, –, is Alt+0150. The rows tell the dashes, the hyphens and the minus signs apart.

Read the full guide

Long dash, short dash, hyphen

The em dash is the long dash symbol: it breaks a sentence, and a pair sets off an aside. The en dash is shorter and generally shows a range of values, as in 10–20. The key on the keyboard types the hyphen-minus, which stands in for hyphen, minus sign and dash alike.

Why the code has four digits

Short Alt codes come from code page 437, which has no dashes. Codes with a leading zero come from code page 1252, where the en dash is 150 and the em dash 151.

  • Option+Shift+hyphen types — and Option+hyphen types – on the U.S. layout.
  • With a Compose key, three hyphens give —; two hyphens and a period give –.

Questions and answers

What is the alt code for a dash?

It depends on the dash. The em dash, —, is Alt+0151 and the en dash, –, is Alt+0150, both typed on the number pad with the leading zero. The plain hyphen needs no code: it has a key of its own.

What is the long dash alt code?

Alt+0151. Long dash is an everyday name for the em dash, —, U+2014. Unicode has longer ones, the two-em dash ⸺ and the three-em dash ⸻, and neither has an Alt code.

What is the en dash alt code?

Alt+0150 types –, the en dash, U+2013. In HTML the en dash is – and the em dash is —.

Why does Alt+151 type ù and not a dash?

Without the leading zero the number is read from code page 437, where 151 is ù and 150 is û. Type the zero first: Alt+0151 for — and Alt+0150 for –.

All 26 dashes and hyphens

Start here 7

  • Em dash U+2014. The long dash. It breaks a sentence, and a pair sets off an aside. Alt+0151 on a number pad, with the zero; it has no short Alt code.
  • En dash U+2013. Shorter than the em dash, and generally used for a range of values, as in 10–20. Alt+0150 on a number pad, with the zero.
  • Hyphen-minus U+002D. The one key of the keyboard that serves as hyphen, minus sign and dash. Unicode gives each of those three a character of its own as well.
  • Minus sign U+2212. The minus sign of arithmetic. − in HTML. It has no Alt code.
  • Non-breaking hyphen U+2011. A hyphen that does not allow a line break, so both halves of the word stay on one line.
  • Three hyphens Made of U+002D, U+002D and U+002D. The em dash as three key presses. With a Compose key, Compose and three hyphens type the em dash itself.
  • Two hyphens Made of U+002D and U+002D. The typewritten stand-in for an em dash: typographic convention replaces a double hyphen with the real dash.
Show all 26 dashes and hyphens (19 more)

Dashes 7

  • Figure dash U+2012. As wide as a digit. It is used within numbers, such as a phone number set in a column.
  • Horizontal bar U+2015. Unicode's other name: quotation dash. Its note: long dash introducing quoted text. ― in HTML.
  • Small em dash U+FE58. Unicode defines it as U+2014 made small.
  • Swung dash U+2053. Like a lengthened tilde. It separates alternatives or approximates.
  • Three-em dash U+2E3B. Three ems long. Added in Unicode 6.1 (2012).
  • Two-em dash U+2E3A. Twice the em dash. Unicode's other name: omission dash. Added in Unicode 6.1 (2012), so an older device may draw an empty box.
  • Wave dash U+301C. A wavy line found in East Asian character sets, where it is used as a dash.

Hyphens 4

  • Fullwidth hyphen-minus U+FF0D. The keyboard hyphen in the width of a Chinese or Japanese character: Unicode defines it as U+002D in a wide form.
  • Hyphen U+2010. The hyphen and nothing else, where the keyboard character is hyphen and minus in one. ‐ in HTML.
  • Hyphen bullet U+2043. A bullet for lists in the shape of a hyphen. ⁃ in HTML.
  • Soft hyphen U+00AD. Cannot be seen. Unicode notes an invisible format character that marks where a word may be hyphenated. Alt+0173.

Minus signs 4

  • Heavy minus sign U+2796. A bold minus sign that is drawn as an emoji. Added in Unicode 6.0 (2010).
  • Small hyphen-minus U+FE63. The keyboard hyphen in a small form: Unicode defines it as U+002D made small.
  • Subscript minus U+208B. A lowered minus, set below the line like a subscript digit.
  • Superscript minus U+207B. A raised minus, as in a negative power: 10⁻³.

Look-alikes 4

  • Box drawings light horizontal U+2500. A line for drawing boxes, not punctuation. Alt+196 on a number pad.
  • Katakana-hiragana prolonged sound mark U+30FC. A Japanese mark that lengthens a vowel, not a dash. Unicode cross-refers the em dash to it.
  • Low line U+005F. The underscore, on the keyboard: a line on the baseline, not a dash. Unicode notes it joins to neighbouring copies of itself.
  • Macron U+00AF. A raised line, not a dash. Unicode's other name: overline. Alt+0175.

How this list was compiled: Names, and the code points they belong to, are from UnicodeData.txt, version 18.0.0 (https://www.unicode.org/Public/18.0.0/ucd/UnicodeData.txt), printed in sentence case. Other names, notes and cross-references are from NamesList.txt of the same version (https://www.unicode.org/Public/18.0.0/ucd/NamesList.txt); the version a character was added in is from DerivedAge.txt (https://www.unicode.org/Public/18.0.0/ucd/DerivedAge.txt), and the years are from https://www.unicode.org/history/publicationdates.html. Alt codes are from the code page 437 table (https://www.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/PC/CP437.TXT) and the code page 1252 table (https://www.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/WINDOWS/CP1252.TXT). Option keys are those of the U.S. keyboard layout as the Unicode CLDR project records it (https://github.com/unicode-org/cldr/blob/release-42/keyboards/osx/en-t-k0-osx.xml); other layouts differ. HTML entity names are from https://html.spec.whatwg.org/entities.json. LaTeX commands are listed only when LaTeX's own fontdef.dtx or ltoutenc.dtx (https://github.com/latex3/latex2e/tree/develop/base) defines them. A cell is empty where no such method exists. Compose sequences are from the X.org en_US.UTF-8 Compose file (https://gitlab.freedesktop.org/xorg/lib/libx11/-/blob/master/nls/en_US.UTF-8/Compose.pre). That the fullwidth and small forms are the keyboard hyphen in another shape is the decomposition field of UnicodeData.txt; that the heavy minus sign is drawn as an emoji is its Emoji_Presentation property (https://www.unicode.org/Public/18.0.0/ucd/emoji/emoji-data.txt). What each dash is for (a break in a sentence, a range of values, the figure dash within numbers, the double hyphen of the typewriter, the wave dash, the swung dash): https://en.wikipedia.org/wiki/Dash; the hyphen and the hyphen-minus: https://en.wikipedia.org/wiki/Hyphen. All read on 2 October 2026; Wikipedia text is CC BY-SA 4.0 and restated in this site's own words. Listed: the dashes of General Punctuation and Supplemental Punctuation, the hyphens and minus signs that differ from them, two typed stand-ins and four look-alikes. Left out: the dashed and wavy lines for drawing, which are on the Line symbols page, and the hyphens of other scripts. The Start here group and the order are this site's own choice. Licence: own work (facts from the Unicode Character Database, Unicode License v3, and from Wikipedia, CC BY-SA 4.0, restated in this site's own words; aliases and notes marked as Unicode's are quoted from NamesList.txt, Copyright © 1991-2026 Unicode, Inc., https://www.unicode.org/license.txt)