How to type the tilde (~) on a French keyboard: The Ultimate AZERTY Guide

Published on May 11, 2026
Updated on May 11, 2026
reading time

AZERTY keyboard with the AltGr and 2 combination highlighted for typing the tilde symbol.

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.

AZERTY Tilde Generator and Tester

Select your operating system to find out the exact combination and try it out now in the text area below.

Combination: AltGr + 2, then release and press Space
Advertisement

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.

Read also →

The shortcut for Mac and the Apple ecosystem

How to type the tilde (~) on a French keyboard: The Ultimate AZERTY Guide - Summary Infographic
Summary infographic of the article "How to type the tilde (~) on a French keyboard: The Ultimate AZERTY Guide" (Visual Hub)
Advertisement

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).

You might be interested →

Configuration and use on Linux systems (Ubuntu and derivatives)

A computer keyboard highlighting the exact keys needed to type a tilde on a French AZERTY layout.
This complete guide reveals the exact shortcuts to type the tilde symbol on any French AZERTY keyboard. (Visual Hub)

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
List: How to type the tilde (~) on a French keyboard: The Ultimate AZERTY Guide
Master the exact shortcuts to type the tilde symbol on a French AZERTY keyboard across all operating systems. (Visual Hub)

Conclusions

disegno di un ragazzo seduto a gambe incrociate con un laptop sulle gambe che trae le conclusioni di tutto quello che si è scritto finora

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

disegno di un ragazzo seduto con nuvolette di testo con dentro la parola FAQ
How do you make the tilde symbol on Windows with a French keyboard?

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.

What key combination is needed to type the tilde on Mac computers with an AZERTY layout?

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.

Why doesn't the symbol appear immediately when I press the keys on the French keyboard?

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.

How to type the Spanish n or other accented letters with an AZERTY keyboard?

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.

What are the alternative methods for making the tilde on Linux if the shortcut doesn't work?

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.

This article is for informational purposes only and does not constitute financial, legal, medical, or other professional advice.
Francesco Zinghinì

Engineer and digital entrepreneur, founder of the TuttoSemplice project. His vision is to break down barriers between users and complex information, making topics like finance, technology, and economic news finally understandable and useful for everyday life.

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.

Icona WhatsApp

Subscribe to our WhatsApp channel!

Get real-time updates on Guides, Reports and Offers

Click here to subscribe

Icona Telegram

Subscribe to our Telegram channel!

Get real-time updates on Guides, Reports and Offers

Click here to subscribe

Advertisement
Condividi articolo
1,0x
Table of Contents