All representations
| Format | Value |
|---|---|
| Name | STX – Start of text |
| Decimal | 2 |
| Hexadecimal | 0x02 |
| Octal | 02 |
| Binary | 00000010 |
| HTML numeric entity |  /  |
| Unicode code point | U+0002 |
| URL encoded | %02 |
| UTF-8 bytes | 02 (one byte, same as ASCII) |
Notes
- Ctrl+B produces this code in many terminals (caret notation
^B). - Caret notation:
^B.
Nearby codes
| Dec | Hex | Char | Name |
|---|---|---|---|
| 0 | 00 | NUL | NUL – Null |
| 1 | 01 | SOH | SOH – Start of heading |
| 3 | 03 | ETX | ETX – End of text |
| 4 | 04 | EOT | EOT – End of transmission |
Get this code in code
JavaScript String.fromCharCode(2) Python chr(2) C (char)2