Alt codes let you type symbols that are not printed on your keyboard. On Windows, hold down Alt, type the code on the numeric keypad and let go: Alt+0176 gives °, Alt+0169 gives ©, Alt+0153 gives ™ and Alt+0151 gives an em dash. Codes with a leading 0 come from the Windows character list, codes without it from the list of the original IBM PC, so Alt+247 and Alt+0247 give two different symbols. On a laptop without a keypad, Character Map does the same job. On a Mac, press Fn or Globe with E to open the Character Viewer, and on a phone, touch and hold the closest key.
In short
- Alt codes work only with the digits on the numeric keypad, and Num Lock has to be on if your keyboard needs it for the keypad.
- A leading zero switches Windows from Code Page 437, the character list of the original PC, to Code Page 1252, so Alt+0169 gives the copyright sign.
- On a Mac, the Character Viewer opens with Fn or Globe plus E and finds a symbol by its name or code.
- On iPhone, and on Android phones with Gboard, touching and holding a key shows its accents and other options.
On this page 10 sections
How alt codes work on Windows#
An alt code is a number that stands for one character. On Windows, you hold down the Alt key, type the number on the numeric keypad, then let go of Alt, and the symbol appears where your cursor is[1]. The numeric keypad is the block of number keys on the right side of a full-size keyboard.
The first IBM PC already let you enter characters that were not printed on the keys by holding Alt and typing a decimal number on the keypad[2]. Windows kept the same numbers so that codes people had memorized kept working[2].
You must use the keypad, because the number row above the letters does not count, and Num Lock has to be on if your keyboard needs it for the keypad to type numbers[1].
Symbol chart of common alt code symbols#
The tables group everyday symbols by what they are used for. The Alt code column is what you type on the keypad while holding Alt. The Unicode column gives the same character's number in Unicode, the shared numbering system that lets every computer and phone agree on which character is which. The number is written in hex, a way of counting that uses the digits 0 to 9 plus the letters A to F, with U+ in front[3]. You need it for the Mac search and the Office method further down. Plain letters, digits and basic punctuation are in the ASCII table with decimal and hex codes.
Money, legal and reference marks
| Symbol | Name | Alt code (keypad) | Unicode |
|---|---|---|---|
| € | Euro sign | Alt+0128 | U+20AC |
| ¢ | Cent sign | Alt+0162 | U+00A2 |
| £ | Pound sign | Alt+0163 | U+00A3 |
| ¥ | Yen sign | Alt+0165 | U+00A5 |
| © | Copyright | Alt+0169 | U+00A9 |
| ® | Registered | Alt+0174 | U+00AE |
| ™ | Trademark | Alt+0153 | U+2122 |
| § | Section sign | Alt+0167 | U+00A7 |
Punctuation and quotation marks
The two dashes are easy to mix up; our guide to the em dash, the en dash and the hyphen shows when to use each.
| Symbol | Name | Alt code (keypad) | Unicode |
|---|---|---|---|
| – | En dash | Alt+0150 | U+2013 |
| — | Em dash | Alt+0151 | U+2014 |
| … | Ellipsis | Alt+0133 | U+2026 |
| • | Bullet | Alt+0149 | U+2022 |
| « | Left angle quote | Alt+0171 | U+00AB |
| » | Right angle quote | Alt+0187 | U+00BB |
| ¿ | Inverted question mark | Alt+0191 | U+00BF |
Math and measurement
The last seven rows have no leading zero. They come from the old PC list, Code Page 437, so you type them without the zero[2][4]. The degree sign also has its own guide to typing the degree symbol on Windows, Mac, iPhone and Android.
| Symbol | Name | Alt code (keypad) | Unicode |
|---|---|---|---|
| ° | Degree | Alt+0176 | U+00B0 |
| ± | Plus-minus | Alt+0177 | U+00B1 |
| × | Multiplication | Alt+0215 | U+00D7 |
| ÷ | Division | Alt+0247 | U+00F7 |
| ² | Superscript two (squared) | Alt+0178 | U+00B2 |
| µ | Micro | Alt+0181 | U+00B5 |
| ¼ | One quarter | Alt+0188 | U+00BC |
| ½ | One half | Alt+0189 | U+00BD |
| ∞ | Infinity | Alt+236 | U+221E |
| ≈ | Almost equal to | Alt+247 | U+2248 |
| ≤ | Less than or equal to | Alt+243 | U+2264 |
| ≥ | Greater than or equal to | Alt+242 | U+2265 |
| √ | Square root | Alt+251 | U+221A |
| π | Pi | Alt+227 | U+03C0 |
| Ω | Omega (Greek capital letter) | Alt+234 | U+03A9 |
Accented letters
| Symbol | Name | Alt code (keypad) | Unicode |
|---|---|---|---|
| á | a with acute | Alt+0225 | U+00E1 |
| é | e with acute | Alt+0233 | U+00E9 |
| ñ | n with tilde | Alt+0241 | U+00F1 |
| ü | u with two dots (umlaut) | Alt+0252 | U+00FC |
| ç | c with a small hook below (cedilla) | Alt+0231 | U+00E7 |
Why the leading zero changes the symbol#
When Windows arrived in the US, it used Code Page 1252, which Microsoft called the ANSI character set, and the older list of the IBM PC became known as the OEM character set[2]. A code page is simply a numbered list of characters, like a seating chart where every seat number holds one letter or symbol.
To keep old habits working, a plain Alt code is still looked up in the OEM list[2]. If you type a 0 first on the keypad, Windows looks the number up in the ANSI list instead[2]. That is how Alt+0169 gives you ©, a sign the old PC list never had[2].
Alt+164 still types ñ, even though ñ sits at number 241 in Code Page 1252[2], so Alt+0241 works too[3]. It also explains surprises: Alt+247 gives ≈ from the old list[4], while Alt+0247 gives the division sign ÷[3].
Special characters on a keyboard without a number pad#
On a laptop without a numeric keypad, alt codes are hard to use, because the number row above the letters does not count[1]. Windows and Office have two other ways in.
Character Map
Character Map is a small program built into Windows that shows every character a font contains[1]. To open it, type "character" in the search box on the taskbar and pick Character Map from the results, which is the route Microsoft gives for Windows 10[1]. Click the symbol, click Select, then right-click where you want it in your document and click Paste[1].
Unicode code plus Alt+X in Office
In Office documents, type the Unicode number from the tables above, then press Alt and X together. Microsoft's example is 0024 followed by Alt+X, which turns into a dollar sign[1]. If Alt+X converts the wrong characters, type U+ in front of the number[1]. Some Office programs, such as PowerPoint, cannot convert codes this way, and Microsoft points to Character Map for those[1].
How to type symbols on Mac#
On a Mac, you search for a symbol in the Character Viewer, look up Option key symbols in the Keyboard Viewer, or press and hold a letter for its accents[5][6][7].
Character Viewer for any symbol
Press the Fn or Globe key together with E, or choose Edit > Emoji & Symbols in the menu bar of the app you are typing in[5]. Search for the symbol by its name or code and click it to put it into your text[5]. Symbols you use a lot can be saved as favorites, which then appear at the top of the viewer[5].
Keyboard Viewer for Option key symbols
Many symbols sit on the regular keys and appear when you hold Option, sometimes with Shift. To see the map for your own keyboard, click the Input menu in the menu bar and choose Show Keyboard Viewer, then hold Option or Shift and watch the keys change[6].
Press and hold for accents
Press and hold a letter key, and a small accent menu pops up with the accents available for that letter[7]. For frequent accents, dead keys are faster. A dead key types an accent mark first, and the mark lands on the next letter you press[7]. On the ABC layout, press Option-N to type a tilde, then press a to get ã[7].
Phone shortcuts for symbols on iPhone and Android#
On iPhone, touch and hold the letter, number or symbol that looks closest to the character you want[8]. To type é, for example, touch and hold e, slide your finger to é and lift it[8].
On Android phones with Gboard, Google's keyboard, the rule is the same: touch and hold a key to see its accents and other options[9].
When an alt code gives the wrong symbol#
Most failures come from one of these causes:
- The digits were typed on the number row instead of the keypad, or Num Lock was off[1].
- The leading zero was added or left out, which switches between the two lists[2].
- The number is larger than 255. Windows usually keeps only the remainder after dividing by 256, so Alt+259 types the same as Alt+3, a heart ♥[2].
- The program handles codes its own way. Some text boxes accept much larger numbers, so a code like Alt+9731 can give a snowman ☃ in one program and a heart in another[2].
Which method to use#
On a Windows desktop with a numeric keypad, alt codes are the fastest way to type a symbol you use often, such as Alt+0176 for ° or Alt+0151 for an em dash[1][3]. On a laptop without a keypad, use Character Map, or type the Unicode number and press Alt+X in Office[1]. On a Mac, open the Character Viewer with Fn or Globe and E and search for the symbol by name[5]. On a phone, touch and hold the closest key[8][9].
Frequently asked questions
Why are my alt codes not working?
What is Alt 0151?
What is the alt code for a heart?
Sources
Numbers in square brackets in the text point to these sources.
- 1 Insert ASCII or Unicode Latin-based symbols and charactersMicrosoft Support · accessed Nov 14, 2026support.microsoft.com
- 2 The history of Alt+number sequences, and why Alt+9731 sometimes gives you a heart and sometimes a snowmanMicrosoft, The Old New Thing (Raymond Chen) · published Jul 2, 2024 · accessed Nov 14, 2026devblogs.microsoft.com
- 3 cp1252 to Unicode tableUnicode Consortium (mapping table supplied by Microsoft) · published Apr 15, 1998 · accessed Nov 14, 2026unicode.org
- 4 cp437_DOSLatinUS to Unicode tableUnicode Consortium (mapping table supplied by Microsoft) · published Apr 24, 1996 · accessed Nov 14, 2026unicode.org
- 5 Use emoji and symbols on MacApple Support, Mac User Guide · accessed Nov 14, 2026support.apple.com
- 6 Use the Keyboard Viewer on MacApple Support, Mac User Guide · accessed Nov 14, 2026support.apple.com
- 7 Enter characters with accent marks on MacApple Support, Mac User Guide · accessed Nov 14, 2026support.apple.com
- 8 Type with the onscreen keyboard on iPhoneApple Support, iPhone User Guide · accessed Nov 14, 2026support.apple.com
- 9 Use your keyboardGoogle, Gboard Help · accessed Nov 14, 2026support.google.com