LANGUAGE REFERENCE

Spanish ALT Codes

Type á, é, í, ó, ú, ñ, ¿, ¡ without changing your keyboard.

Spanish uses six accented vowels plus the distinctive ñ (ene con tilde) and two unique pieces of punctuation: ¿ and ¡. If you're writing in English most of the time but need to drop in a Spanish word — a name like José, a city like Málaga, or a phrase like ¿cómo estás? — switching your entire keyboard layout just for one word is overkill. ALT codes let you type any Spanish character from a US keyboard in two seconds.
Tap any character to copy — no need to type codes. Characters go straight to your clipboard, paste anywhere.

Quick Facts

Total Spanish characters
18 (6 acute vowels × 2 cases, ñ/Ñ, ü/Ü, and ¿ ¡)
Writing system
Latin alphabet + 1 extra letter (ñ) + inverted punctuation
Windows input
ALT + 4-digit code on numpad (all codes begin with 0)
Mac input
Option+E then letter (acute), Option+N then N (tilde)

About Spanish

Why Spanish only uses the acute accent. Unlike French, which uses grave, acute, and circumflex, Spanish uses only the acute mark (´), and only to indicate stress on an irregularly stressed syllable. If you see está with an accent, the stress falls on the final syllable; without it (esta), stress defaults to the penultimate syllable. This is why most words don't need accents — Spanish stress is rule-based, and the accent mark is an exception flag.

The ñ is its own letter. In Spanish, ñ is not "n with an accent" — it's a completely separate letter of the alphabet, ordered between n and o. It represents a palatal nasal sound, like the ny in English "canyon." The tilde on top originated as a scribal shorthand for a doubled n (nn) in medieval manuscripts, which is why Spanish año (year) comes from Latin annus.

The ü (u with diaeresis) is rare but matters. You'll see it in words like pingüino (penguin) and vergüenza (shame). It tells you to pronounce the u that would otherwise be silent after a g. Without the diaeresis, guerra is pronounced "GEH-rra" (silent u). With it, güero is "GWEH-roh" (u is pronounced).

Inverted punctuation is only used in Spanish. The inverted question mark (¿) and exclamation (¡) open questions and exclamations: ¿Dónde estás? / ¡Qué bueno!. This convention was formalized by the Real Academia Española in 1754 to help readers know from the start of a sentence whether it's a question — useful in Spanish because, unlike English, word order alone often doesn't distinguish questions from statements.

Frequently Asked Questions

What is the ALT code for ñ?
The ALT code for lowercase ñ is Alt+0241. For uppercase Ñ use Alt+0209. On Mac, press Option+N then N.
What are the ALT codes for all Spanish accented vowels?
á = Alt+0225, é = Alt+0233, í = Alt+0237, ó = Alt+0243, ú = Alt+0250, ü = Alt+0252. For uppercase versions add 8 to the lowercase code (e.g., Á = Alt+0193). All Windows ALT codes for Spanish use a 4-digit format starting with 0.
How do I type the inverted question mark ¿?
On Windows: Alt+0191. On Mac: Option+Shift+?. Or just copy it from this page.
How do I type the inverted exclamation ¡?
On Windows: Alt+0161. On Mac: Option+1.
Do I need to switch to a Spanish keyboard to type accents?
No. ALT codes work from any keyboard layout. You only need to switch if you type Spanish extensively — for occasional use, ALT codes or copying from this page is faster.
What's the difference between á and à in Spanish?
Spanish uses only the acute accent (á). The grave accent (à) is used in French, Italian, and Portuguese — not Spanish. If you see à in what looks like Spanish text, it's a typo or a loanword.