ASCII code for device control 2
18
Device Control 2 — a control character, not printable
| Decimal | 18 |
| Hexadecimal | 0x12 |
| Octal | 0022 |
| Binary | 00010010 |
| HTML entity |  |
What it is
A general device control signal with no fixed modern meaning.
The full entry
ASCII 18 in full — the code point page, with what sits either side of it and how the character is encoded elsewhere.
Frequently asked questions
What is the ASCII code for device control 2?
The ASCII code for device control 2 is 18 in decimal, 0x12 in hexadecimal and 0022 in octal.
What is device control 2 in binary?
00010010 — eight bits, though ASCII only defines seven, so the top bit is always zero.
Is device control 2 a printable character?
No. Device Control 2 is a control character — an instruction to a teleprinter rather than a mark on paper, which is why most tables show an empty cell for it.
Other characters
- ASCII code for device control 3 (xoff) — 19
- ASCII code for device control 4 — 20
- ASCII code for negative acknowledge — 21
- ASCII code for synchronous idle — 22
- ASCII code for end of transmission block — 23
- ASCII code for cancel — 24
- ASCII code for end of medium — 25
- ASCII code for substitute — 26
- ASCII code for escape — 27
- ASCII code for file separator — 28
- ASCII code for group separator — 29
- ASCII code for record separator — 30
Every character by name · The ASCII table · Text to binary converter