The fastest way depends on your operating system
Adding accents to letters like é, ñ, and ü is different on Windows, Mac, and Linux — and the method you choose affects how fast you can type. On Mac, you hold a key and pick from a menu. On Windows, you use number codes. On Linux, you use a compose key. None of these methods requires installing new software, but each one feels different once you get the rhythm.
The method you pick matters most if you type accented letters often. If you write Spanish, French, Portuguese, or German regularly, learning the keyboard shortcut for your system will be faster than copying and pasting. If you type accents rarely, the slowest method — finding the character in a menu and inserting it — is fine.
Key Takeaways
- Mac users hold down a letter key to see accent options, then click or type the number of the accent they want.
- Windows users type Alt plus a four-digit number code on the numeric keypad, then release Alt to insert the accented letter.
- Linux users press and hold Compose (usually mapped to a key like Caps Lock or right Alt), then type two characters to create the accented letter.
- If you type accents in only one language, learning that language's keyboard layout is faster than memorizing codes for each letter.
- All operating systems let you insert special characters through a menu, which is slow but requires no memorization.
How to add accents on Mac
On Mac, press and hold the letter you want to accent. A small menu appears above the key showing accent options. Each option has a number underneath it. Type the number of the accent you want, or click it with your trackpad.
For example, to type é, hold down the e key. A menu appears showing è, é, ê, ë, and other e variants. Type 2 (or click the second option) to insert é. Release the e key and the menu closes. This works for any letter that has accented variants — a, e, i, o, u, c, n, and others.
If the menu does not appear, check System Settings. Go to Keyboard, then Keyboard Shortcuts, and make sure "Press and hold keys to display accents" is turned on. On newer Macs running Ventura or later, this setting moved to Keyboard > Edit.
How to add accents on Windows
On Windows, you type Alt plus a four-digit number code using the numeric keypad on the right side of your keyboard. Hold Alt, type the code on the numeric keypad (not the number row at the top), then release Alt. The accented letter appears.
Common codes are Alt+0233 for é, Alt+0241 for ñ, Alt+0252 for ü, and Alt+0224 for à. A full list of codes exists for every accented letter in common use. The code always starts with 0, so é is 0233, not 233. If you type the code and nothing happens, make sure Num Lock is on — the Num Lock light on your keyboard should be lit.
If your keyboard has no numeric keypad (common on laptops), you can enable a software numeric keypad. Press Fn and Num Lock together, or check your keyboard's manual for the key combination. Some laptops require you to hold Fn while typing the number codes.
How to add accents on Linux
On Linux, you use a Compose key — a key you press and hold, then type two characters to create an accented letter. The Compose key is not a standard key, so you have to set one up first. Most people map it to Caps Lock, right Alt, or the Menu key.
To set up Compose on Ubuntu or Debian, open Settings, go to Keyboard, then Keyboard Shortcuts. Look for Compose Key and click it. Choose which physical key you want to use. On other Linux distributions, the setting is usually in the keyboard settings under a similar name.
Once Compose is set up, press and hold your Compose key, then type two characters. For example, Compose + ' + e makes é. Compose + ~ + n makes ñ. Compose + " + u makes ü. The first character is usually the accent mark, and the second is the letter. A reference table of all Compose combinations is built into most Linux systems — search your system help for "Compose key sequences".
Switching to a language-specific keyboard layout
If you type in one language with accents most of the time, switching your keyboard layout is often faster than memorizing codes. Windows, Mac, and Linux all let you add a second keyboard layout and switch between them with a keyboard shortcut.
On Mac, go to System Settings, Keyboard, Input Sources, and click the + button. Choose your language (Spanish, French, German, Portuguese) and click Add. A flag icon appears in the menu bar. Click it to switch layouts, or press Control + Space to cycle through your active layouts. When you switch to Spanish layout, for example, the ñ key appears where the semicolon usually is.
On Windows, go to Settings, Time & Language, Language & Region. Click your language, then click Options. Under Keyboards, click Add a Keyboard and choose the layout you want. A language icon appears in your taskbar. Click it to switch layouts, or press Windows Key + Space to cycle through them.
The downside is that other keys move around — punctuation marks shift to different places, and you have to relearn where common symbols are. This method works best if you spend whole work sessions in one language, not if you switch back and forth every few minutes.
Using the character insertion menu
Every operating system has a built-in menu for inserting special characters, though it is slower than keyboard shortcuts. This method requires no setup and no memorization, so it is useful if you need an accent only once or twice.
On Mac, go to Edit menu in most applications and look for Special Characters or Emoji & Symbols. A panel opens showing every character available. Search for the accented letter you want (type "e acute" for é) and double-click it to insert it. On Windows, open the Character Map process (search for it in the Start menu), find the letter you want, click it, then click Copy. Paste it into your document. On Linux, the method varies by process, but most text editors have an Insert Special Character option in the menu.
Frequently Asked Questions
Can I use Alt codes on a Mac?
No. Mac does not use Alt codes. Use the hold-key method instead, or switch to a language keyboard layout. If you are used to Alt codes from Windows, the hold-key method on Mac is the closest equivalent.
What if I need an accent that is not in the hold-key menu on Mac?
Use the Character Map. Go to Edit > Special Characters in most applications, search for the letter you need, and double-click it. This is slower but covers every possible accented letter in every language.
Do I have to use Alt codes on Windows, or can I use a different method?
You can switch to a language keyboard layout instead, or use the Character Map process. Alt codes are fastest once you memorize them, but if you type accents only occasionally, the Character Map is easier.
Will switching keyboard layouts mess up my typing speed?
Yes, at first. Your muscle memory is built for your current layout. Switching layouts mid-session is slower than staying in one layout all day. If you type in multiple languages equally, stick with keyboard shortcuts or the Character Map instead.
Can I create my own keyboard layout with accents in different places?
Yes, but it requires configuration files and is complex. Most people find it easier to use one of the built-in language layouts or to memorize the codes for the accents they use most. Custom layouts are useful only if you type a language that has no standard layout available.