ASCII Table & Character Lookup

    Full ASCII reference table with character lookup and all encoding formats.

    Character Converter

    DecHexBinOctCharName
    000000000000NUL
    101000000011SOH
    202000000102STX
    303000000113ETX
    404000001004EOT
    505000001015ENQ
    606000001106ACK
    707000001117BEL
    8080000100010BS
    9090000100111TAB
    100A0000101012LF
    110B0000101113VT
    120C0000110014FF
    130D0000110115CR
    140E0000111016SO
    150F0000111117SI
    16100001000020DLE
    17110001000121DC1
    18120001001022DC2
    19130001001123DC3
    20140001010024DC4
    21150001010125NAK
    22160001011026SYN
    23170001011127ETB
    24180001100030CAN
    25190001100131EM
    261A0001101032SUB
    271B0001101133ESC
    281C0001110034FS
    291D0001110135GS
    301E0001111036RS
    311F0001111137US
    32200010000040Space
    33210010000141!!
    34220010001042""
    35230010001143##
    36240010010044$$
    37250010010145%%
    38260010011046&&
    39270010011147''
    40280010100050((
    41290010100151))
    422A0010101052**
    432B0010101153++
    442C0010110054,,
    452D0010110155--
    462E0010111056..
    472F0010111157//
    4830001100006000
    4931001100016111
    5032001100106222
    5133001100116333
    5234001101006444
    5335001101016555
    5436001101106666
    5537001101116777
    5638001110007088
    5739001110017199
    583A0011101072::
    593B0011101173;;
    603C0011110074<<
    613D0011110175==
    623E0011111076>>
    633F0011111177??
    644001000000100@@
    654101000001101AA
    664201000010102BB
    674301000011103CC
    684401000100104DD
    694501000101105EE
    704601000110106FF
    714701000111107GG
    724801001000110HH
    734901001001111II
    744A01001010112JJ
    754B01001011113KK
    764C01001100114LL
    774D01001101115MM
    784E01001110116NN
    794F01001111117OO
    805001010000120PP
    815101010001121QQ
    825201010010122RR
    835301010011123SS
    845401010100124TT
    855501010101125UU
    865601010110126VV
    875701010111127WW
    885801011000130XX
    895901011001131YY
    905A01011010132ZZ
    915B01011011133[[
    925C01011100134\\
    935D01011101135]]
    945E01011110136^^
    955F01011111137__
    966001100000140``
    976101100001141aa
    986201100010142bb
    996301100011143cc
    1006401100100144dd
    1016501100101145ee
    1026601100110146ff
    1036701100111147gg
    1046801101000150hh
    1056901101001151ii
    1066A01101010152jj
    1076B01101011153kk
    1086C01101100154ll
    1096D01101101155mm
    1106E01101110156nn
    1116F01101111157oo
    1127001110000160pp
    1137101110001161qq
    1147201110010162rr
    1157301110011163ss
    1167401110100164tt
    1177501110101165uu
    1187601110110166vv
    1197701110111167ww
    1207801111000170xx
    1217901111001171yy
    1227A01111010172zz
    1237B01111011173{{
    1247C01111100174||
    1257D01111101175}}
    1267E01111110176~~
    1277F01111111177DEL

    Showing 128 characters. Click any row to copy.

    Advertisement

    Understanding ASCII: The Foundation of Text Encoding

    ASCII (American Standard Code for Information Interchange) is a character encoding standard published in 1963 by the American Standards Association. It maps 128 characters to the numbers 0–127, covering English letters (uppercase and lowercase), digits 0–9, punctuation marks, and control characters. ASCII was designed for teleprinter communication and became the foundation for virtually all modern character encoding systems.

    The 128 ASCII characters are divided into two groups. Control characters (0–31 and 127) are non-printable characters that originally controlled hardware devices: NUL (null), BEL (ring bell), BS (backspace), TAB (horizontal tab), LF (line feed), CR (carriage return), and ESC (escape). Printable characters (32–126) include space, digits, uppercase letters, lowercase letters, and punctuation.

    ASCII in Programming

    Programmers work with ASCII codes frequently. In JavaScript, `String.fromCharCode(65)` returns "A", and `"A".charCodeAt(0)` returns 65. In Python, `ord('A')` returns 65 and `chr(65)` returns 'A'. Understanding ASCII codes is essential for string manipulation, sorting algorithms, and data validation.

    From ASCII to Unicode

    ASCII's 128-character limit was insufficient for non-English languages. Extended ASCII (128–255) added characters for European languages but varied by platform and region, creating compatibility nightmares. Unicode was created to solve this by assigning a unique code point to every character in every writing system. UTF-8, the dominant encoding on the web, is backward-compatible with ASCII — the first 128 UTF-8 characters are identical to ASCII.

    ASCII Art

    ASCII art uses printable characters to create visual images and designs. It originated in the era of text-only terminals and continues as a creative art form. ASCII art is used in code comments, email signatures, README files, and retro-style games. The key to ASCII art is choosing characters with the right visual density: '@' and '#' appear dark, while '.' and ' ' appear light.

    HTML Entities and URL Encoding

    Special characters in HTML must be encoded as entities to avoid parsing conflicts. For example, '<' is `&lt;`, '&' is `&amp;`. URL encoding (percent-encoding) replaces unsafe characters with '%' followed by their hexadecimal ASCII code: space becomes '%20', '/' becomes '%2F'. Understanding ASCII codes is essential for working with these encoding systems.

    Frequently Asked Questions

    Advertisement