~
SymbolPrintableDec 126

ASCII 126 ~

The printable character "~" at ASCII code 126.

All Representations

Decimal
126
Hexadecimal
0x7E
Octal
0o176
Binary
01111110
HTML Entity
~

Character Details

Character~
Name~
Decimal126
Hexadecimal0x7E
Octal0o176
Binary01111110
HTML Entity~
CategorySymbol
PrintableYes

About ASCII 126 (~)

The tilde has significant roles in computing beyond its use as a diacritical mark in Spanish and Portuguese orthography. In Unix shells, '~' expands to the current user's home directory path ('~/Documents' becomes '/home/user/Documents'). In C++ class definitions, '~' prefixes destructor method names (~ClassName). In mathematics and plain text, '~' often approximates the 'approximately equal to' symbol (≈). In URLs, '~' historically appeared in personal web page paths ('~username'). In bitwise operations across C-family languages, '~' is the unary NOT operator that inverts all bits.

Symbol characters in ASCII include mathematical operators, logical notation, and special-purpose marks that serve critical roles across programming, mathematics, and digital communication. Symbols are heavily context-dependent — the same character may act as an arithmetic operator in one language, a regex metacharacter in another, and a shell configuration flag in a third context. This contextual polyvalence makes symbols among the most functionally overloaded characters in computing, requiring careful attention to their meaning in each domain.

In the ASCII encoding table, Tilde is assigned code point 126 in decimal (0x7E hexadecimal, 176 octal, 01111110 binary). The 7-bit ASCII standard, first published in 1963 by the American Standards Association, defines exactly 128 characters that remain the foundation of text encoding systems worldwide. UTF-8, the dominant encoding on the modern web, is fully backward compatible with ASCII — every ASCII character is encoded as the identical single byte in UTF-8, guaranteeing that Tilde works reliably across all operating systems, programming languages, and internet protocols.

Related ASCII Characters

Nearby ASCII Codes

DecHexOctBinCharName
1210x790o17101111001yy
1220x7A0o17201111010zz
1230x7B0o17301111011{{
1240x7C0o17401111100||
1250x7D0o17501111101}}
1260x7E0o17601111110~~
1270x7F0o17701111111DEL

Explore the Full ASCII Table

Browse all 128 ASCII characters with codes, representations, and detailed references.