ASCII table

Welcome to the ASCII Code Reference Guide!

This site serves as a comprehensive reference for ASCII (American Standard Code for Information Interchange) characters, helping you understand how each symbol is represented across multiple formats. Whether you are a developer, student, or simply curious about character encoding, this guide offers an easy way to convert and understand ASCII values in various formats. ASCII is essential for communication between devices and is used widely in programming, web development, and data transmission.

For each character in the ASCII table, you'll find:

  • Decimal Code (DEC): The standard numeric representation used in most systems.
  • Octal Code (OCT): The base-8 format, primarily useful in computing and legacy systems.
  • Hexadecimal Code (HEX): A compact base-16 representation often used in memory addressing and programming.
  • Binary Code (BIN): The binary (base-2) format representing each character as a sequence of 0s and 1s.
  • HTML Code: Special codes used in web development to display characters like &, <, and more in web browsers.

Each ASCII character, from basic letters and numbers to control characters, is listed below with its various representations. Use this as a quick reference for programming, debugging, or simply learning more about encoding systems.

Start exploring the ASCII characters and their different formats now!

ASCII table

#0 Null character
DEC:0 OCT:0 HEX:0 BIN:0
HTML No.:&#000;
#1 Start of Header
DEC:1 OCT:1 HEX:1 BIN:1
HTML No.:&#001;
#2 Start of Text
DEC:2 OCT:2 HEX:2 BIN:10
HTML No.:&#002;
#3 End of Text
DEC:3 OCT:3 HEX:3 BIN:11
HTML No.:&#003;
#4 End of Transmission
DEC:4 OCT:4 HEX:4 BIN:100
HTML No.:&#004;
#5 Enquiry
DEC:5 OCT:5 HEX:5 BIN:101
HTML No.:&#005;
#6 Acknowledgment
DEC:6 OCT:6 HEX:6 BIN:110
HTML No.:&#006;
#7 Bell
DEC:7 OCT:7 HEX:7 BIN:111
HTML No.:&#007;
#8 Backspace
DEC:8 OCT:10 HEX:8 BIN:1000
HTML No.:&#008;
#9 Horizontal Tab
DEC:9 OCT:11 HEX:9 BIN:1001
HTML No.:&#009;
#10 Line feed
DEC:10 OCT:12 HEX:a BIN:1010
HTML No.:&#010;
#11 Vertical Tab
DEC:11 OCT:13 HEX:b BIN:1011
HTML No.:&#011;
#12 Form feed
DEC:12 OCT:14 HEX:c BIN:1100
HTML No.:&#012;
#13 Carriage return
DEC:13 OCT:15 HEX:d BIN:1101
HTML No.:&#013;
#14 Shift Out
DEC:14 OCT:16 HEX:e BIN:1110
HTML No.:&#014;
#15 Shift In
DEC:15 OCT:17 HEX:f BIN:1111
HTML No.:&#015;
#16 Data Link Escape
DEC:16 OCT:20 HEX:10 BIN:10000
HTML No.:&#016;
#17 Device Control 1
DEC:17 OCT:21 HEX:11 BIN:10001
HTML No.:&#017;
#18 Device Control 2
DEC:18 OCT:22 HEX:12 BIN:10010
HTML No.:&#018;
#19 Device Control 3
DEC:19 OCT:23 HEX:13 BIN:10011
HTML No.:&#019;
#20 Device Control 4
DEC:20 OCT:24 HEX:14 BIN:10100
HTML No.:&#020;
#21 Negative Acknowledgement
DEC:21 OCT:25 HEX:15 BIN:10101
HTML No.:&#021;
#22 Synchronous idle
DEC:22 OCT:26 HEX:16 BIN:10110
HTML No.:&#022;
#23 End of Transmission Block
DEC:23 OCT:27 HEX:17 BIN:10111
HTML No.:&#023;
#24 Cancel
DEC:24 OCT:30 HEX:18 BIN:11000
HTML No.:&#024;
#25 End of Medium
DEC:25 OCT:31 HEX:19 BIN:11001
HTML No.:&#025;
#26 Substitute
DEC:26 OCT:32 HEX:1a BIN:11010
HTML No.:&#026;
#27 Escape
DEC:27 OCT:33 HEX:1b BIN:11011
HTML No.:&#027;
#28 File Separator
DEC:28 OCT:34 HEX:1c BIN:11100
HTML No.:&#028;
#29 Group Separator
DEC:29 OCT:35 HEX:1d BIN:11101
HTML No.:&#029;
#30 Record Separator
DEC:30 OCT:36 HEX:1e BIN:11110
HTML No.:&#030;
#31 Unit Separator
DEC:31 OCT:37 HEX:1f BIN:11111
HTML No.:&#031;
#32  &sp;Space
DEC:32 OCT:40 HEX:20 BIN:100000
HTML No.:&#032; HTML Code:&sp;
#33  !
DEC:33 OCT:41 HEX:21 BIN:100001
HTML No.:&#033; HTML Code:&excl;
#34  "
DEC:34 OCT:42 HEX:22 BIN:100010
HTML No.:&#034; HTML Code:&quot;
#35  #
DEC:35 OCT:43 HEX:23 BIN:100011
HTML No.:&#035; HTML Code:&num;
#36  $
DEC:36 OCT:44 HEX:24 BIN:100100
HTML No.:&#036; HTML Code:&dollar;
#37  %
DEC:37 OCT:45 HEX:25 BIN:100101
HTML No.:&#037; HTML Code:&percnt;
#38  &
DEC:38 OCT:46 HEX:26 BIN:100110
HTML No.:&#038; HTML Code:&amp;
#39  '
DEC:39 OCT:47 HEX:27 BIN:100111
HTML No.:&#039; HTML Code:&apos;
#40  (
DEC:40 OCT:50 HEX:28 BIN:101000
HTML No.:&#040; HTML Code:&lpar;
#41  )
DEC:41 OCT:51 HEX:29 BIN:101001
HTML No.:&#041; HTML Code:&rpar;
#42  *
DEC:42 OCT:52 HEX:2a BIN:101010
HTML No.:&#042; HTML Code:&ast;
#43  +
DEC:43 OCT:53 HEX:2b BIN:101011
HTML No.:&#043; HTML Code:&plus;
#44  ,
DEC:44 OCT:54 HEX:2c BIN:101100
HTML No.:&#044; HTML Code:&comma;
#45 
DEC:45 OCT:55 HEX:2d BIN:101101
HTML No.:&#045; HTML Code:&hyphen;
#46  .
DEC:46 OCT:56 HEX:2e BIN:101110
HTML No.:&#046; HTML Code:&period;
#47  /
DEC:47 OCT:57 HEX:2f BIN:101111
HTML No.:&#047; HTML Code:&sol;
#48 number 0
DEC:48 OCT:60 HEX:30 BIN:110000
HTML No.:&#048;
#49 number 1
DEC:49 OCT:61 HEX:31 BIN:110001
HTML No.:&#049;
#50 number 2
DEC:50 OCT:62 HEX:32 BIN:110010
HTML No.:&#050;
#51 number 3
DEC:51 OCT:63 HEX:33 BIN:110011
HTML No.:&#051;
#52 number 4
DEC:52 OCT:64 HEX:34 BIN:110100
HTML No.:&#052;
#53 number 5
DEC:53 OCT:65 HEX:35 BIN:110101
HTML No.:&#053;
#54 number 6
DEC:54 OCT:66 HEX:36 BIN:110110
HTML No.:&#054;
#55 number 7
DEC:55 OCT:67 HEX:37 BIN:110111
HTML No.:&#055;
#56 number 8
DEC:56 OCT:70 HEX:38 BIN:111000
HTML No.:&#056;
#57 number 9
DEC:57 OCT:71 HEX:39 BIN:111001
HTML No.:&#057;
#58  :
DEC:58 OCT:72 HEX:3a BIN:111010
HTML No.:&#058; HTML Code:&colon;
#59  ;
DEC:59 OCT:73 HEX:3b BIN:111011
HTML No.:&#059; HTML Code:&semi;
#60  <
DEC:60 OCT:74 HEX:3c BIN:111100
HTML No.:&#060; HTML Code:&lt;
#61  =
DEC:61 OCT:75 HEX:3d BIN:111101
HTML No.:&#061; HTML Code:&equals;
#62  >
DEC:62 OCT:76 HEX:3e BIN:111110
HTML No.:&#062; HTML Code:&gt;
#63  ?
DEC:63 OCT:77 HEX:3f BIN:111111
HTML No.:&#063; HTML Code:&quest;
#64  @
DEC:64 OCT:100 HEX:40 BIN:1000000
HTML No.:&#064; HTML Code:&commat;
#65 upper-case letter A
DEC:65 OCT:101 HEX:41 BIN:1000001
HTML No.:&#065;
#66 upper-case letter B
DEC:66 OCT:102 HEX:42 BIN:1000010
HTML No.:&#066;
#67 upper-case letter C
DEC:67 OCT:103 HEX:43 BIN:1000011
HTML No.:&#067;
#68 upper-case letter D
DEC:68 OCT:104 HEX:44 BIN:1000100
HTML No.:&#068;
#69 upper-case letter E
DEC:69 OCT:105 HEX:45 BIN:1000101
HTML No.:&#069;
#70 upper-case letter F
DEC:70 OCT:106 HEX:46 BIN:1000110
HTML No.:&#070;
#71 upper-case letter G
DEC:71 OCT:107 HEX:47 BIN:1000111
HTML No.:&#071;
#72 upper-case letter H
DEC:72 OCT:110 HEX:48 BIN:1001000
HTML No.:&#072;
#73 upper-case letter I
DEC:73 OCT:111 HEX:49 BIN:1001001
HTML No.:&#073;
#74 upper-case letter J
DEC:74 OCT:112 HEX:4a BIN:1001010
HTML No.:&#074;
#75 upper-case letter K
DEC:75 OCT:113 HEX:4b BIN:1001011
HTML No.:&#075;
#76 upper-case letter L
DEC:76 OCT:114 HEX:4c BIN:1001100
HTML No.:&#076;
#77 upper-case letter M
DEC:77 OCT:115 HEX:4d BIN:1001101
HTML No.:&#077;
#78 upper-case letter N
DEC:78 OCT:116 HEX:4e BIN:1001110
HTML No.:&#078;
#79 upper-case letter O
DEC:79 OCT:117 HEX:4f BIN:1001111
HTML No.:&#079;
#80 upper-case letter P
DEC:80 OCT:120 HEX:50 BIN:1010000
HTML No.:&#080;
#81 upper-case letter Q
DEC:81 OCT:121 HEX:51 BIN:1010001
HTML No.:&#081;
#82 upper-case letter R
DEC:82 OCT:122 HEX:52 BIN:1010010
HTML No.:&#082;
#83 upper-case letter S
DEC:83 OCT:123 HEX:53 BIN:1010011
HTML No.:&#083;
#84 upper-case letter T
DEC:84 OCT:124 HEX:54 BIN:1010100
HTML No.:&#084;
#85 upper-case letter U
DEC:85 OCT:125 HEX:55 BIN:1010101
HTML No.:&#085;
#86 upper-case letter V
DEC:86 OCT:126 HEX:56 BIN:1010110
HTML No.:&#086;
#87 upper-case letter W
DEC:87 OCT:127 HEX:57 BIN:1010111
HTML No.:&#087;
#88 upper-case letter X
DEC:88 OCT:130 HEX:58 BIN:1011000
HTML No.:&#088;
#89 upper-case letter Y
DEC:89 OCT:131 HEX:59 BIN:1011001
HTML No.:&#089;
#90 upper-case letter Z
DEC:90 OCT:132 HEX:5a BIN:1011010
HTML No.:&#090;
#91  [
DEC:91 OCT:133 HEX:5b BIN:1011011
HTML No.:&#091; HTML Code:&lsqb;
#92  \
DEC:92 OCT:134 HEX:5c BIN:1011100
HTML No.:&#092; HTML Code:&bsol;
#93  ]
DEC:93 OCT:135 HEX:5d BIN:1011101
HTML No.:&#093; HTML Code:&rsqb;
#94  ˆ
DEC:94 OCT:136 HEX:5e BIN:1011110
HTML No.:&#094; HTML Code:&circ;
#95  `
DEC:95 OCT:137 HEX:5f BIN:1011111
HTML No.:&#095; HTML Code:&grave;
#96  `
DEC:96 OCT:140 HEX:60 BIN:1100000
HTML No.:&#096;
#97 lower-case letter a
DEC:97 OCT:141 HEX:61 BIN:1100001
HTML No.:&#097;
#98 lower-case letter b
DEC:98 OCT:142 HEX:62 BIN:1100010
HTML No.:&#098;
#99 lower-case letter c
DEC:99 OCT:143 HEX:63 BIN:1100011
HTML No.:&#099;
#100 lower-case letter d
DEC:100 OCT:144 HEX:64 BIN:1100100
HTML No.:&#100;
#101 lower-case letter e
DEC:101 OCT:145 HEX:65 BIN:1100101
HTML No.:&#101;
#102 lower-case letter f
DEC:102 OCT:146 HEX:66 BIN:1100110
HTML No.:&#102;
#103 lower-case letter g
DEC:103 OCT:147 HEX:67 BIN:1100111
HTML No.:&#103;
#104 lower-case letter h
DEC:104 OCT:150 HEX:68 BIN:1101000
HTML No.:&#104;
#105 lower-case letter i
DEC:105 OCT:151 HEX:69 BIN:1101001
HTML No.:&#105;
#106 lower-case letter j
DEC:106 OCT:152 HEX:6a BIN:1101010
HTML No.:&#106;
#107 lower-case letter k
DEC:107 OCT:153 HEX:6b BIN:1101011
HTML No.:&#107;
#108 lower-case letter l
DEC:108 OCT:154 HEX:6c BIN:1101100
HTML No.:&#108;
#109 lower-case letter m
DEC:109 OCT:155 HEX:6d BIN:1101101
HTML No.:&#109;
#110 lower-case letter n
DEC:110 OCT:156 HEX:6e BIN:1101110
HTML No.:&#110;
#111 lower-case letter o
DEC:111 OCT:157 HEX:6f BIN:1101111
HTML No.:&#111;
#112 lower-case letter p
DEC:112 OCT:160 HEX:70 BIN:1110000
HTML No.:&#112;
#113 lower-case letter q
DEC:113 OCT:161 HEX:71 BIN:1110001
HTML No.:&#113;
#114 lower-case letter r
DEC:114 OCT:162 HEX:72 BIN:1110010
HTML No.:&#114;
#115 lower-case letter s
DEC:115 OCT:163 HEX:73 BIN:1110011
HTML No.:&#115;
#116 lower-case letter t
DEC:116 OCT:164 HEX:74 BIN:1110100
HTML No.:&#116;
#117 lower-case letter u
DEC:117 OCT:165 HEX:75 BIN:1110101
HTML No.:&#117;
#118 lower-case letter v
DEC:118 OCT:166 HEX:76 BIN:1110110
HTML No.:&#118;
#119 lower-case letter w
DEC:119 OCT:167 HEX:77 BIN:1110111
HTML No.:&#119;
#120 lower-case letter x
DEC:120 OCT:170 HEX:78 BIN:1111000
HTML No.:&#120;
#121 lower-case letter y
DEC:121 OCT:171 HEX:79 BIN:1111001
HTML No.:&#121;
#122 lower-case letter z
DEC:122 OCT:172 HEX:7a BIN:1111010
HTML No.:&#122;
#123  {
DEC:123 OCT:173 HEX:7b BIN:1111011
HTML No.:&#123; HTML Code:&lcub;
#124  |
DEC:124 OCT:174 HEX:7c BIN:1111100
HTML No.:&#124; HTML Code:&verbar;
#125  }
DEC:125 OCT:175 HEX:7d BIN:1111101
HTML No.:&#125; HTML Code:&rcub;
#126  ˜
DEC:126 OCT:176 HEX:7e BIN:1111110
HTML No.:&#126; HTML Code:&tilde;
#127 Delete
DEC:127 OCT:177 HEX:7f BIN:1111111
HTML No.:&#127;