SUB

ASCII Character: Substitute

ASCII Code 26 · Unicode U+001A · Hex 0x1A

substitute sub

About the Substitute Character

ASCII code 26 (0x1A) represents the Substitute (SUB) control character. This is a non-printable character defined in the original ASCII standard (1963). It is a miscellaneous control character with special significance in text processing and data communication. Control characters occupy codes 0–31 and 127 in the ASCII table and were originally designed for controlling hardware devices, managing communication links, and formatting text output. While many control characters have become obsolete with modern computing, several like LF (Line Feed), CR (Carriage Return), TAB, and ESC remain essential in everyday programming and text processing.

Encoding Details

ASCII Code 26
Hexadecimal 0x1A
Octal 032
Binary 00011010
Unicode U+001A
Unicode Name SUBSTITUTE
HTML Numeric 
HTML Entity
URL Escape %1A
UTF-8 (Hex) 1A
Quoted-Printable =1A

Source Code Examples

JavaScript
// Using escape sequence
let char = '\x1A';
// Using String.fromCharCode
let char2 = String.fromCharCode(26);
Python
# Using escape sequence
char = '\x1a'
# Using chr()
char = chr(26)
HTML
<!-- Using HTML entity -->
&#26;
C#
// Using escape sequence
char c = '\x1A';
// Using cast
char c2 = (char)26;

Navigate

Copied!