There is a widespread myth in the world of computing: the French AZERTY keyboard is considered “broken” or unsuitable for programming because it hides special characters . The truth is counter-intuitive: the French layout has not forgotten the French keyboard tilde , but has optimized it through the intelligent system of ” touches mortes ” (dead keys). Instead of wasting physical space for a key rarely used in common language, the AZERTY transforms the keyboard into a command console where the tilde becomes a powerful modifier, essential for developers and for those who write in international languages. Understanding this logic transforms an apparent limitation into a word processing advantage.
Select your operating system to find out the exact combination and try it out now in the text area below.
How to type the tilde on Windows with an AZERTY layout
To type the tilde on a French keyboard in Windows, press the AltGr + 2 key combination, followed by the spacebar. Alternatively, you can use the universal ASCII code by holding down the Alt key and typing 126 on the numeric keypad.
The Windows operating system handles the AZERTY layout by using dead keys. When you press AltGr + 2 , nothing immediately appears on the screen. The system is waiting: it is waiting to know which letter you want to apply the tilde to (for example, the "n" to create the "ñ"). If your goal is to get the isolated symbol ( ~ ), you simply have to tell the system to apply it to a blank space by pressing the spacebar immediately after.
According to Microsoft's official documentation on international keyboard layouts, the use of AltGr (Alternate Graphic) is the standard for accessing the third level of characters printed on European physical keys.
The shortcut for Mac and the Apple ecosystem

If you're using a Mac, getting the French keyboard tilde requires a different combination: press Option (Alt) + N , release the keys, and then press the spacebar. This method takes advantage of the native "dead keys" of the macOS operating system.
Apple's approach to word processing differs slightly from that of Windows. On the Apple AZERTY keyboard, the Option key (often also labeled Alt) acts as the main modifier. By pressing Option + N , you will see a small tilde appear, highlighted in yellow or blue (depending on the version of macOS). This indicates that the system is ready to combine the symbol with the next character. By pressing the spacebar, you confirm the insertion of the isolated character.
This combination is particularly ergonomic for those who write a lot, as the Option and N keys are close and easily reachable without having to move your hands too much from the middle row (home row).
Configuration and use on Linux systems (Ubuntu and derivatives)

On Linux, the French keyboard tilde is obtained by pressing AltGr + 2 and then space, in a way that is quite similar to Windows. This character is essential for developers to indicate the "home" directory (~/) in terminal paths.
In Linux distributions such as Ubuntu, Debian, or Fedora, the AZERTY layout is natively supported by the graphics server (X11 or Wayland). The key mapping follows the European standard. However, developers who work intensively in a Bash or Zsh terminal know how vital this symbol is. The tilde represents the $HOME environment variable.
If for some reason the standard combination does not work, on Linux you can force the insertion of the Unicode character using the Ctrl + Shift + U combination, followed by the hexadecimal code 7E and pressing Enter.
The Importance of the Tilde for Developers and Word Processing
Mastering the French keyboard tilde is essential in computing for system paths and programming, but also in word processing for inserting the Spanish "ñ" by typing the tilde followed by the letter "n".
In addition to its use in directory paths (e.g., cd ~/Documents ), the tilde has crucial meanings in various programming languages:
- JavaScript / TypeScript: Used as the Bitwise NOT operator (
~). - C++ / C#: Used to define class destructors (e.g.,
~MiaClasse()). - CSS: Used as a general sibling selector (e.g.,
h1 ~ p). - Git: Used to navigate the commit tree (e.g.,
HEAD~1).
For those who work with word processing and translations, the tilde is indispensable for languages such as Spanish (ñ) or Portuguese (ã, õ). In these cases, the logic of the dead key shows its true usefulness: you press the combination for the tilde and, instead of the space, you press the desired vowel or consonant.
When I moved to Paris to work as a DevOps Engineer, the AZERTY keyboard seemed like an insurmountable obstacle. I couldn't type home directory paths (~/) quickly. I discovered that the French layout uses 'dead keys': pressing AltGr+2 makes the system wait for the next input. Once I internalized this muscle memory, my typing speed in the Linux terminal returned to QWERTY keyboard levels, without having to alter company system settings.
- Marco R., Senior DevOps Engineer at Station F

Conclusions

Getting used to typing the tilde on a French keyboard only requires a little muscle memory practice. Whether you're programming a complex application or writing an international email, understanding how dead keys (touches mortes) work allows you to take full advantage of the AZERTY layout without having to resort to inconvenient copy-pasting.
Here's a quick summary of the combinations to memorize:
| Operating System | Main Combination | Alternative Method (ASCII/Unicode) |
|---|---|---|
| Windows | AltGr + 2, then Space | Alt + 126 (on the numeric keypad) |
| macOS | Option + N, then Space | Character Viewer (Cmd+Ctrl+Space) |
| Linux | AltGr + 2, then Space | Ctrl + Shift + U, then 7E, then Enter |
Remember that the key to fluidity is not to rush: press the combination, release the keys, and only then press the spacebar. With time, this movement will become automatic, making your experience with computers and word processing on French keyboards extremely efficient.
Frequently Asked Questions

To obtain this special character on a Windows operating system, you must press the AltGr and number two keys, release the keys, and then immediately press the spacebar. This method uses the dead key system. Alternatively, you can hold down the Alt key and type the numeric code 126 on the side keypad to use the ASCII standard.
On Apple computers, the procedure requires you to press the Option key, also known as Alt, along with the letter N. Once this is done, you will see a small symbol highlighted on the screen. This visual signal indicates the operating system's standby status. To confirm the creation of the isolated character in your text, simply press the spacebar.
The AZERTY layout uses a clever system based on dead keys to optimize physical space. When you type the initial combination, the computer waits for a second command to understand whether you want to create a foreign accented letter or the isolated symbol. Pressing the spacebar confirms that you only want the special character without applying it to any letter.
To create international characters, you first type the shortcut for the special symbol, such as AltGr and 2 on Windows or Option and N on Mac. Instead of pressing the spacebar at the end, you simply type the desired vowel or consonant. The system will automatically combine the two elements, creating the correct letter for the foreign language.
If the standard combination does not produce results on your Ubuntu or derivative system, you can force the creation of the character using the Unicode code. You must press the Ctrl, Shift, and U keys simultaneously, then type the hexadecimal code 7E, and finally press Enter. This procedure ensures correct typing even when you are working intensively on the programming terminal.
Still have doubts about How to type the tilde (~) on a French keyboard: The Ultimate AZERTY Guide?
Type your specific question here to instantly find the official reply from Google.
Sources and Further Reading






Did you find this article helpful? Is there another topic you'd like to see me cover?
Write it in the comments below! I take inspiration directly from your suggestions.