| HTML Entity (dec) | ~ |
| HTML Entity (hex) | ~ |
| UTF-8 (hex) | 0x7e |
| UTF-8 (dec) | 126 |
| UTF-16-BE (hex) | 0x7e |
| UTF-16-BE (dec) | 0, 126 (2 bytes) |
| UTF-32-BE (hex) | 0x7e |
| UTF-32-BE (dec) | 0, 0, 0, 126 (4 bytes) |
| C/C++/Java source code | "\u007e" |
| Python source code | "\u007e" |