ASCII code 18: DC2

ASCII 18 is DC2 – Device control 2, a non-printing control character. In hex it is 0x12 and in binary 00010010.

DC2Character
18Decimal
0x12Hex
022Octal
00010010Binary

All representations

FormatValue
NameDC2 – Device control 2
Decimal18
Hexadecimal0x12
Octal022
Binary00010010
HTML numeric entity / 
Unicode code pointU+0012
URL encoded%12
UTF-8 bytes12 (one byte, same as ASCII)

Notes

Nearby codes

DecHexCharName
1610DLEDLE – Data link escape
1711DC1DC1 – Device control 1 (XON)
1913DC3DC3 – Device control 3 (XOFF)
2014DC4DC4 – Device control 4

Get this code in code

JavaScript  String.fromCharCode(18)
Python      chr(18)
C           (char)18