iPhone and iPad
- While typing, touch and hold the letter related to the one you want. To get é, touch and hold e, then slide to é and let go. Hold n for ñ and u for ü.
- For ¿ and ¡, tap 123 to open the numbers and punctuation keyboard, then touch and hold ? or !.
- If you write in Spanish a lot, add the Spanish keyboard: Settings > General > Keyboard > Keyboards > Add New Keyboard, then choose Spanish. It has its own ñ key and suggests Spanish words.
- Switch keyboards with the globe (Switch Keyboard) key, or touch and hold it and pick one. iPhone can also switch automatically between the two languages you type most, though not for every language.
Adding a keyboard also adds that language to your preferred language list, which some apps and websites use. It doesn't change the iPhone's own language.
Android (Gboard, Samsung Keyboard)
- In Gboard, touch and hold a key to see accents and other options. Hold a for á, n for ñ. For ¿ and ¡, open the ?123 symbols page and touch and hold ? or !.
- To add a Spanish keyboard in Gboard, tap the settings gear at the top of the keyboard, then Languages > Add keyboard, pick Spanish and a layout, and tap Done.
- Switch languages by touching and holding the space bar, or turn on Show language switch key in Gboard's Preferences.
- On Samsung Keyboard, add languages in the keyboard settings under Languages and types, then swipe left or right on the space bar to switch. Touch and hold letters for accents as on Gboard.
Mac
- Press and hold a letter key, such as e, to show the accent menu. Click the version you want, or press the number shown under it. The menu doesn't appear if the letter has no accents, and some apps don't support it.
- Dead keys are faster once you know them. On the U.S. or ABC layout, press Option-N (a tilde appears), then n for ñ. Option-E, then a vowel, gives the acute accent: á, é, í, ó, ú. Option-Shift-? types ¿ and Option-1 types ¡.
- To see every dead key, open the Keyboard Viewer from the input menu in the menu bar and hold Option or Option-Shift; dead keys get an orange outline.
- For less common characters, use the Character Viewer (Edit > Emoji & Symbols in most apps), or add the ABC - Extended input source in System Settings > Keyboard > Text Input.
Windows
Windows doesn't do press-and-hold on a physical keyboard, so pick one of these:
- Emoji and symbols panel: while typing, press Windows + . (period), select the Symbols tab and find the accented letters. Recently used ones stay at the front, so it gets faster.
- Alt codes: hold Alt and type four digits on the numeric keypad (the number row on top doesn't work): Alt + 0225 á, 0233 é, 0237 í, 0243 ó, 0250 ú, 0241 ñ, 0209 Ñ, 0252 ü, 0191 ¿, 0161 ¡.
- Add a keyboard layout: go to Settings > Time & language > Language & region, select the three dots next to your language > Language options > Add a keyboard. Options include the United States-International layout, where you type an apostrophe then a vowel for an accent, or a Spanish layout with its own ñ key. If a layout isn't listed, install the language that matches it first.
- Switch layouts with Windows + Space, or click the language indicator in the taskbar.
If it doesn't work
- Mac press-and-hold repeats the letter instead of showing accents: the app may not support it; try it in Notes or TextEdit. If it fails everywhere, use the Option dead keys above.
- Alt codes type nothing: they need a numeric keypad. Laptops without one should use Windows + period or a keyboard layout.
- Typing an apostrophe makes á instead of ' : you're on United States-International. Press the apostrophe then Space to get a plain apostrophe, or switch layouts with Windows + Space.
- Letters and symbols are in the wrong places: you switched to a Spanish layout by accident. Press Windows + Space (Windows) or check the input menu (Mac) and go back to your usual layout.
- Phone autocorrects Spanish into English: add the Spanish keyboard so suggestions and autocorrect understand both languages.
Good to know
- Accents matter in Spanish: papa (potato) and papá (dad) are different words, and si/sí or tu/tú change meaning too.
- The Chinese Pinyin keyboards on iPhone, Android, Windows and Mac are added the same way as Spanish, and you can keep both alongside English.
- Capital letters work the same way: hold Shift with press-and-hold, or use the capital Alt codes such as Alt + 0209 for Ñ.
People also ask
How do I type ñ on a laptop keyboard?
Mac: press Option-N, then n. Windows: press Windows + period and pick it from Symbols, use Alt + 0241 on a numeric keypad, or add a Spanish or United States-International layout.
How do I type an upside-down question mark?
iPhone and Android: touch and hold ? on the symbols keyboard. Mac: Option-Shift-?. Windows: Alt + 0191 on the numeric keypad, or the Symbols tab of Windows + period.
Can I type accents without changing my keyboard language?
Yes. Press-and-hold on phones and Macs, and Windows + period or Alt codes on Windows, all work with an English keyboard.
Why does press and hold not work on my Mac?
Apple notes the menu isn't shown for letters without accents and isn't available in all apps. Use Option-key dead keys or the Character Viewer instead.
Will adding a Spanish keyboard change my phone to Spanish?
No. The keyboard and the phone's language are separate settings. Menus stay in your current language.
How do I switch between English and Spanish keyboards quickly?
iPhone: tap the globe key. Gboard: touch and hold the space bar. Samsung: swipe the space bar. Windows: Windows + Space.
Facts checked against the makers' official pages on Dec 1, 2026. Sources we checked: