Hold Alt and type 0241 on the numeric keypad to type ñ on Windows, or 0209 for the capital Ñ.
On a Mac, press Option + N and then N; on iPhone and Android, touch and hold N. This guide also covers Word, Chromebook, Linux, keyboards with no number pad, and the Unicode and HTML codes.
How to type N with tilde using your keyboard
Find your device in the first column and use the shortcut next to it. Each route types the lowercase ñ; the last column gives the capital Ñ.
| Your device or app | Type ñ | Type Ñ |
|---|---|---|
| Windows keyboard with a numeric keypad | Hold Alt, type 0241 on the keypad |
Hold Alt, type 0209 on the keypad |
| Windows laptop with no keypad | Press Windows logo key + ., open Symbols, pick ñ | Pick Ñ in the same panel |
| Microsoft Word or classic Outlook | Press Ctrl + Shift + ~, release, then press N | Press Ctrl + Shift + ~, release, then Shift + N |
| Windows with the United States-International layout | Press Shift + `, then N | Press Shift + `, then Shift + N |
| Mac | Press Option + N, then N | Press Option + N, then Shift + N |
| Chromebook with English (US) with International keyboard | Press AltGr + N | Use Shift + `, then Shift + N |
| iPhone or iPad | Touch and hold n, slide to ñ | Tap Shift, then touch and hold N |
| Android with Gboard | Touch and hold n, slide to ñ | Tap Shift, then touch and hold N |
| Linux (GNOME) | Press Ctrl + Shift + U, type 00f1, press Space |
Same, with 00d1 |
| HTML | ñ or ñ |
Ñ or Ñ |
What Ñ is and why it’s different from N
Ñ, called eñe in Spanish, is a letter in its own right, not an N with decoration. It has its own name and its own place in the Spanish alphabet, straight after N, so swapping one for the other changes the word.
| Feature | N | Ñ |
|---|---|---|
| Spanish name | ene | eñe |
| Sound | n as in no | ny as in canyon |
| Place in the Spanish alphabet | 14th letter | 15th letter, after N |
| Example of the difference | pena (pity) | peña (rocky hill) |
| Origin | Latin letter | Medieval shorthand for nn, as in Old Spanish anno, now año |
| Unicode code point | U+004E, U+006E | U+00D1, U+00F1 |
Because ñ is a separate letter, Spanish dictionaries sort words starting with ñ after every word starting with n.
How to type ñ with Alt code 0241 on Windows
Alt codes work in almost any Windows app that accepts text, but only with the numeric keypad. The number row along the top of the keyboard does not work for this.
- Click where the ñ should go.
- Turn on Num Lock so the keypad types numbers.
- Press and hold Alt.
- Type
0241on the numeric keypad, including the leading zero. - Release Alt, and ñ appears at the cursor.
- For a capital Ñ, repeat the steps with
0209.
Spanish punctuation uses the same method. Alt + 0161 types the upside down exclamation point and Alt + 0191 types ¿.

How to type ñ on Windows without a number pad
Most laptops have no numeric keypad, so Alt codes are out. The emoji panel includes accented letters in its Symbols section and works on every keyboard layout.
- Click where you want the letter.
- Press Windows logo key + . (period) to open the emoji panel.
- Select Symbols.
- Scroll to the accented letters and select ñ or Ñ.
Character Map is the other built-in route. Open it from Start, select Advanced view, type 00F1 in Go to Unicode, then select Select and Copy and paste the letter with Ctrl + V.
The same panel handles other symbols, such as the degree sign on a keyboard and the yen symbol.

How to type ñ in Microsoft Word and Outlook
Word and classic Outlook have a two-part tilde shortcut that needs no keypad. Press the first combination, let go, then press the letter.
| Route | Do this | Result |
|---|---|---|
| Tilde shortcut | Press Ctrl + Shift + ~, release, then press N | ñ |
| Tilde shortcut, capital | Press Ctrl + Shift + ~, release, then press Shift + N | Ñ |
| Unicode code | Type 00F1, then press Alt + X |
Word converts the code to ñ |
| Unicode code, capital | Type 00D1, then press Alt + X |
Ñ |
| Symbol dialog | Select Insert > Symbol > More Symbols, pick ñ, then Insert | Works on laptops with no keypad |
| New Outlook for Windows | Hold Alt and type 0241 on the keypad |
ñ |
| Google Docs or Slides | Select Insert > Symbols > Special characters and search for n with tilde | Click ñ to insert it |
The same tilde shortcut gives ã and õ in Word. For é, á and the other marks, the shortcuts for letters with accents follow the same press, release, letter pattern.
Change your PC’s keyboard layout to US International
The United States-International layout keeps every key where a US keyboard has it, but turns a few punctuation keys into dead keys. A dead key waits for the next letter and combines with it, so the tilde key followed by N gives ñ.
- Select Start > Settings > Time & language > Language & region.
- Select the ellipsis (…) next to your display language, then Language options.
- Next to Installed keyboards, select Add a keyboard.
- Choose United States-International from the list.
- Hold the Windows logo key and press Spacebar to switch to the new layout.
- Press Shift + ` (the tilde key), then press N to type ñ.
- Press Shift + `, then Shift + N to type Ñ.
A Spanish keyboard layout is the other option. It has a dedicated ñ key to the right of L, but it moves several punctuation keys, so it suits people who write in Spanish all day. Add it the same way, after adding Spanish under Preferred languages if it is missing.

Ñ character on macOS: how to type ñ on a Mac
macOS has two built-in ways to type ñ on the standard ABC and US layouts: a dead key and the accent menu that appears when you hold a letter.
- Click where you want the letter.
- Press Option + N to enter a tilde.
- Press N to turn it into ñ, or Shift + N for Ñ.
- Or press and hold the N key until the accent menu opens.
- Click ñ in the menu, or press the number shown under it.
The accent menu is not available in every app. Where it does not open, use the Option + N dead key, or press Control + Command + Space bar to open the Character Viewer and search for the letter.
To see every dead key on your layout, open Keyboard Viewer from the Input menu and hold Option. The dead keys get an orange outline.

How to type Ñ on smartphones
Phone keyboards hide accented letters behind the base letter, so ñ sits behind n on both iPhone and Android.
| Phone or tablet | Type ñ | Add a Spanish keyboard |
|---|---|---|
| iPhone and iPad | Touch and hold n, slide to ñ and lift your finger | Settings > General > Keyboard > Keyboards > Add New Keyboard |
| Android with Gboard | Touch and hold n until the extra letters appear, then slide to ñ | Tap the settings icon on the keyboard, open Languages, then Add keyboard |
| Capital Ñ on either | Tap Shift first, then touch and hold N | On iPhone, switch keyboards by touching and holding the globe key |
Holding a key works for other letters too: hold e for é, or hold ! on the symbols layer for ¡.
How to type ñ on a Chromebook
ChromeOS has no Alt codes. The English (US) with International keyboard gives ñ with one shortcut, and the accent menu works on the standard keyboard.
- Select the time at the bottom right, then select Settings.
- Go to Device > Keyboard and inputs > Input settings.
- Under Input methods, select Add input methods, choose English (US) with International keyboard, then Add.
- Press Ctrl + Shift + Space until the International keyboard is selected.
- Press AltGr + N to type ñ. AltGr is the Alt key on the right of the keyboard.
- Press Ctrl + Space to switch back to your previous keyboard.
Without changing keyboards, turn on Show accent marks and special characters under Device > Keyboard and inputs. Then hold N, press Tab or the right arrow to enter the menu, highlight ñ and press Enter.
How to type ñ on Linux with Ctrl + Shift + U
GNOME desktops, including Ubuntu, accept any Unicode character by its code point.
- Click where the letter should go.
- Press Ctrl + Shift + U; an underlined u appears.
- Type
00f1for ñ, or00d1for Ñ. - Press Space or Enter to insert the letter.
The Characters app in the Activities overview also lets you search for the letter and copy it.
Copy and paste N with tilde (Ñ, ñ) + Unicode/HTML codes
Copy ñ or Ñ from this table and paste it with Ctrl + V on Windows or Command + V on a Mac. The codes cover every place a shortcut is not available.
| Code type | ñ (small) | Ñ (capital) |
|---|---|---|
| Copy and paste | ñ | Ñ |
| Windows Alt code | Alt + 0241 | Alt + 0209 |
| Unicode code point | U+00F1 | U+00D1 |
| Word Unicode shortcut | 00F1, then Alt + X |
00D1, then Alt + X |
| HTML named entity | ñ |
Ñ |
| HTML numeric entity | ñ |
Ñ |
| Linux (GNOME) | Ctrl + Shift + U, 00f1 |
Ctrl + Shift + U, 00d1 |
Web addresses can contain ñ in internationalized domain names, but the domain is stored in an ASCII form called Punycode, so piñata.com becomes xn--piata-pta.com behind the scenes.
Ñ in world alphabets
Ñ started in Spanish and spread to languages whose spelling was shaped by Spanish, plus several that adopted it for other sounds.
| Language or group | What ñ stands for | Status |
|---|---|---|
| Spanish | The ny sound | Separate letter, 15th in the alphabet |
| Galician, Basque, Asturian, Leonese, Guarani | The ny sound | Counted as a letter of its own |
| Filipino and other Philippine languages | The ny sound | 15th letter of the Filipino alphabet, kept mostly in names such as Santo Niño and Parañaque |
| Quechua, Aymara, Chamorro, Mapudungun, Tetun | The ny sound | Part of the standard spelling |
| Several languages of Senegal | The ny sound | Senegal is the only West African country that uses the letter |
| Crimean Tatar, Nauruan, the Common Turkic Alphabet | The ng sound in wing | Part of the standard spelling |
| Breton | A nasal vowel before it, as in Jañ | Marks nasalization |
| English loanwords | The ny sound | Kept in jalapeño, piña colada, piñata and El Niño |
Ñ phonetics and pronunciation
In Spanish, ñ is a palatal nasal: the middle of the tongue presses against the roof of the mouth while air passes through the nose. English speakers hear it as the ny in canyon.
| Spelling | Language | Same sound as ñ |
|---|---|---|
| ñ | Spanish, Galician, Basque, Filipino | año, señor, niño |
| gn | French and Italian | Yes |
| nh | Portuguese, Occitan, Vietnamese | Yes |
| ny | Catalan, Hungarian, Indonesian, Malay | Yes |
| nj | Serbo-Croatian (Latin), Albanian | Yes |
| IPA symbol | International Phonetic Alphabet | [ɲ] |
The Spanish name of the letter, eñe, is said with that sound in the middle: EH-nyeh.
Ñ cultural significance
The letter began as a scribe's shortcut. Medieval Spanish writers abbreviated the double nn by writing one n with a wavy line above it, so the Old Spanish anno became año.
| Moment | What happened |
|---|---|
| Middle Ages | The tilde over n replaced a second n, then came to mark the new ny sound in words such as leña and señor |
| 18th century | Ñ was formally defined as part of the Spanish alphabet |
| 1991 | A European Community report pushed to allow keyboards without an Ñ key in Spain; the Real Academia Española called it a serious attack on the language |
| Same debate | Gabriel García Márquez defended the letter as a cultural leap that writes with one letter a sound other languages need two for |
| Hispanic identity | The Instituto Cervantes and the National Association of Hispanic Journalists adopted Ñ as a mark of Hispanic heritage |
| 2011 | CNN en Español added a tilde over its logo's letters |
| 23 April 2021 | A Google Doodle celebrated Ñ for UN Spanish Language Day |
Dropping the tilde from a name changes it. Peña means rocky hill, while Pena means pity, which is why many Spanish speakers want the letter kept in forms and databases.
N with tilde not working on keyboard
Alt + 0241 types nothing or the wrong character
The digits went in on the number row, Num Lock is off, or the leading zero was missed.
- Press Num Lock and check its light.
- Hold Alt and type
0241on the numeric keypad, not the top row. - Release Alt only after the last digit.
- On a laptop with no keypad, press Windows logo key + . and pick ñ from Symbols.
Ctrl + Shift + ~ does nothing outside Word
That shortcut belongs to Word and classic Outlook, not to Windows.
- Use Alt +
0241on the numeric keypad instead. - Or open the emoji panel with Windows logo key + . and pick ñ.
Quotes and the tilde key behave oddly after adding US International
On that layout the apostrophe, quote and tilde keys wait for the next keystroke.
- Hold the Windows logo key and press Spacebar to switch back to your US layout.
- Remove United States-International under Language options if you no longer want it.
Holding N on a Mac repeats the letter instead of showing ñ
The app does not support the accent menu.
- Try the same key in another app, such as Notes or TextEdit.
- Press Option + N, then N, which works where the menu does not.
- Or choose Edit > Emoji & Symbols and search for the letter.
Holding N on a Chromebook shows no accent menu
The accent menu setting is off.
- Select the time, then Settings > Device > Keyboard and inputs.
- Turn on Show accent marks and special characters.
- Hold N again and select ñ from the menu.
N with tilde (ñ) FAQ
What is the Alt code for ñ?
The Alt code for the lowercase ñ is Alt + 0241, and the capital Ñ is Alt + 0209. Type the digits on the numeric keypad with Num Lock on, while holding Alt. The number row along the top does not work.
How do I type ñ on a laptop without a number pad?
Press the Windows logo key and the period key to open the emoji panel, select Symbols and pick ñ. Character Map works too, and in Word you can press Ctrl + Shift + ~, release, then press N.
How do I type ñ on a Mac?
Press Option + N to enter a tilde, then press N to get ñ, or Shift + N for Ñ. You can also press and hold the N key until the accent menu opens and click ñ.
How do I type ñ on an iPhone?
Touch and hold the n key on the onscreen keyboard, slide your finger to ñ and lift it. Tap Shift first for a capital Ñ. The same touch and hold works in Gboard on Android phones.
How do I type ñ in Word?
Press Ctrl + Shift + ~ together, release them, then press N. For a capital Ñ, press Shift + N as the last step. You can also type 00F1 and press Alt + X to convert it.
What is the HTML code for ñ?
Use the named entity ñ or the numeric entity ñ for the lowercase ñ. The capital Ñ is Ñ or Ñ. Browsers render both forms the same way.
What is the Unicode for ñ?
The lowercase ñ is U+00F1, LATIN SMALL LETTER N WITH TILDE, and the capital Ñ is U+00D1. Word converts 00F1 to ñ when you press Alt + X, and Linux accepts it after Ctrl + Shift + U.
Is ñ a separate letter from n?
Yes. In Spanish, ñ has its own name, eñe, and its own place in the alphabet straight after n. Galician, Basque, Asturian, Guarani and Filipino also treat it as a letter of its own.
Now you’re ready to type N with tilde anywhere
Use Alt + 0241 on a Windows keyboard with a keypad, Option + N then N on a Mac, and touch and hold n on a phone. Those three need no setup; switch to the United States-International or Spanish layout only if you type ñ every day or your laptop has no keypad.





