Tilde

~

Shortcodes

Copy and paste codes for Tilde symbol ~ to use in your websites, apps, blogs, and more.

Unicode
U+007E
Alt Code
126
HTML Code
~
HEX Code
~
CSS Code
\07E
JS/JSON
\u007E
Unix/C/PHP/JAVA
0x7E
URL-encode
~
copied

Customize Tilde Symbol

Customize ~ symbol as you like and download Tilde as SVG or PNG or copy its HTML code to use in your projects.

Preview helps customize symbol. Downloaded image and HTML code may have size/spacing differences.
~
 

How to type Tilde symbol ~ ?

Using Tilde Alt Code:

You can type the Tilde symbol ~ using your keyboard by using the Alt Code for Tilde. Before you begin, ensure that your Num Lock is turned on, and use the Numpad to type the code. Then, follow these simple steps:

  1. Hold down the Alt key on your keyboard.
  2. Type the number 126 using the Numpad.
  3. Release the Alt key.

This will make the ~ appear on your screen.

How to add Tilde symbol in HTML, CSS, and JS?

Insert ~ Tilde using HTML

1. Copy-paste Tilde directly:
<span>~</span>
2. HTML Decimal Code:
<span>&#126;</span>
3. Hexadecimal Code:
<span>&#x007E;</span>
Preview: ~

Add Tilde symbol with CSS

.tilde::before {
    content: '\\07E';
}
Preview: Tilde

Tilde JavaScript Code

1. Direct Symbol:
document.querySelector('.tilde').textContent = '~';
2. Unicode Escape for ~:
document.querySelector('.tilde').textContent = '\u007E';
Preview: ~