DevKits

ASCII 31

Unit Separator (US)

Control character

Legacy record separator.

All encodings at a glance

Decimal31
Hexadecimal0x1F
Octal0037
Binary00011111
HTML numeric entity
URL encoding%1F
UTF-8 bytes0x1F

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

&#31;   <!-- numeric entity (no named entity for this character) -->

Nearby codes