ASCII Table

DecHexOctCharDescription
00x00000NULNull
10x01001SOHStart of Heading
20x02002STXStart of Text
30x03003ETXEnd of Text
40x04004EOTEnd of Transmission
50x05005ENQEnquiry
60x06006ACKAcknowledge
70x07007BELBell
80x08010BSBackspace
90x09011HTHorizontal Tab
100x0A012LFLine Feed
110x0B013VTVertical Tab
120x0C014FFForm Feed
130x0D015CRCarriage Return
140x0E016SOShift Out
150x0F017SIShift In
160x10020DLEData Link Escape
170x11021DC1Device Control 1
180x12022DC2Device Control 2
190x13023DC3Device Control 3
200x14024DC4Device Control 4
210x15025NAKNegative Acknowledge
220x16026SYNSynchronous Idle
230x17027ETBEnd of Trans. Block
240x18030CANCancel
250x19031EMEnd of Medium
260x1A032SUBSubstitute
270x1B033ESCEscape
280x1C034FSFile Separator
290x1D035GSGroup Separator
300x1E036RSRecord Separator
310x1F037USUnit Separator
320x20040SPSpace
330x21041!Exclamation mark
340x22042"Double quote
350x23043#Hash / Number sign
360x24044$Dollar sign
370x25045%Percent sign
380x26046&Ampersand
390x27047'Single quote
400x28050(Left parenthesis
410x29051)Right parenthesis
420x2A052*Asterisk
430x2B053+Plus sign
440x2C054,Comma
450x2D055-Hyphen / Minus
460x2E056.Period / Full stop
470x2F057/Slash
480x300600Digit 0
490x310611Digit 1
500x320622Digit 2
510x330633Digit 3
520x340644Digit 4
530x350655Digit 5
540x360666Digit 6
550x370677Digit 7
560x380708Digit 8
570x390719Digit 9
580x3A072:Colon
590x3B073;Semicolon
600x3C074<Less than
610x3D075=Equals sign
620x3E076>Greater than
630x3F077?Question mark
640x40100@At sign
650x41101AUppercase A
660x42102BUppercase B
670x43103CUppercase C
680x44104DUppercase D
690x45105EUppercase E
700x46106FUppercase F
710x47107GUppercase G
720x48110HUppercase H
730x49111IUppercase I
740x4A112JUppercase J
750x4B113KUppercase K
760x4C114LUppercase L
770x4D115MUppercase M
780x4E116NUppercase N
790x4F117OUppercase O
800x50120PUppercase P
810x51121QUppercase Q
820x52122RUppercase R
830x53123SUppercase S
840x54124TUppercase T
850x55125UUppercase U
860x56126VUppercase V
870x57127WUppercase W
880x58130XUppercase X
890x59131YUppercase Y
900x5A132ZUppercase Z
910x5B133[Left square bracket
920x5C134\Backslash
930x5D135]Right square bracket
940x5E136^Caret / Circumflex
950x5F137_Underscore
960x60140`Grave accent / Backtick
970x61141aLowercase a
980x62142bLowercase b
990x63143cLowercase c
1000x64144dLowercase d
1010x65145eLowercase e
1020x66146fLowercase f
1030x67147gLowercase g
1040x68150hLowercase h
1050x69151iLowercase i
1060x6A152jLowercase j
1070x6B153kLowercase k
1080x6C154lLowercase l
1090x6D155mLowercase m
1100x6E156nLowercase n
1110x6F157oLowercase o
1120x70160pLowercase p
1130x71161qLowercase q
1140x72162rLowercase r
1150x73163sLowercase s
1160x74164tLowercase t
1170x75165uLowercase u
1180x76166vLowercase v
1190x77167wLowercase w
1200x78170xLowercase x
1210x79171yLowercase y
1220x7A172zLowercase z
1230x7B173{Left curly brace
1240x7C174|Vertical bar / Pipe
1250x7D175}Right curly brace
1260x7E176~Tilde
1270x7F177DELDelete

What is ASCII?

ASCII (American Standard Code for Information Interchange) is a character encoding standard that assigns numeric values to 128 characters, including English letters, digits, punctuation marks, and control characters. Developed in the 1960s, ASCII forms the foundation of modern character encoding systems like UTF-8. Each ASCII character is represented by a 7-bit binary number (0-127).

FAQ

Q: What is the difference between ASCII and Unicode?

A: ASCII defines 128 characters using 7 bits. Unicode is a much larger standard that encompasses over 149,000 characters from virtually all writing systems. The first 128 Unicode code points are identical to ASCII, making ASCII a subset of Unicode.

Q: What are ASCII control characters?

A: Control characters (0-31 and 127) are non-printable characters originally used to control hardware devices like printers and teleprinters. Examples include NUL (null), LF (line feed/newline), CR (carriage return), TAB (horizontal tab), and ESC (escape).

Q: Why does ASCII only go up to 127?

A: ASCII uses 7 bits of data, which allows for 2^7 = 128 possible values (0-127). The 8th bit was originally used for parity checking in data transmission. Extended ASCII variants use all 8 bits to represent 256 characters, but these are not part of the standard ASCII specification.

Q: What is the ASCII value of the space character?

A: The space character has the ASCII value 32 (decimal), 20 (hexadecimal), or 040 (octal). It is the first printable ASCII character and is used to separate words in text.

Q: How is ASCII used in programming?

A: Programmers use ASCII values for character comparison, sorting, encryption, data validation, and converting between characters and their numeric representations. Most programming languages provide built-in functions to get the ASCII value of a character (e.g., ord() in Python, charCodeAt() in JavaScript).

You May Also Like