Toolman

ASCII 26

ASCII 26 is Substitute — the control character SUB.

Every representation

CharacterSUB (not printable)
NameSubstitute
Decimal26
Hexadecimal0x1A
Octal0032
Binary00011010
HTML entity
Escape sequence\x1A
UnicodeU+001A
KeyboardCtrl+Z
GroupControl character

What it is for

Replaced a character that arrived corrupted. On DOS and Windows it doubled as an end-of-file marker in text mode, which is why Ctrl+Z ends console input on Windows.

Where the number comes from

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

Frequently asked questions

What is ASCII 26?

Substitute (SUB), a control character. In hexadecimal it is 0x1A, in octal 0032, and in binary 00011010.

How do I type ASCII 26?

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

Is ASCII 26 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