ASCII 31
Unit Separator (US)
Control character
Legacy record separator.
All encodings at a glance
| Decimal | 31 |
| Hexadecimal | 0x1F |
| Octal | 0037 |
| Binary | 00011111 |
| HTML numeric entity |  |
| URL encoding | %1F |
| UTF-8 bytes | 0x1F |
Code snippets
JavaScript
String.fromCharCode(31); // "US"
31.toString(16); // "1f"Python
chr(31) # control char US
ord(chr(31)) # 31
hex(31) # '0x1f'HTML
 <!-- numeric entity (no named entity for this character) -->