DevKits

ASCII 27

Escape (ESC)

Control character

The Escape key. Introduces ANSI escape sequences (e.g. \x1B[31m for red text).

All encodings at a glance

Decimal27
Hexadecimal0x1B
Octal0033
Binary00011011
HTML numeric entity
URL encoding%1B
UTF-8 bytes0x1B

Code snippets

JavaScript

String.fromCharCode(27); // "ESC"
27.toString(16); // "1b"

Python

chr(27)           # control char ESC
ord(chr(27))      # 27
hex(27)           # '0x1b'

HTML

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

Nearby codes