Full table
Tap a character in the first column to copy it.
| Character | Alt code | Old code | Mac | HTML | Unicode |
|---|---|---|---|---|---|
| Alt 0225 | Alt 160 | ⌥ E, then a | á | U+00E1 | |
| Alt 0233 | Alt 130 | ⌥ E, then e | é | U+00E9 | |
| Alt 0237 | Alt 161 | ⌥ E, then i | í | U+00ED | |
| Alt 0243 | Alt 162 | ⌥ E, then o | ó | U+00F3 | |
| Alt 0250 | Alt 163 | ⌥ E, then u | ú | U+00FA | |
| Alt 0252 | Alt 129 | ⌥ U, then u | ü | U+00FC | |
| Alt 0241 | Alt 164 | ⌥ N, then n | ñ | U+00F1 | |
| Alt 0193 | Alt 181 (Spanish Windows only) | ⌥ E, then ⇧ A | Á | U+00C1 | |
| Alt 0201 | Alt 144 | ⌥ E, then ⇧ E | É | U+00C9 | |
| Alt 0205 | Alt 214 (Spanish Windows only) | ⌥ E, then ⇧ I | Í | U+00CD | |
| Alt 0211 | Alt 224 (Spanish Windows only) | ⌥ E, then ⇧ O | Ó | U+00D3 | |
| Alt 0218 | Alt 233 (Spanish Windows only) | ⌥ E, then ⇧ U | Ú | U+00DA | |
| Alt 0220 | Alt 154 | ⌥ U, then ⇧ U | Ü | U+00DC | |
| Alt 0209 | Alt 165 | ⌥ N, then ⇧ N | Ñ | U+00D1 | |
| Alt 0191 | Alt 168 | ⌥ ⇧ ? | ¿ | U+00BF | |
| Alt 0161 | Alt 173 | ⌥ 1 | ¡ | U+00A1 | |
| Alt 0171 | Alt 174 | ⌥ \ | « | U+00AB | |
| Alt 0187 | Alt 175 | ⌥ ⇧ \ | » | U+00BB | |
| Alt 0151 | — | ⌥ ⇧ - | — | U+2014 | |
| Alt 0128 | — | ⌥ ⇧ 2 | € | U+20AC | |
| Alt 0186 | Alt 167 | ⌥ 0 | º | U+00BA | |
| Alt 0170 | Alt 166 | ⌥ 9 | ª | U+00AA |
The four-digit codes (with a leading 0) are Windows codes and work the same on every PC. The old three-digit codes date back to MS-DOS and depend on the system language: Alt 164 gives ñ almost everywhere, but Alt 181 gives Á only on Spanish Windows; on English Windows it gives ╡.
How to use an Alt code
- Turn on Num Lock (the number pad light).
- Hold the left Alt key.
- Type the code on the number pad on the right, not the number row: 0, 2, 4, 1.
- Let go of Alt. ñ appears.
No number pad?
- US-International keyboard: ' then the vowel, ~ then n. See accents on Windows.
- Symbol panel: Win ., Ω tab › Latin symbols.
- Hidden number pad: on some laptops, Fn + Num Lock turns U I O J K L M into numbers. It works, but it's clumsy.
- On-Screen Keyboard: type “osk” in Start; it has a number pad (turn it on in Options).
In Word: Alt X
Word converts Unicode codes: type 00f1 and press Alt X to get ñ. It works with any code in the Unicode column, no number pad needed. Press Alt X again to turn it back into the code.
On Mac, Chromebook and Linux
There are no Alt codes. On a Mac, use the Option shortcuts in the table (accents on Mac). On Chromebook and Linux, Ctrl ⇧ U, the Unicode code without “U+”, then Enter: Ctrl ⇧ U f1 ⏎ gives ñ (accents on Chromebook).
Frequently asked questions
What is the Alt code for ñ?
Alt + 0241 (or Alt + 164) for ñ, and Alt + 0209 (or Alt + 165) for Ñ.
What is the ASCII code for ñ?
ñ isn't in the original 128-character ASCII. In MS-DOS extended ASCII it's 164, which is what Alt + 164 uses; in Windows-1252 and Unicode it's 241.
Why isn't my Alt code working?
Check that Num Lock is on and that you're using the number pad, not the number row. Some programs, like certain terminals, ignore Alt codes.