Spanish Accent Alt Codes: The Complete List for Windows, Mac & Word

To type Spanish accents with Alt codes, hold Alt and type the 4-digit code on your numeric keypad for example, Alt+0241 produces ñ. This only works on keyboards with a physical numeric keypad. If you’re on a laptop, you’ll need the Word Alt+X method or the Mac Option-key method covered below.

Spanish uses 9 characters you won’t find on a standard English keyboard: six accented vowels (á, é, í, ó, ú, ü), one tilde letter (ñ), and two inverted punctuation marks (¿, ¡). This guide covers every method to type them on Windows, in Microsoft Word, on Mac, and in HTML including the workaround most guides skip: what to do if your keyboard has no numeric keypad.

What Are Alt Codes (and Why They Fail on Laptops)

An Alt code is a numeric sequence you type while holding the Alt key to insert a character that isn’t on your keyboard. Windows reads the digits from the numeric keypad specifically not the number row across the top of your keyboard. That’s the detail that trips most people up.

Most laptops don’t have a separate numeric keypad, which is why Alt codes often “don’t work” for laptop users. If that’s you, skip to How to Type Spanish Accents Without a Numeric Keypad below you have three reliable alternatives.

There are also two different Alt code systems floating around online, which is why you’ll see conflicting numbers on different sites:

  • Windows ANSI codes (4 digits, always start with a leading zero e.g., Alt+0241): the modern standard, reliable in Word, browsers, email, and virtually all current Windows apps. Use these.
  • Legacy DOS/OEM codes (3 digits, no leading zero e.g., Alt+164): an older codepage system that still works in Notepad and some legacy software but is inconsistent in modern applications, especially Word and web browsers. Avoid these unless you know you need them.

Every code in the table below is the modern 4-digit ANSI version.

Spanish Accent Alt Codes for Windows (Full List)

Hold Alt, type the 4-digit code below on your numeric keypad, then release Alt.

Formula/ShortcutSyntax/KeyDescription/Action
ÁAlt+0193Capital A with acute accent
áAlt+0225Lowercase a with acute accent
ÉAlt+0201Capital E with acute accent
éAlt+0233Lowercase e with acute accent
ÍAlt+0205Capital I with acute accent
íAlt+0237Lowercase i with acute accent
ÓAlt+0211Capital O with acute accent
óAlt+0243Lowercase o with acute accent
ÚAlt+0218Capital U with acute accent
úAlt+0250Lowercase u with acute accent
ÜAlt+0220Capital U with diaeresis (umlaut)
üAlt+0252Lowercase u with diaeresis (umlaut)
ÑAlt+0209Capital N with tilde
ñAlt+0241Lowercase n with tilde
¡Alt+0161Inverted exclamation mark
¿Alt+0191Inverted question mark
ªAlt+0170Feminine ordinal indicator
ºAlt+0186Masculine ordinal indicator
Alt+0128Euro sign

Tip: If a code doesn’t work, check that Num Lock is on and that you’re using the numeric keypad, not the top number row.

How to Type Spanish Accents in Microsoft Word (Alt+X Method)

This is the method for laptops without a numeric keypad it only works inside Microsoft Word. Type the 4-character hex code immediately before your cursor, then press Alt+X. Word converts the code into the character and removes the code text.

Formula/ShortcutSyntax/KeyDescription/Action
Á00C1 + Alt+XCapital A with acute
á00E1 + Alt+XLowercase a with acute
É00C9 + Alt+XCapital E with acute
é00E9 + Alt+XLowercase e with acute
Í00CD + Alt+XCapital I with acute
í00ED + Alt+XLowercase i with acute
Ó00D3 + Alt+XCapital O with acute
ó00F3 + Alt+XLowercase o with acute
Ú00DA + Alt+XCapital U with acute
ú00FA + Alt+XLowercase u with acute
Ü00DC + Alt+XCapital U with diaeresis
ü00FC + Alt+XLowercase u with diaeresis
Ñ00D1 + Alt+XCapital N with tilde
ñ00F1 + Alt+XLowercase n with tilde
¡00A1 + Alt+XInverted exclamation mark
¿00BF + Alt+XInverted question mark
ª00AA + Alt+XFeminine ordinal indicator
º00BA + Alt+XMasculine ordinal indicator

Example: type 00F1, then press Alt+X, and it instantly becomes ñ.

How to Type Spanish Accents on Mac

Mac doesn’t use numeric Alt codes at all it uses dead-key combinations with the Option key. Press the first combination, release, then press the letter.

Formula/ShortcutSyntax/KeyDescription/Action
á, é, í, ó, ú (acute vowels)Option+E, then [vowel]Types any vowel with an acute accent
ñOption+N, then NTypes a lowercase n with a tilde
üOption+U, then UTypes a lowercase u with a diaeresis (umlaut)
¡Option+1Types an inverted exclamation mark
¿Option+Shift+?Types an inverted question mark

Example: to type é, press Option+E, release both keys, then press E. To type capital Ñ, use the same combo but hold Shift for the second N.

Advanced option: you can also enable Unicode Hex Input in System Settings → Keyboard → Input Sources, which lets you type the same 4-digit hex codes used in Word (hold Option and type the code). This is optional and mainly useful if you’re already used to hex codes from Windows.

How to Type Spanish Accents Without a Numeric Keypad

If you’re on a laptop with no separate numpad, you have three reliable options:

  1. Use the Fn+Alt method. Many laptops embed a numeric keypad within the letter keys (usually 7, 8, 9, U, I, O, J, K, L, M). Hold Fn+Alt, then type the code using those embedded keys instead of a physical keypad.
  2. Use Word’s Alt+X method (see table above) no numpad required at all.
  3. Turn on the on-screen keyboard or Character Map (Windows) search “Character Map” in the Start menu, find the accented letter, and copy it directly.

On Chromebook or Android, the easiest method is long-pressing the base letter (e.g., long-press “n” to reveal “ñ” as an option) no codes needed.

Spanish Accent HTML Codes

If you’re editing a webpage directly in HTML, use one of these three formats entity name, decimal, or hex. All three render identically in a browser.

Formula/ShortcutSyntax/KeyDescription/Action
ÁÁ | Á | ÁCapital A with acute accent
áá | á | áLowercase a with acute accent
ÉÉ | É | ÉCapital E with acute accent
éé | é | éLowercase e with acute accent
ÍÍ | Í | ÍCapital I with acute accent
íí | í | íLowercase i with acute accent
ÓÓ | Ó | ÓCapital O with acute accent
óó | ó | óLowercase o with acute accent
ÚÚ | Ú | ÚCapital U with acute accent
úú | ú | úLowercase u with acute accent
ÜÜ | Ü | ÜCapital U with diaeresis (umlaut)
üü | ü | üLowercase u with diaeresis (umlaut)
ÑÑ | Ñ | ÑCapital N with tilde
ññ | ñ | ñLowercase n with tilde
¡¡ | ¡ | ¡Inverted exclamation mark
¿¿ | ¿ | ¿Inverted question mark
ªª | ª | ªFeminine ordinal indicator
ºº | º | ºMasculine ordinal indicator

Download the free Spanish Accents Alt Codes PDF to keep this chart handy offline.

Frequently Asked Questions

Why isn’t my Alt code working?

Most likely you’re using the top number row instead of the numeric keypad, or Num Lock is off. Laptops without a physical numpad can’t use this method at all use the Word Alt+X or Fn+Alt method instead.

How do I type ñ on a laptop without a numeric keypad?

Use Word’s Alt+X method (type 00F1, press Alt+X), or the Fn+Alt combination on keyboards with an embedded numpad, or Character Map for a quick copy-paste.

Do Alt codes work in Google Docs or in a browser?

No Alt codes are a Windows OS-level feature and don’t work reliably inside browser text fields or Google Docs. Use Character Map to copy the character, or your OS’s built-in emoji/symbol picker (Windows key + period).

What’s the fastest way to type Spanish accents on a Chromebook or phone?

Long-press the base letter. Long-pressing “n” reveals ñ, long-pressing “a” reveals á, and so on this works in both Android and iOS keyboards and in ChromeOS.

Is there a difference between the 3-digit and 4-digit Alt codes I see on other sites?

Yes. 3-digit codes (no leading zero) are legacy DOS/OEM codes and can produce the wrong character in modern apps like Word or your browser. Always use the 4-digit codes with a leading zero (e.g., 0241, not 164) for reliable results.

How do I type Spanish accents on Mac without dead keys?

Enable Unicode Hex Input under System Settings → Keyboard → Input Sources, then hold Option and type the same 4-digit hex codes used in Word.

Conclusion

Typing Spanish accents doesn’t have to mean copying and pasting from a website every time. Once you know the right method for your setup Alt codes on a desktop with a numeric keypad, Alt+X in Word, dead keys on Mac, or a long-press on mobile typing á, é, í, ó, ú, ü, ñ, ¿, and ¡ becomes second nature within a day or two of practice.

The most common mistake isn’t forgetting the codes it’s using the wrong system for your device (like trying a numpad Alt code on a laptop that doesn’t have one). Bookmark this page or download the free PDF cheat sheet above so you always have the correct method on hand, whichever device you’re typing on.

READ NEXT:

Pratik

Pratik is the founder of Tutorial Tactic and a productivity tools specialist with 15 years of hands-on experience in Google Workspace, Microsoft Office, and software automation. He has published over 1,500 guides on keyboard shortcuts, software commands, how-to tutorials and workflow optimization, helping readers across the US and India work faster with the tools they use every day. Tutorial Tactic was founded in 2021 with one goal: cut through the noise and give readers exactly what they need fast, verified, and beginner-friendly.
Back to top button