Letter shortcuts on a keyboard let you type accented and special characters — é, ñ, ü, ç, ø, ß and more — without switching keyboards or hunting through menus. The fastest universal method is the Windows Alt code (hold Alt, type the number on the numeric keypad, release), while macOS uses a simple press-and-hold on the letter key or the Option key combinations. If you only need a handful of characters, a text replacement shortcut you set up once is often quicker than memorising codes.
One note before you start: menu names and key combinations can differ slightly by operating system version, device and region, so if a label looks different from what is described here, look for the closest match.
What You'll Need
- A keyboard with a dedicated numeric keypad (the block of numbers on the right) if you plan to use Windows Alt codes — the number row above the letters will not work for this.
- Knowledge of which characters you actually need. Write them down first; it saves time later.
- For macOS, nothing extra — the press-and-hold method is built in.
- Optional: a note-taking app or a text file to test each shortcut before you rely on it.
Step-by-Step
- Decide which method fits your system. Windows uses Alt codes or the built-in character map; macOS uses press-and-hold or Option combinations; phones and tablets use press-and-hold on the on-screen keyboard. Pick the one that matches the device you type on most.
- On Windows, confirm Num Lock is on. Look for the Num Lock indicator light on the keypad. If it is off, press the Num Lock key once. Without it, the keypad sends navigation commands instead of numbers and the code will fail.
- Hold Alt and type the code on the numeric keypad. For example, hold Alt, type 0233, then release Alt to get é. Hold Alt, type 0241 for ñ. Hold Alt, type 0225 for á. The leading zero matters for many codes — 233 and 0233 are not always interchangeable.
- Test one character at a time. Open a blank document, type the shortcut, and check the result before moving to the next character. If nothing appears, the usual cause is Num Lock or a laptop keypad that is not active.
- On a laptop without a numeric keypad, enable the embedded keypad. Many laptops map a section of the letter keys to numbers when you hold the Fn key together with the key marked Num Lk. The exact key varies by model, so check your laptop's key legends. If your laptop has no embedded keypad at all, use the Character Map or your system's emoji and symbol picker instead.
- On Windows, use the Character Map as a fallback. Open the Start menu, type Character Map and open it. Select the font, click the character you want, choose Select, then Copy, and paste it into your document. This works on every Windows machine regardless of keypad.
- On macOS, press and hold the letter key. Hold a for a moment and a small pop-up appears with accented variants; press the number shown under the one you want, or click it. This works in most text fields and apps.
- On macOS, use Option combinations for characters the pop-up does not cover. For example, Option plus n then n produces ñ, and Option plus e then e produces é. The accent key combination is followed by the base letter.
- Set up a text replacement for characters you type often. On macOS, open System Settings and look for the Keyboard section, then the text replacement area, and add a short trigger such as ";e" that expands to é. On iPhone and iPad, the same feature lives under Settings > General > Keyboard > Text Replacement. On Windows, most word processors and some keyboard utilities offer an autocorrect or replacement list.
- On phones and tablets, use press-and-hold. Touch and hold the base letter on the on-screen keyboard and slide to the accented version. This is the standard method on both iPhone and Android and needs no setup.
- Write your own cheat sheet. List only the characters you actually use and their codes or combinations. Ten entries you know well beat a hundred you have to look up.
Common Mistakes
- Typing the code on the number row. Windows Alt codes require the numeric keypad. The row above the letters will not register the digits for this purpose.
- Forgetting Num Lock. This is the single most common reason an Alt code does nothing.
- Dropping the leading zero. Some codes only work with the full four-digit form. If a code fails, try it with the leading zero added.
- Releasing Alt too early. Keep Alt held until every digit is typed, then release.
- Expecting the same codes everywhere. Alt codes are a Windows convention. They do nothing on macOS, and macOS Option combinations do nothing on Windows.
- Using a laptop keypad that is not switched on. The embedded numeric keys only work while the Num Lk function is active, usually via Fn.
Tips
- Learn the five or six characters you use most rather than the whole table. Frequency beats completeness.
- Keep a plain text file of your personal shortcuts pinned or on the desktop for the first week.
- Text replacement is the best long-term option for names, email signatures and any word with a recurring accent.
- If you type in a language with many accented letters, adding that language's keyboard layout in your system settings is far faster than memorising codes. You can switch layouts with a keyboard combination your system shows you in the same settings area.
- Copy and paste is legitimate for one-off characters. Do not spend ten minutes learning a code for a character you will type once.
Troubleshooting
If the shortcut does not produce the character, work through these in order.
- Check the active window. Some apps and fields intercept keystrokes. Try the same shortcut in a plain text editor to confirm the system is registering it.
- Confirm Num Lock and the correct keypad. Press Num Lock and watch for the indicator, then retry the code.
- Verify the code itself. Look the character up in Character Map, which also shows the keystroke at the bottom of the window when available.
- Restart the app, then the device. A stuck modifier key or a background process can swallow the input. A restart clears both.
- Check for a keyboard layout mismatch. If you recently added or switched a language layout, the key that produces a given symbol may have moved. Switch back to your usual layout and retry.
- Try an external keyboard. If a laptop keypad will not cooperate, a full-size USB or Bluetooth keyboard with a real numeric keypad removes the problem entirely.
- Fall back to copy and paste. If nothing works, Character Map on Windows or the emoji and symbol picker on macOS and mobile will always get the character into your document.
Frequently Asked Questions
Do Alt codes work on Mac?
No. Alt codes are a Windows convention. On macOS, use press-and-hold on the letter key or the Option key combinations instead.
Why does my Alt code type nothing?
Almost always Num Lock is off or the digits were typed on the number row instead of the numeric keypad. Check both before anything else.
Can I make my own shortcut for a letter?
Yes. Text replacement features on macOS, iPhone and iPad let you assign a short trigger that expands into the character. Many Windows word processors offer a similar autocorrect list.
How do I type accented letters on a phone?
Touch and hold the base letter on the on-screen keyboard, then slide to the accented version. This works on both iPhone and Android without any setup.
Is there a faster way if I type a whole language with accents?
Yes. Add that language's keyboard layout in your system settings and switch to it when needed. It is much faster than memorising dozens of codes.
Do these shortcuts work in every app?
Mostly, but some apps and password fields intercept keystrokes. If one app refuses, test in a plain text editor to confirm the shortcut itself is correct.