ASCII code for tilde
126
Tilde — ~
| Decimal | 126 |
| Hexadecimal | 0x7E |
| Octal | 0176 |
| Binary | 01111110 |
| HTML entity | ~ |
What it is
Tilde is one of the 95 printable ASCII characters, the set every text encoding in common use still agrees on. UTF-8 encodes it as the single byte 126, which is why ASCII text is also valid UTF-8.
The full entry
ASCII 126 in full — the code point page, with what sits either side of it and how the character is encoded elsewhere.
Frequently asked questions
What is the ASCII code for tilde?
The ASCII code for tilde is 126 in decimal, 0x7E in hexadecimal and 0176 in octal.
What is tilde in binary?
01111110 — eight bits, though ASCII only defines seven, so the top bit is always zero.
Is tilde a printable character?
Yes. Tilde is in the printable range, codes 32 to 126, which is everything ASCII can put on a screen.
Other characters
- ASCII code for delete — 127
- ASCII code for null character — 0
- ASCII code for start of heading — 1
- ASCII code for start of text — 2
- ASCII code for end of text — 3
- ASCII code for end of transmission — 4
- ASCII code for enquiry — 5
- ASCII code for acknowledge — 6
- ASCII code for bell — 7
- ASCII code for backspace — 8
- ASCII code for tab — 9
- ASCII code for newline — 10
Every character by name · The ASCII table · Text to binary converter