The fastest way depends on your operating system and keyboard layout
Accent marks — the tildes, umlauts, acute accents, and other diacritical marks used in French, Spanish, German, Portuguese, and many other languages — can be typed directly on any computer. The method varies by whether you use Windows, Mac, or Linux, and whether you're using a US keyboard or one designed for another language.
On a Mac, you hold down a key to see accent options. On Windows, you use numeric codes. On Linux, you use a compose key or direct Unicode input. None of these methods requires installing new software or changing your keyboard layout permanently — though changing your layout is also an option if you type accented characters frequently.
Key Takeaways
- Mac users can hold down any letter key to see accent options pop up, then select the one they need by number or mouse.
- Windows users can type numeric codes using the Alt key and the numeric keypad, or use the Character Map application to copy and paste accented letters.
- Linux users can enable a compose key in their keyboard settings, then press compose followed by two characters to create an accent mark.
- All operating systems allow you to add a second keyboard layout for a language that uses accents, switching between layouts with a keyboard shortcut.
- The fastest method for occasional use is usually the built-in accent menu on Mac or Alt codes on Windows; the fastest for frequent use is adding a second keyboard layout.
How to type accents on Mac
On macOS, press and hold any letter key for about one second. A small menu will appear above the key showing that letter with different accent options. Each option is numbered — you can either click the one you want with your mouse, or press the number on your keyboard to select it instantly.
For example, hold down the e key and you'll see options like é (1), è (2), ê (3), ë (4), and others depending on the letter. Press 2 and you get è. Release the key and the accent mark appears in your document. This works in any application — email, web browsers, word processors, text editors.
If you need an accent mark that doesn't appear in the menu, or if you prefer not to use the hold-and-select method, you can add a second keyboard layout. Go to System Settings, then Keyboard, then Input Sources, and click the plus sign to add a language layout like French, Spanish, or German. You can then switch between layouts using Control + Space (or whatever shortcut you set), and type accented characters directly using that layout's key positions.
How to type accents on Windows
Windows uses Alt codes: you hold down the Alt key, type a number on the numeric keypad (not the number row at the top), and release Alt to produce an accented character. The code varies by the letter and accent. For example, Alt + 0233 produces é, Alt + 0232 produces è, and Alt + 0234 produces ê.
The numeric keypad is the cluster of number keys on the right side of most full-size keyboards. If you're using a laptop without a numeric keypad, you may need to enable Num Lock and use the number keys that double as letters (usually marked with small numbers in the corner). Some laptops require holding Fn while using these keys.
A full list of Alt codes for accented characters is available through a quick web search for "Alt codes accented letters" — bookmark a reference page if you type accents regularly. Alternatively, open the Character Map application (search for "charmap" in the Windows search bar), find the accented letter you need, click it, click Copy, and paste it into your document. This is slower for single characters but useful if you're unsure of the code.
Like Mac, Windows also allows you to add a second keyboard layout. Go to Settings, then Time & Language, then Language & Region, and add a language. You can then switch layouts using Alt + Shift (or another shortcut you set in the same menu).
How to type accents on Linux
Linux distributions vary in their default keyboard settings, but most support a compose key method. A compose key is a modifier key you designate (often the right Alt key, the Menu key, or Caps Lock) that you press once, then press two more keys in sequence to create an accented character.
For example, if you set the compose key to right Alt, you would press right Alt, then press the grave accent key (`), then press e to produce è. Or press compose, then press quote ('), then e to produce é. The exact key combinations depend on your Linux distribution and desktop environment (GNOME, KDE, Xfce, etc.), but they follow a logical pattern.
To enable compose key input, open your keyboard settings (usually in System Settings or Control Center), find the Compose Key option, and select which key you want to use. If your distribution doesn't have a graphical compose key setting, you can configure it through the command line using setxkbmap, but the graphical method is simpler for most users.
Alternatively, you can add a second keyboard layout for a language that uses accents — the process is similar to Windows and Mac, found in your language or input settings.
When to add a second keyboard layout instead
If you type accented characters more than a few times per week, adding a second keyboard layout is usually faster than using Alt codes, Mac menus, or compose keys. When you switch to a French, Spanish, or German layout, the keys are physically remapped — you simply type the accented character as if it were a regular key on that layout.
The trade-off is that other keys move too. On a French AZERTY layout, for example, the letter positions are completely different from a US QWERTY layout. If you switch layouts frequently, you'll need to remember which layout you're currently using, or you'll type gibberish. Most users solve this by keeping the layout switched while working in a specific language, then switching back when done.
To see which layout you're currently using, look for a language indicator in your system tray (Windows) or menu bar (Mac), or check your keyboard settings on Linux. Switching layouts is usually a single keyboard shortcut — Control + Space on Mac, Alt + Shift on Windows, or whatever you set on Linux.
Accent marks in web forms and email
All the methods above work in email, web forms, text editors, and word processors. Some older web forms may have trouble accepting accented characters, but this is rare on modern websites. If a form rejects an accented character, try copying and pasting instead of typing it directly — some forms accept pasted text even when they reject keyboard input.
If you're composing an email in Gmail, Outlook, or another web-based email service, use whichever method works best for you in your browser. The accent mark will be sent as part of the email text and will display correctly on the recipient's end, regardless of their operating system or keyboard layout.
Frequently Asked Questions
Why doesn't Alt + the number on my keyboard number row work on Windows?
Alt codes require the numeric keypad on the right side of the keyboard, not the number row at the top. If your keyboard doesn't have a numeric keypad, enable Num Lock and use the keys that have small numbers printed in the corner (usually in the right area of the keyboard). On some laptops, you may also need to hold Fn while typing the code.
Can I type accents on a phone or tablet?
Yes. On iPhone and iPad, hold down a letter key and a menu of accented options appears — the same as on Mac. On Android, hold down a letter key and swipe to the accented version you want, or tap the accent from the menu that appears. The exact method depends on your keyboard app.
What if I only need one or two accented characters in a document?
Copy and paste from a reference page or use your operating system's built-in method once. On Mac, hold the key. On Windows, use Character Map or an Alt code. On Linux, use the compose key. All three are faster than changing your keyboard layout for a single character.
Will changing my keyboard layout affect my passwords or login?
Your passwords will still work because they're stored as the characters you typed when you created them. However, if you change your keyboard layout and then try to log in, the keys will be in different positions. Most people keep their login layout as their default and only switch to a second layout when they need to type in that language.
Can I use accent marks in file names?
Yes, on Windows, Mac, and Linux. Type or paste the accented character into the file name field just as you would in any other text. Some older systems or network drives may have trouble with accented file names, but modern operating systems handle them without issue.