Tilde Symbol codes and values
| Format | Value |
|---|---|
| Unicode | U+007E |
| HTML (decimal) | ~ |
| HTML (hex) | ~ |
| CSS | \007E |
| JavaScript | \u007E |
The official Unicode name is "Tilde".
How to type the tilde symbol
Windows
- In Microsoft Word, type
007Eand press Alt + X to turn the code into ~. - Or press Win + . to open the emoji and symbol panel and search for it.
Mac
- Press Control + Command + Space to open the Character Viewer and search for "tilde".
- Or add the "Unicode Hex Input" keyboard in System Settings, hold Option and type
007E.
Linux
- In GTK apps press Ctrl + Shift + U, type
007eand press Enter.
Web pages
Write ~ in HTML, or paste the character directly into a UTF-8 page.
Encoding details
| Encoding | Value |
|---|---|
| Code point | U+007E (decimal 126) |
| UTF-8 bytes | 7E |
| URL encoded | %7E |
| Category | Sm |
What the tilde symbol means
The tilde is a wavy line placed above letters in some languages or used alone as a general symbol. In computing, it often represents home directories or approximate values.
Using the tilde symbol well
Ensure your keyboard layout and character encoding support the standalone tilde character. When using it in code, confirm that your editor saves files in a compatible format.
Characters next to it in Unicode
| Character | Code | Name |
|---|---|---|
| { | U+007B | Left Curly Bracket |
| | | U+007C | Vertical Line |
| } | U+007D | Right Curly Bracket |
FAQ
What is the Unicode for the tilde symbol?
The tilde symbol ~ is U+007E (Tilde).
How do I type ~ on a keyboard?
There is no classic Alt code for it. On Windows type 007E in Word and press Alt + X, on Mac use the Character Viewer, and on Linux press Ctrl + Shift + U then 007e.
What is the HTML code for ~?
Use ~. The hexadecimal form is ~.
More symbols
- • Bullet Point Symbol: previous page
- ♂ Male Sign: next page
- Symbols to copy and paste: the full list