Toolman

ASCII 31

ASCII 31 is Unit Separator — the control character US.

Every representation

CharacterUS (not printable)
NameUnit Separator
Decimal31
Hexadecimal0x1F
Octal0037
Binary00011111
HTML entity
Escape sequence\x1F
UnicodeU+001F
KeyboardCtrl+_
GroupControl character

What it is for

The finest separator, dividing fields within a record — an unambiguous alternative to the comma in CSV, if anything supported it.

Where the number comes from

Codes 0 to 31 were reserved for control: instructions to a teleprinter rather than characters to print. Code 31 is Ctrl+_ because the Ctrl key was originally wired to clear the top two bits of whatever you typed, mapping the letter _ at 95 down to 31.

Frequently asked questions

What is ASCII 31?

Unit Separator (US), a control character. In hexadecimal it is 0x1F, in octal 0037, and in binary 00011111.

How do I type ASCII 31?

Press Ctrl+_ in a terminal. In a string literal you can write it as \\x1F in most languages.

Is ASCII 31 printable?

No. Codes 0 to 31 and 127 are control characters — they were instructions to a teleprinter rather than marks on paper, and most terminals show nothing for them.

Nearby codes

Full ASCII table · Text to binary converter · Number base converter