ASCII 126
Tilde (~)
Printable ASCII
Tilde. Home directory shortcut in Unix. Bitwise NOT in C-family languages.
All encodings at a glance
| Decimal | 126 |
| Hexadecimal | 0x7E |
| Octal | 0176 |
| Binary | 01111110 |
| HTML numeric entity | ~ |
| URL encoding | %7E |
| UTF-8 bytes | 0x7E |
Code snippets
JavaScript
String.fromCharCode(126); // "~"
126.toString(16); // "7e"Python
chr(126) # '~'
ord(chr(126)) # 126
hex(126) # '0x7e'HTML
~ <!-- numeric entity (no named entity for this character) -->