DevKits

ASCII 21

Negative Acknowledge (NAK)

Control character

Used in some binary protocols to indicate a failed transmission.

All encodings at a glance

Decimal21
Hexadecimal0x15
Octal0025
Binary00010101
HTML numeric entity
URL encoding%15
UTF-8 bytes0x15

Code snippets

JavaScript

String.fromCharCode(21); // "NAK"
21.toString(16); // "15"

Python

chr(21)           # control char NAK
ord(chr(21))      # 21
hex(21)           # '0x15'

HTML

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

Nearby codes