How to Type Spanish Accents, ñ, ¿ and ¡ on Any Keyboard
Quick answer: Spanish needs nine special characters: á é í ó ú ü ñ ¿ ¡. On Windows each has a real Alt code (ñ is Alt+0241, ¿ Alt+0191; see the table above). On a Mac, Option+E then a vowel gives the accent and Option+N then N gives ñ. On phones, press and hold the letter.
Quick reference: every method
Every Alt code below is verified against the real Windows code pages — where none exists we say so, rather than list one that won’t work.
| Char | Name | Windows | Mac | HTML | Word (Alt+X) | Unicode |
|---|---|---|---|---|---|---|
| á | Latin Small Letter A With Acute | Alt+0225 |
Option+E, A |
á |
00E1 + Alt+X |
U+00E1 |
| é | Latin Small Letter E With Acute | Alt+0233 |
Option+E, E |
é |
00E9 + Alt+X |
U+00E9 |
| í | Latin Small Letter I With Acute | Alt+0237 |
Option+e, then i |
í |
00ED + Alt+X |
U+00ED |
| ó | Latin Small Letter O With Acute | Alt+0243 |
Option+e, then o |
ó |
00F3 + Alt+X |
U+00F3 |
| ú | Latin Small Letter U With Acute | Alt+0250 |
Option+e, then u |
ú |
00FA + Alt+X |
U+00FA |
| ü | Latin Small Letter U With Diaeresis | Alt+0252 |
Option+U, U |
ü |
00FC + Alt+X |
U+00FC |
| ñ | Latin Small Letter N With Tilde | Alt+0241 |
Option+N, N |
ñ |
00F1 + Alt+X |
U+00F1 |
| Ñ | Latin Capital Letter N With Tilde | Alt+0209 |
Option+n, then N |
Ñ |
00D1 + Alt+X |
U+00D1 |
| ¿ | Inverted Question Mark | Alt+0191 |
Copy / paste | ¿ |
00BF + Alt+X |
U+00BF |
| ¡ | Inverted Exclamation Mark | Alt+0161 |
Copy / paste | ¡ |
00A1 + Alt+X |
U+00A1 |
Windows: Alt codes
| Letter | Lower case | Capital |
|---|---|---|
| á / Á | Alt+0225 | Alt+0193 |
| é / É | Alt+0233 | Alt+0201 |
| í / Í | Alt+0237 | Alt+0205 |
| ó / Ó | Alt+0243 | Alt+0211 |
| ú / Ú | Alt+0250 | Alt+0218 |
| ü / Ü | Alt+0252 | Alt+0220 |
| ñ / Ñ | Alt+0241 | Alt+0209 |
| ¿ ¡ | Alt+0191, Alt+0161 |
Use the numeric keypad with Num Lock on. Laptop without one? See Alt codes not working.
Windows: US-International layout
Add United States-International as a keyboard (Settings → Time & language → Language & region → Language options → Add a keyboard) and switch with Win+Space. Then:
'then a vowel → á é í ó ú"then u → ü~then n → ñ, or AltGr+N- AltGr+/ → ¿ and AltGr+1 → ¡
Press the apostrophe or quote key and then Space when you want the plain character.
Mac
- Accented vowels: Option+E, then the vowel (á é í ó ú)
- ü: Option+U, then u
- ñ: Option+N, then n
- ¿: Shift+Option+?; ¡: Option+1
Holding a vowel or n also shows its accented forms.
Phones
Press and hold a vowel, n, ? or ! and slide to the character. Adding a Spanish keyboard (Settings → General → Keyboard → Keyboards on iPhone; Gboard settings → Languages on Android) also adds Spanish autocorrect, which adds many accents for you.
Spanish punctuation
Questions and exclamations open with the inverted mark: ¿Dónde está?, ¡Hola!. The opening mark goes where the question or exclamation starts, which can be mid-sentence: Si llueve, ¿vienes?
Related: French, Portuguese, our Spanish alphabet page, accented letters and the accent keyboard.
Frequently asked questions
How do I type ñ?
Windows: Alt+0241 (Alt+0209 for Ñ), or AltGr + N on the US-International layout. Mac: Option + N, then N. Phones: press and hold n.
How do I type ¿ and ¡?
Windows: Alt+0191 for ¿ and Alt+0161 for ¡. Mac: Shift + Option + ? for ¿ and Option + 1 for ¡. Phones: press and hold ? or !.
When does Spanish use ü?
Only after g in the combinations güe and güi, to show that the u is pronounced, as in pingüino and vergüenza.
Do I need a Spanish keyboard?
No. Alt codes, the US-International layout and the Mac Option keys all type every Spanish character on a normal US keyboard.
Looking for something else? Browse 1,000+ copy-paste symbols, the full Alt Codes finder, or the emoji picker.