Tilde Symbol (~)
U+007EBasic Latin
Also known as tilde symbolsquiggle
The tilde ~ is a wavy keyboard symbol. In text it means “about,” as in ~10 minutes; in computing it stands for a user’s home folder, and it is the operator for “not” or “approximately” in several programming languages.
Symbol codes
- Unicode
U+007E- Alt Code
Alt+126- HTML Code
~- CSS Code
\7E- HEX Code
~
Symbols that look like ~
- Tilde Operator: The tilde operator, the mathematical form for “is similar to.” Use ~ in text and paths.
- Almost Equal To: Almost equal to, the usual sign for approximate values in mathematics.
About Tilde
The tilde ~ is a wavy keyboard symbol. In text it means “about,” as in ~10 minutes; in computing it stands for a user’s home folder, and it is the operator for “not” or “approximately” in several programming languages.
~ is encoded in Unicode as code point U+007E (decimal 126). Its official Unicode name is TILDE.
It belongs to the Basic Latin block (U+0000–U+007F), its General Category is Math Symbol (Sm), and it was added in Unicode 1.1, released in 1993. Its script value is Common: it is shared across writing systems rather than belonging to one.
Common uses
- Writing an approximate value, as in ~5 km
- The home directory in macOS and Linux paths, as in ~/Documents
- Operators and patterns in programming
Examples
- Approximate
- ~10 minutes
- File path
- ~/Downloads
Sources: Unicode Character Database 18.0.0, the HTML Standard’s list of named character references, and Unicode’s code page mappings.
How to type or insert Tilde
- Windows
- Press Shift+` (the key left of 1) on a U.S. keyboard layout. On a U.K. layout, press Shift+# (the key next to Enter).
- macOS
- Press Shift+` on U.S. and British layouts. On a British Mac keyboard, the ` key is left of Z.
- iPhone and iPad
- Tap 123, then #+=; ~ is in the second row.
- Android
- Tap ?123, then =\<; ~ is on the second page of symbols.
- Any device
- Select Copy symbol, then paste with Ctrl+V, or ⌘+V on a Mac.
- Windows Alt code
- With Num Lock on, hold Alt, type 126 on the numeric keypad, then release Alt.
- Microsoft Word
- Type
007E, then press Alt+X. - macOS Character Viewer
- Press Control+⌘+Space and search for “tilde”.
- Linux (GTK and IBus)
- Press Ctrl+Shift+U, type
007e, then press Space. - HTML
~. In a UTF-8 page you can also paste the character itself.- CSS
content: "\7E";in a::beforeor::afterrule.- JavaScript
"\u007E"
Technical properties
Unicode 18.0.0
- Code point
- U+007E
- Decimal
- 126
- Unicode name
- TILDE
- Block
- Basic Latin · U+0000–U+007F
- General category
- Math Symbol (Sm)
- Script
- Common
- Introduced
- Unicode 1.1
- JavaScript
- "\u007E"
Common questions about Tilde
What is the Tilde symbol?
The tilde ~ is a wavy keyboard symbol. In text it means “about,” as in ~10 minutes; in computing it stands for a user’s home folder, and it is the operator for “not” or “approximately” in several programming languages. In Unicode it is U+007E, officially named TILDE. It is also known as tilde symbol and squiggle.
What does ~ mean before a number?
It means “about” or “approximately,” as in ~5 minutes. In formal mathematics, ≈ is the usual sign for approximately equal.
What is the difference between ~ and ∼?
~ (TILDE) is the keyboard character used in text, file paths, and code. ∼ (TILDE OPERATOR) is a mathematical symbol for “is similar to.” They look alike but are different characters.
Why does ~ not appear when I press the key?
On some layouts the tilde key is a dead key: it waits for the next letter to make ñ or õ. Press the space bar after it to get ~ on its own.
How do I copy and paste the Tilde symbol?
Select Copy symbol at the top of this page, then paste with Ctrl+V on Windows and Linux or ⌘+V on a Mac. On a phone, tap Copy symbol, then touch and hold where you want it and choose Paste. ~ pastes as ordinary text, so it works in documents, messages, and code.
How do I type the Tilde symbol on Windows?
Turn on Num Lock, hold Alt, type 126 on the numeric keypad, then release Alt. In Microsoft Word, type 007E and press Alt+X to turn the code into ~. In any app, open Character Map from the Start menu, search for “tilde”, then select and copy the character.
How do I type the Tilde symbol on a Mac?
Press Control+⌘+Space to open the Character Viewer, search for “tilde”, and double-click the result to insert it.
How do I type the Tilde symbol on an iPhone or Android phone?
The simplest way is to copy it from this page and paste it where you need it. If you use it often, save it as a text shortcut: on iPhone, go to Settings > General > Keyboard > Text Replacement; with Gboard on Android, go to Gboard settings > Dictionary > Personal dictionary.
Can I use the Tilde symbol in Word, Google Docs, and social media?
Yes. ~ is a standard Unicode character, so you can paste it into Microsoft Word, Google Docs, emails, and posts or bios on Instagram, X, Facebook, and TikTok. In Google Docs you can also choose Insert > Special characters and search for “tilde”. In Word, choose Insert > Symbol > More Symbols, set from to Unicode (hex), and enter 007E as the character code.
Is the Tilde symbol an emoji?
No. ~ is a text symbol, not an emoji. It takes the color and size of the surrounding text, and its exact shape depends on the font.
Why does the Tilde symbol show as a box or question mark?
An empty box or a question mark means the font on that device has no glyph for ~. The character is still there: it appears correctly wherever a font covers Unicode’s Basic Latin block, and free font families such as Google Noto cover nearly all of Unicode.
What are the HTML and CSS codes for the Tilde symbol?
In HTML, write ~ (decimal) or ~ (hexadecimal). In CSS, use content: "\7E"; in a ::before or ::after rule, and in JavaScript "\u007E". See all HTML codes.