Punctuation & Typography

Alt+0150
En Dash –

Hold Alt and type 0150 on the numeric keypad to get the en dash symbol.

At a glance
Symbol
Alt code
Code page
Windows-1252
Mac
HTML
Unicode
Word

How to type Alt+0150

  1. Make sure Num Lock is on.
  2. Hold down the Alt key.
  3. Type 0150 on the numeric keypad. The number row above the letters will not work.
  4. Release Alt. The en dash symbol – appears.

The leading zero matters. Alt+0150 uses the Windows-1252 code page. Without the zero, Windows reads the older CP437 table and Alt+150 types a different character.

On a laptop without a numpad

Press Win+. to open the emoji panel, pick the Symbols tab and search for "en dash". Or open Character Map from the Start menu. In Microsoft Word you can type 2013 followed by Alt+X. Some laptops have a hidden numpad on the J, K, L, U, I and O keys that activates with Fn.

On a Mac

Alt codes do not exist on macOS, but this symbol has a shortcut: press Option+-.

In HTML and code

Use – in HTML, "\2013" in CSS and "\u2013" in JavaScript. See the En Dash guide for every platform.

Frequently asked questions

What does Alt+0150 type?+

Alt+0150 types the en dash symbol, – (Unicode U+2013). Hold Alt, type 0150 on the numeric keypad, then release Alt.

Why do I need the leading zero?+

Alt+0150 uses the Windows-1252 code page, which is selected by the leading zero. Without the zero, Windows reads the CP437 table and may type a different character.

Alt+0150 does not work. Why?+

Check that Num Lock is on and that you are using the numeric keypad rather than the number row. Laptops without a numpad cannot enter Alt codes: use Win + . for the symbol panel, Character Map, or copy the symbol from this page.

How do I type – on a Mac?+

Press Option+- on a Mac. Alt codes themselves do not work on macOS.

✓ Copied to clipboard