ASCII Table Reference

Complete ASCII Table Reference

DecimalHexOctalBinaryCharHTML EntityDescriptionCopy
00x00000000000000[control]�NUL (Null character)
10x01000100000001[control]SOH (Start of Heading)
20x02000200000010[control]STX (Start of Text)
30x03000300000011[control]ETX (End of Text)
40x04000400000100[control]EOT (End of Transmission)
50x05000500000101[control]ENQ (Enquiry)
60x06000600000110[control]ACK (Acknowledgement)
70x07000700000111[control]BEL (Bell)
80x08001000001000[control]BS (Backspace)
90x09001100001001[control]	HT (Horizontal Tab)
100x0A001200001010[control]
LF (Line Feed)
110x0B001300001011[control]VT (Vertical Tab)
120x0C001400001100[control]FF (Form Feed)
130x0D001500001101[control]
CR (Carriage Return)
140x0E001600001110[control]SO (Shift Out)
150x0F001700001111[control]SI (Shift In)
160x10002000010000[control]DLE (Data Link Escape)
170x11002100010001[control]DC1 (Device Control 1)
180x12002200010010[control]DC2 (Device Control 2)
190x13002300010011[control]DC3 (Device Control 3)
200x14002400010100[control]DC4 (Device Control 4)
210x15002500010101[control]NAK (Negative Acknowledgement)
220x16002600010110[control]SYN (Synchronous Idle)
230x17002700010111[control]ETB (End of Transmission Block)
240x18003000011000[control]CAN (Cancel)
250x19003100011001[control]EM (End of Medium)
260x1A003200011010[control]SUB (Substitute)
270x1B003300011011[control]ESC (Escape)
280x1C003400011100[control]FS (File Separator)
290x1D003500011101[control]GS (Group Separator)
300x1E003600011110[control]RS (Record Separator)
310x1F003700011111[control]US (Unit Separator)
320x20004000100000  Printable ASCII Character
330x21004100100001!!Printable ASCII Character
340x22004200100010""Printable ASCII Character
350x23004300100011##Printable ASCII Character
360x24004400100100$$Printable ASCII Character
370x25004500100101%%Printable ASCII Character
380x26004600100110&&Printable ASCII Character
390x27004700100111''Printable ASCII Character
400x28005000101000((Printable ASCII Character
410x29005100101001))Printable ASCII Character
420x2A005200101010**Printable ASCII Character
430x2B005300101011++Printable ASCII Character
440x2C005400101100,,Printable ASCII Character
450x2D005500101101--Printable ASCII Character
460x2E005600101110..Printable ASCII Character
470x2F005700101111//Printable ASCII Character
480x3000600011000000Printable ASCII Character
490x3100610011000111Printable ASCII Character
500x3200620011001022Printable ASCII Character
510x3300630011001133Printable ASCII Character
520x3400640011010044Printable ASCII Character
530x3500650011010155Printable ASCII Character
540x3600660011011066Printable ASCII Character
550x3700670011011177Printable ASCII Character
560x3800700011100088Printable ASCII Character
570x3900710011100199Printable ASCII Character
580x3A007200111010::Printable ASCII Character
590x3B007300111011;&#59;Printable ASCII Character
600x3C007400111100<&#60;Printable ASCII Character
610x3D007500111101=&#61;Printable ASCII Character
620x3E007600111110>&#62;Printable ASCII Character
630x3F007700111111?&#63;Printable ASCII Character
640x40010001000000@&#64;Printable ASCII Character
650x41010101000001A&#65;Printable ASCII Character
660x42010201000010B&#66;Printable ASCII Character
670x43010301000011C&#67;Printable ASCII Character
680x44010401000100D&#68;Printable ASCII Character
690x45010501000101E&#69;Printable ASCII Character
700x46010601000110F&#70;Printable ASCII Character
710x47010701000111G&#71;Printable ASCII Character
720x48011001001000H&#72;Printable ASCII Character
730x49011101001001I&#73;Printable ASCII Character
740x4A011201001010J&#74;Printable ASCII Character
750x4B011301001011K&#75;Printable ASCII Character
760x4C011401001100L&#76;Printable ASCII Character
770x4D011501001101M&#77;Printable ASCII Character
780x4E011601001110N&#78;Printable ASCII Character
790x4F011701001111O&#79;Printable ASCII Character
800x50012001010000P&#80;Printable ASCII Character
810x51012101010001Q&#81;Printable ASCII Character
820x52012201010010R&#82;Printable ASCII Character
830x53012301010011S&#83;Printable ASCII Character
840x54012401010100T&#84;Printable ASCII Character
850x55012501010101U&#85;Printable ASCII Character
860x56012601010110V&#86;Printable ASCII Character
870x57012701010111W&#87;Printable ASCII Character
880x58013001011000X&#88;Printable ASCII Character
890x59013101011001Y&#89;Printable ASCII Character
900x5A013201011010Z&#90;Printable ASCII Character
910x5B013301011011[&#91;Printable ASCII Character
920x5C013401011100\&#92;Printable ASCII Character
930x5D013501011101]&#93;Printable ASCII Character
940x5E013601011110^&#94;Printable ASCII Character
950x5F013701011111_&#95;Printable ASCII Character
960x60014001100000`&#96;Printable ASCII Character
970x61014101100001a&#97;Printable ASCII Character
980x62014201100010b&#98;Printable ASCII Character
990x63014301100011c&#99;Printable ASCII Character
1000x64014401100100d&#100;Printable ASCII Character
1010x65014501100101e&#101;Printable ASCII Character
1020x66014601100110f&#102;Printable ASCII Character
1030x67014701100111g&#103;Printable ASCII Character
1040x68015001101000h&#104;Printable ASCII Character
1050x69015101101001i&#105;Printable ASCII Character
1060x6A015201101010j&#106;Printable ASCII Character
1070x6B015301101011k&#107;Printable ASCII Character
1080x6C015401101100l&#108;Printable ASCII Character
1090x6D015501101101m&#109;Printable ASCII Character
1100x6E015601101110n&#110;Printable ASCII Character
1110x6F015701101111o&#111;Printable ASCII Character
1120x70016001110000p&#112;Printable ASCII Character
1130x71016101110001q&#113;Printable ASCII Character
1140x72016201110010r&#114;Printable ASCII Character
1150x73016301110011s&#115;Printable ASCII Character
1160x74016401110100t&#116;Printable ASCII Character
1170x75016501110101u&#117;Printable ASCII Character
1180x76016601110110v&#118;Printable ASCII Character
1190x77016701110111w&#119;Printable ASCII Character
1200x78017001111000x&#120;Printable ASCII Character
1210x79017101111001y&#121;Printable ASCII Character
1220x7A017201111010z&#122;Printable ASCII Character
1230x7B017301111011{&#123;Printable ASCII Character
1240x7C017401111100|&#124;Printable ASCII Character
1250x7D017501111101}&#125;Printable ASCII Character
1260x7E017601111110~&#126;Printable ASCII Character
1270x7F017701111111[empty]&#127;DEL (Delete)
1280x80020010000000€&#128;Extended ASCII Character
1290x81020110000001&#129;Extended ASCII Character
1300x82020210000010‚&#130;Extended ASCII Character
1310x83020310000011ƒ&#131;Extended ASCII Character
1320x84020410000100„&#132;Extended ASCII Character
1330x85020510000101…&#133;Extended ASCII Character
1340x86020610000110†&#134;Extended ASCII Character
1350x87020710000111‡&#135;Extended ASCII Character
1360x88021010001000ˆ&#136;Extended ASCII Character
1370x89021110001001‰&#137;Extended ASCII Character
1380x8A021210001010Š&#138;Extended ASCII Character
1390x8B021310001011‹&#139;Extended ASCII Character
1400x8C021410001100Œ&#140;Extended ASCII Character
1410x8D021510001101&#141;Extended ASCII Character
1420x8E021610001110Ž&#142;Extended ASCII Character
1430x8F021710001111&#143;Extended ASCII Character
1440x90022010010000&#144;Extended ASCII Character
1450x91022110010001‘&#145;Extended ASCII Character
1460x92022210010010’&#146;Extended ASCII Character
1470x93022310010011“&#147;Extended ASCII Character
1480x94022410010100”&#148;Extended ASCII Character
1490x95022510010101•&#149;Extended ASCII Character
1500x96022610010110–&#150;Extended ASCII Character
1510x97022710010111—&#151;Extended ASCII Character
1520x98023010011000˜&#152;Extended ASCII Character
1530x99023110011001™&#153;Extended ASCII Character
1540x9A023210011010š&#154;Extended ASCII Character
1550x9B023310011011›&#155;Extended ASCII Character
1560x9C023410011100œ&#156;Extended ASCII Character
1570x9D023510011101&#157;Extended ASCII Character
1580x9E023610011110ž&#158;Extended ASCII Character
1590x9F023710011111Ÿ&#159;Extended ASCII Character
1600xA0024010100000 &#160;Extended ASCII Character
1610xA1024110100001¡&#161;Extended ASCII Character
1620xA2024210100010¢&#162;Extended ASCII Character
1630xA3024310100011£&#163;Extended ASCII Character
1640xA4024410100100¤&#164;Extended ASCII Character
1650xA5024510100101¥&#165;Extended ASCII Character
1660xA6024610100110¦&#166;Extended ASCII Character
1670xA7024710100111§&#167;Extended ASCII Character
1680xA8025010101000¨&#168;Extended ASCII Character
1690xA9025110101001©&#169;Extended ASCII Character
1700xAA025210101010ª&#170;Extended ASCII Character
1710xAB025310101011«&#171;Extended ASCII Character
1720xAC025410101100¬&#172;Extended ASCII Character
1730xAD025510101101­&#173;Extended ASCII Character
1740xAE025610101110®&#174;Extended ASCII Character
1750xAF025710101111¯&#175;Extended ASCII Character
1760xB0026010110000°&#176;Extended ASCII Character
1770xB1026110110001±&#177;Extended ASCII Character
1780xB2026210110010²&#178;Extended ASCII Character
1790xB3026310110011³&#179;Extended ASCII Character
1800xB4026410110100´&#180;Extended ASCII Character
1810xB5026510110101µ&#181;Extended ASCII Character
1820xB6026610110110&#182;Extended ASCII Character
1830xB7026710110111·&#183;Extended ASCII Character
1840xB8027010111000¸&#184;Extended ASCII Character
1850xB9027110111001¹&#185;Extended ASCII Character
1860xBA027210111010º&#186;Extended ASCII Character
1870xBB027310111011»&#187;Extended ASCII Character
1880xBC027410111100¼&#188;Extended ASCII Character
1890xBD027510111101½&#189;Extended ASCII Character
1900xBE027610111110¾&#190;Extended ASCII Character
1910xBF027710111111¿&#191;Extended ASCII Character
1920xC0030011000000À&#192;Extended ASCII Character
1930xC1030111000001Á&#193;Extended ASCII Character
1940xC2030211000010Â&#194;Extended ASCII Character
1950xC3030311000011Ã&#195;Extended ASCII Character
1960xC4030411000100Ä&#196;Extended ASCII Character
1970xC5030511000101Å&#197;Extended ASCII Character
1980xC6030611000110Æ&#198;Extended ASCII Character
1990xC7030711000111Ç&#199;Extended ASCII Character
2000xC8031011001000È&#200;Extended ASCII Character
2010xC9031111001001É&#201;Extended ASCII Character
2020xCA031211001010Ê&#202;Extended ASCII Character
2030xCB031311001011Ë&#203;Extended ASCII Character
2040xCC031411001100Ì&#204;Extended ASCII Character
2050xCD031511001101Í&#205;Extended ASCII Character
2060xCE031611001110Î&#206;Extended ASCII Character
2070xCF031711001111Ï&#207;Extended ASCII Character
2080xD0032011010000Ð&#208;Extended ASCII Character
2090xD1032111010001Ñ&#209;Extended ASCII Character
2100xD2032211010010Ò&#210;Extended ASCII Character
2110xD3032311010011Ó&#211;Extended ASCII Character
2120xD4032411010100Ô&#212;Extended ASCII Character
2130xD5032511010101Õ&#213;Extended ASCII Character
2140xD6032611010110Ö&#214;Extended ASCII Character
2150xD7032711010111×&#215;Extended ASCII Character
2160xD8033011011000Ø&#216;Extended ASCII Character
2170xD9033111011001Ù&#217;Extended ASCII Character
2180xDA033211011010Ú&#218;Extended ASCII Character
2190xDB033311011011Û&#219;Extended ASCII Character
2200xDC033411011100Ü&#220;Extended ASCII Character
2210xDD033511011101Ý&#221;Extended ASCII Character
2220xDE033611011110Þ&#222;Extended ASCII Character
2230xDF033711011111ß&#223;Extended ASCII Character
2240xE0034011100000à&#224;Extended ASCII Character
2250xE1034111100001á&#225;Extended ASCII Character
2260xE2034211100010â&#226;Extended ASCII Character
2270xE3034311100011ã&#227;Extended ASCII Character
2280xE4034411100100ä&#228;Extended ASCII Character
2290xE5034511100101å&#229;Extended ASCII Character
2300xE6034611100110æ&#230;Extended ASCII Character
2310xE7034711100111ç&#231;Extended ASCII Character
2320xE8035011101000è&#232;Extended ASCII Character
2330xE9035111101001é&#233;Extended ASCII Character
2340xEA035211101010ê&#234;Extended ASCII Character
2350xEB035311101011ë&#235;Extended ASCII Character
2360xEC035411101100ì&#236;Extended ASCII Character
2370xED035511101101í&#237;Extended ASCII Character
2380xEE035611101110î&#238;Extended ASCII Character
2390xEF035711101111ï&#239;Extended ASCII Character
2400xF0036011110000ð&#240;Extended ASCII Character
2410xF1036111110001ñ&#241;Extended ASCII Character
2420xF2036211110010ò&#242;Extended ASCII Character
2430xF3036311110011ó&#243;Extended ASCII Character
2440xF4036411110100ô&#244;Extended ASCII Character
2450xF5036511110101õ&#245;Extended ASCII Character
2460xF6036611110110ö&#246;Extended ASCII Character
2470xF7036711110111÷&#247;Extended ASCII Character
2480xF8037011111000ø&#248;Extended ASCII Character
2490xF9037111111001ù&#249;Extended ASCII Character
2500xFA037211111010ú&#250;Extended ASCII Character
2510xFB037311111011û&#251;Extended ASCII Character
2520xFC037411111100ü&#252;Extended ASCII Character
2530xFD037511111101ý&#253;Extended ASCII Character
2540xFE037611111110þ&#254;Extended ASCII Character
2550xFF037711111111ÿ&#255;Extended ASCII Character
Standard ASCII: Characters 0-127, including control characters (0-31) and printable characters (32-126)
Control Characters: Non-printable characters (0-31) used for control purposes in computing
Extended ASCII: Characters 128-255, which include additional symbols and special characters

What is ASCII?

ASCII (American Standard Code for Information Interchange) is a character encoding standard used for representing text in computers and other electronic devices. Developed in the 1960s, ASCII became one of the first widely adopted character encodings, forming the foundation for modern digital text representation.

The standard ASCII character set consists of 128 characters (0-127), which include control characters, printable characters, and punctuation marks. Extended ASCII expands this range to 256 characters (0-255), adding additional symbols, special characters, and characters from non-English alphabets.

ASCII Character Categories

Control Characters (0-31 and 127)

ASCII control characters are non-printable characters designed to control devices like printers and telecommunications equipment. These characters perform functions such as carriage return, line feed, horizontal tab, and many others.

Example Control Characters:

  • 0 (NUL) - Null character
  • 9 (HT) - Horizontal Tab
  • 10 (LF) - Line Feed
  • 13 (CR) - Carriage Return
  • 27 (ESC) - Escape

Printable Characters (32-126)

Printable ASCII characters include letters, numbers, symbols, and punctuation marks that can be displayed on screen or printed. This range contains the characters most commonly used in English text.

Printable Characters Include:

  • 32 (Space) - Space character
  • 48-57 - Digits 0-9
  • 65-90 - Uppercase letters A-Z
  • 97-122 - Lowercase letters a-z
  • 33-47, 58-64, 91-96, 123-126 - Punctuation and symbols

Extended ASCII (128-255)

Extended ASCII characters expand beyond the standard 7-bit ASCII to include additional 128 characters. These include international characters, mathematical symbols, graphic symbols, and other special characters.

Note: Extended ASCII characters can vary between different code pages and character sets.

Common extended ASCII characters include accented letters (é, ü, ñ), currency symbols (€, £, ¥), mathematical symbols (±, ÷, ×), and various box-drawing characters.

ASCII vs Unicode

While ASCII is limited to 256 characters at most, Unicode is a more comprehensive character encoding standard that can represent virtually all characters from all writing systems used around the world.

ASCII is actually a subset of Unicode, with the first 128 Unicode code points (U+0000 to U+007F) corresponding to the standard ASCII characters. This means all ASCII text is also valid Unicode text, but not vice versa.

ASCII Encoding Formats

ASCII character codes can be represented in different numerical formats:

FormatDescriptionExample (Letter 'A')
DecimalBase-10 representation of the ASCII code65
HexadecimalBase-16 representation, often prefixed with "0x"0x41
OctalBase-8 representation, often prefixed with "0"0101
BinaryBase-2 representation of the ASCII code01000001
HTML EntityRepresentation in HTML documentsA

Converting Between Formats

You can convert between these formats using simple mathematical operations or built-in functions in various programming languages:

  • Decimal to Hexadecimal: 65.toString(16)"41"
  • Hexadecimal to Decimal: parseInt("41", 16)65
  • Decimal to Binary: 65.toString(2)"1000001"
  • ASCII Character to Code: "A".charCodeAt(0)65
  • Code to ASCII Character: String.fromCharCode(65)"A"

Common Uses of ASCII

📄 Text Encoding

ASCII's primary use is for encoding text in computers and electronic devices. It provides a standardized way to represent English characters and common symbols, ensuring consistency across different systems and platforms.

💻 Programming

ASCII codes are essential in programming for character comparisons, string manipulation, and data validation. Many programming languages use ASCII-based encoding for their source code, and programmers often need to understand ASCII for character-based operations.

🔐 Data Transmission

ASCII provides a standard format for transmitting text data between computers and over networks. It forms the basis for many communication protocols and file formats used in data exchange.

🌐 Web Development

In web development, ASCII plays a role in HTML encoding, URL encoding, and character set considerations. Understanding ASCII is valuable for handling form submissions, API interactions, and ensuring proper character rendering in different browsers.

📊 Data Analysis

ASCII sorting order (where A-Z comes before a-z, which comes before special characters in most cases) influences how data is sorted alphabetically in databases, spreadsheets, and other applications. Understanding this ordering is important for consistent data manipulation.

🔄 File Conversion

ASCII provides a common denominator for converting between different file formats and character encodings. Many encoding conversion processes use ASCII as an intermediate format due to its simplicity and universality.

Working with ASCII in Programming Languages

LanguageCharacter to ASCII CodeASCII Code to Character
JavaScript"A".charCodeAt(0); // Returns 65String.fromCharCode(65); // Returns "A"
Pythonord("A") # Returns 65chr(65) # Returns "A"
Java'A' // Character literals are implicitly converted to their ASCII value
(int) 'A' // Explicit cast, returns 65
(char) 65 // Returns 'A'
C/C++int code = 'A'; // Assigns 65 to codechar c = 65; // Assigns 'A' to c
PHPord("A"); // Returns 65chr(65); // Returns "A"

ASCII Control Characters Reference

ASCII control characters (0-31 and 127) serve specific control functions in computing and telecommunications. Here's a reference of commonly used control characters and their functions:

DecHexAbbreviationNameDescription
000NULNullUsed as a string terminator in C/C++
808BSBackspaceMoves cursor back one position
909HTHorizontal TabMoves cursor to next tab stop
100ALFLine FeedMoves cursor to next line, same column
130DCRCarriage ReturnMoves cursor to beginning of line
271BESCEscapeUsed to start escape sequences in terminal handling
1277FDELDeleteDeletes character at cursor position

Note: In modern computing, many of these control characters still serve their historical functions, particularly in terminal environments and text processing. However, their significance has evolved with graphical user interfaces and more sophisticated text editors.

Frequently Asked Questions

What is the difference between ASCII and UTF-8?

ASCII is a 7-bit character encoding standard that represents 128 characters, primarily English characters and control codes. UTF-8 is a variable-width character encoding that can represent all possible Unicode characters. UTF-8 is backward compatible with ASCII, meaning that the first 128 characters in UTF-8 are identical to ASCII, but UTF-8 can represent many more characters including those from virtually all written languages.

Are ASCII and Unicode the same thing?

No, they are different but related. ASCII is a specific character encoding standard from the 1960s that covers 128 characters. Unicode is a much more comprehensive character encoding standard that aims to include all writing systems in the world. The first 128 characters of Unicode (U+0000 to U+007F) correspond to standard ASCII, making ASCII effectively a subset of Unicode.

Why do we still use ASCII when we have Unicode?

ASCII is still widely used because it's simple, universally supported, and sufficient for many English-language applications. It requires less storage space than Unicode for English text, and many legacy systems and file formats are built around ASCII. Additionally, ASCII remains important for understanding character encoding concepts and for compatibility with older systems.

What is the significance of the ASCII value 32?

ASCII value 32 represents the space character. It marks the beginning of printable ASCII characters, as all characters with values 0-31 are control characters. The space character is significant because it serves as the delimiter between words in text and is the first visible (though blank) character in the ASCII table.

How can I determine if a character is uppercase or lowercase in ASCII?

In ASCII, uppercase letters 'A' to 'Z' have values from 65 to 90, while lowercase letters 'a' to 'z' have values from 97 to 122. The difference between an uppercase letter and its lowercase equivalent is always 32. For example, 'A' is 65 and 'a' is 97 (65 + 32). This consistent difference makes it easy to convert between cases by simply adding or subtracting 32.

Similar Tools