The fastest way depends on your operating system and keyboard layout

Accent marks — the tildes, umlauts, acute accents, and cedillas that appear in words like "café," "naïve," and "señor" — can be typed directly on most keyboards without switching programs or copying from elsewhere. The method you use depends on whether you're on Windows, Mac, or Linux, and whether your keyboard has a dedicated key for them.

On a Mac, you hold down a key and a menu appears showing accent options. On Windows, you either use a numeric code or install a second keyboard layout. On Linux, you use a compose key. None of these methods is harder than the others — they're just different. Pick the one that matches what you already have.

Key Takeaways

  • Mac users can hold down any letter key to see accent options, then type the number or click the one they want.
  • Windows users can type a four-digit code on the numeric keypad while holding Alt, or switch to a second keyboard layout in Settings.
  • Linux users can enable a compose key in their keyboard settings, then press it before typing the accent combination.
  • If you type the same accented word often, most text editors let you create a shortcut that expands to the full word.
  • The numeric code method works in almost any Windows program, but the keyboard layout method is faster once you learn it.

How to type accents on a Mac

Hold down the letter key you want to accent. A small menu appears above the key showing accent options numbered 1 through 7 or so. Type the number of the accent you want, or click it with your trackpad. The accented letter appears in your document.

For example, to type "café": type c, a, f, then hold e. A menu shows è, é, ê, ë, and others. Type 2 for é, and the word is complete. This works in any Mac program — email, web browsers, text editors, everything.

If you hold a key and nothing appears, that letter doesn't have accent variants. Consonants like b, c, and d have fewer options than vowels. The menu stays open for about five seconds, so you don't have to rush.

How to type accents on Windows using Alt codes

Windows has a built-in numeric code system called Alt codes. You hold Alt, type a four-digit number on the numeric keypad (the numbers on the right side of your keyboard, not the row above the letters), then release Alt. The accented letter appears.

Common codes include Alt+0233 for é, Alt+0241 for ñ, Alt+0252 for ü, and Alt+0231 for ç. A full list is available through a web search for "Windows Alt codes accents." Write the codes down or bookmark the page if you use them often.

This method works in almost any Windows program, including web browsers and email. The numeric keypad is required — the number row above the letters will not work. If your keyboard doesn't have a numeric keypad, use the keyboard layout method instead.

How to type accents on Windows using a second keyboard layout

Windows lets you add a second keyboard layout so you can switch between them. The "United States International" layout includes accent marks and is built into Windows. Open Settings, go to Time & Language, then Language & Region. Click your language, then Options, then Add a Keyboard. Choose "United States International" or search for a layout that matches the language you're typing in.

Once added, a language icon appears in your taskbar. Click it to switch layouts. In the International layout, you type an accent key first, then the letter. For example, to type é, you press the apostrophe key (which becomes an accent key in this layout), then e. The accented letter appears.

This method is faster than Alt codes once you learn it, because you don't have to remember four-digit numbers. The downside is that some punctuation keys change meaning — the apostrophe becomes an accent key, for instance. You can still type a regular apostrophe by pressing it twice.

How to type accents on Linux

Linux uses a compose key system. First, set a compose key in your keyboard settings — this is usually the right Alt key or the Menu key, but you can choose any key you don't use often. Open your keyboard settings, find the Compose Key option, and select one.

Once set, press the compose key, then type two characters that represent the accent. For example, compose + apostrophe + e gives é. Compose + tilde + n gives ñ. The combinations follow a logical pattern: apostrophe for acute accents, tilde for tildes, and so on. A full list is available in your system's keyboard documentation.

This method works across all Linux programs and is consistent once you learn the combinations. It's slower than holding a key on Mac, but faster than memorizing Alt codes.

Creating shortcuts for words you type often

If you regularly type the same accented word — your name, a company name, a place you mention often — most text editors let you create a shortcut. In Microsoft Word, go to File, Options, Proofing, AutoCorrect Options. Type the shortcut (like "cafe") in the Replace field and the accented version ("café") in the With field. Click Add. From then on, typing "cafe" followed by a space or punctuation automatically becomes "café".

Google Docs has a similar feature under Tools, Preferences. Many other editors including Notepad++ and VS Code have their own shortcut systems. This is the fastest method if you type the same word dozens of times a day.

When to use each method

SituationBest MethodWhy
Typing one or two accented words in an emailMac: hold the key. Windows: Alt code.Fastest for occasional use. No setup needed.
Writing in a language with many accentsWindows: keyboard layout. Linux: compose key.Faster than codes once learned. Works everywhere.
Typing the same accented word repeatedlyText editor shortcutOne keystroke after setup. Saves time over hours.
Switching between languages frequentlyWindows: multiple layouts. Mac: hold key.Lets you work in each language without relearning.

Frequently Asked Questions

What if I don't have a numeric keypad on my laptop?

Use the Windows keyboard layout method instead of Alt codes. Some laptops have a hidden numeric keypad accessed by holding Fn, but the layout method is simpler. On Mac and Linux, the hold-key and compose-key methods don't require a numeric keypad.

Can I type accents on a phone or tablet?

Yes. On iPhone and iPad, hold down a letter and a menu appears just like on Mac. On Android, hold a letter and a popup shows options. The process is the same as on desktop — no special setup needed.

Why do some programs not recognize Alt codes?

Some older programs and web applications don't support Alt codes. The keyboard layout method works more reliably across all programs because it treats accented letters as regular keyboard input. If Alt codes don't work, switch to a keyboard layout instead.

Can I type accents if my keyboard is set to a different language?

Yes. On Windows, you can add multiple keyboard layouts and switch between them. On Mac, the hold-key method works regardless of your language setting. On Linux, the compose key works the same way. You don't have to change your main language setting.

Is there a way to type accents without memorizing codes or key combinations?

Copy and paste from a reference page, or use your text editor's find-and-replace feature to swap unaccented words for accented ones. This is slower than learning one method, but it works if you only need accents occasionally and don't want to remember anything new.