CINXE.COM

ASCII Table / character codes – SS64.com

<!doctype html><html lang="en"> <head><meta charset="UTF-8"> <meta name="viewport" content="width=1000, initial-scale=1"> <meta name="Description" CONTENT="ASCII Table, ASCII is a numeric computer code used to represent characters from the alphabet. Each character is represented by a number."> <link rel="stylesheet" href="main.css" type="text/css"> <link rel="icon" href="/favicon.ico" sizes="48x48"> <link rel="icon" href="/favicon.svg" sizes="any" type="image/svg+xml"> <title>ASCII Table / character codes – SS64.com</title> <!--Set border, background, width and visibility with cols --> <style> table { border: 2px; border-collapse: collapse; padding: 0; border-spacing: 0; background-color: #ebebf0; Line-height: 0.625em; } td, th{ border: 1px solid #ccc; padding: 5px 7px; font-size: 90%; font-family: "Helvetica Neue", "Segoe UI Variable Static Text", Helvetica, Arial, Oxygen-Sans, Roboto, Ubuntu, sans-serif; text-align: center; line-height: 11.5px; } tr td { background-color: #F4F4FB; } tr:nth-child(2n) td { background-color: #EBEBF0; } .first { border-left: 15px solid #D9D9DE; } .character { background-color: #FFF; border-right: 15px solid #D9D9DE; } #ascii {width: 100%;} #extended {width: 35%; min-width: 600px;} /* Dark mode */ @media (prefers-color-scheme: dark) { .first { border-left: 15px solid #BDBDC6; } .character { border-right: 15px solid #BDBDC6; } td, th{ border: 1px solid #BDBDBD;} } </style> <script async src="/js/content.js"></script> <script async src="/js/b.js"></script> </head> <body> <!-- #BeginLibraryItem "/Library/head_home.lbi" --><div id="tnav"><ul> <li class="tbtn"><a href="/">SS64</a></li> <li><div id="search"><form action="https://www.google.com/search" method="get"> <input type="text" name="q" id="qu" size="27" maxlength="255" aria-label="Search text"> <input class="submit mousetrap" value="Search" id="btn" type="submit"> <input type="hidden" name="sitesearch" value="ss64.com"><input type="hidden" name="udm" value="14"></form></div></li> </ul></div><!-- #EndLibraryItem --><h1>ASCII Table</h1> <table id="ascii"> <colgroup> <col class="first"> <col span="3"> <col span="1" class="character"> <col span="2"> <col span="1" class="character"> <col span="2"> <col span="1" class="character"> <col span="2"> <col span="1" class="character"> </colgroup> <tr> <th><abbr title="Decimal">Dec</abbr></th> <th>Hex</th> <th>Alt</th> <th>Esc</th> <th>Character</th> <th><abbr title="Decimal">Dec</abbr></th> <th>Hex</th> <th>Character</th> <th><abbr title="Decimal">Dec</abbr></th> <th>Hex</th> <th>Character</th> <th><abbr title="Decimal">Dec</abbr></th> <th>Hex</th> <th>Character</th></tr> <tr> <td>0</td> <td>0x00</td> <td>&nbsp;</td> <td>Ctrl-@</td> <td>NUL (Null)</td> <td>32</td> <td>0x20</td> <td>[Space]</td> <td>64</td> <td>0x40</td> <td>@</td> <td>96</td> <td>0x60</td> <td>`</td> </tr> <tr> <td>1</td> <td>0x01</td> <td>☺</td> <td>Ctrl-A</td> <td><abbr title="Start of Header">SOH</abbr></td> <td>33</td> <td>0x21</td> <td>!</td> <td>65</td> <td>0x41</td> <td>A</td> <td>97</td> <td>0x61</td> <td>a</td> </tr> <tr> <td>2</td> <td>0x02</td> <td>☻</td> <td>Ctrl-B</td> <td><abbr title="Start of Text">STX</abbr></td> <td>34</td> <td>0x22</td> <td>&quot;</td> <td>66</td> <td>0x42</td> <td>B</td> <td>98</td> <td>0x62</td> <td>b</td> </tr> <tr> <td>3</td> <td>0x03</td> <td>♥</td> <td>Ctrl-C</td> <td><abbr title="End of Text">ETX</abbr></td> <td>35</td> <td>0x23</td> <td>#</td> <td>67</td> <td>0x43</td> <td>C</td> <td>99</td> <td>0x63</td> <td>c</td> </tr> <tr> <td>4</td> <td>0x04</td> <td>♦</td> <td>Ctrl-D</td> <td><abbr title="End of Transmission/signal end of file to a Unix terminal driver">EOT</abbr></td> <td>36</td> <td>0x24</td> <td>$</td> <td>68</td> <td>0x44</td> <td>D</td> <td>100</td> <td>0x64</td> <td>d</td> </tr> <tr> <td>5</td> <td>0x05</td> <td>♣</td> <td>Ctrl-E</td> <td><abbr title="Enquiry, a signal intended to trigger a response at the receiving end.">ENQ</abbr></td> <td>37</td> <td>0x25</td> <td>%</td> <td>69</td> <td>0x45</td> <td>E</td> <td>101</td> <td>0x65</td> <td>e</td> </tr> <tr> <td>6</td> <td>0x06</td> <td>♠</td> <td>Ctrl-F</td> <td><abbr title="Acknowledgement signal acknowledgment, or receipt of a message">ACK</abbr></td> <td>38</td> <td>0x26</td> <td>&amp;</td> <td>70</td> <td>0x46</td> <td>F</td> <td>102</td> <td>0x66</td> <td>f</td> </tr> <tr> <td>7</td> <td>0x07</td> <td>•</td> <td>Ctrl-G</td> <td><abbr title="Audible Bell code, originally sent to ring a small electromechanical bell on remote tickers/teleprinters/teletypewriters.">BEL</abbr></td> <td>39</td> <td>0x27</td> <td>'</td> <td>71</td> <td>0x47</td> <td>G</td> <td>103</td> <td>0x67</td> <td>g</td> </tr> <tr> <td>8</td> <td>0x08</td> <td>◘</td> <td>Ctrl-H</td> <td><abbr title="Backspace (Teletype) appears as ^H on a terminal">BS Backspace</abbr></td> <td>40</td> <td>0x28</td> <td>(</td> <td>72</td> <td>0x48</td> <td>H</td> <td>104</td> <td>0x68</td> <td>h</td> </tr> <tr> <td>9</td> <td>0x09</td> <td>○</td> <td>Ctrl-I</td> <td><abbr title="Horizontal Tab">TAB</abbr> \t</td> <td>41</td> <td>0x29</td> <td>)</td> <td>73</td> <td>0x49</td> <td>I</td> <td>105</td> <td>0x69</td> <td>i</td> </tr> <tr> <td>10</td> <td>0x0A</td> <td>◙</td> <td>Ctrl-J</td> <td><abbr title="Line ending, end of line (EOL), next line (NEL) or line break.">LF</abbr> Line Feed \n</td> <td>42</td> <td>0x2A</td> <td>*</td> <td>74</td> <td>0x4A</td> <td>J</td> <td>106</td> <td>0x6A</td> <td>j</td> </tr> <tr> <td>11</td> <td>0x0B</td> <td>♂</td> <td>Ctrl-K</td> <td><abbr title="Vertical Tab">VT</abbr></td> <td>43</td> <td>0x2B</td> <td>+</td> <td>75</td> <td>0x4B</td> <td>K</td> <td>107</td> <td>0x6B</td> <td>k</td> </tr> <tr> <td>12</td> <td>0x0C</td> <td>♀</td> <td>Ctrl-L</td> <td><abbr title="Eject the current page and continue printing at the top of the next">FF</abbr> Form Feed</td> <td>44</td> <td>0x2C</td> <td>,</td> <td>76</td> <td>0x4C</td> <td>L</td> <td>108</td> <td>0x6C</td> <td>l</td> </tr> <tr> <td>13</td> <td>0x0D</td> <td>♪</td> <td>Ctrl‑M</td> <td><abbr title="Reset a device’s position to the beginning of a line of text.">CR</abbr> Carriage Return \r</td> <td>45</td> <td>0x2D</td> <td>-</td> <td>77</td> <td>0x4D</td> <td>M</td> <td>109</td> <td>0x6D</td> <td>m</td> </tr> <tr> <td>14</td> <td>0x0E</td> <td>♫</td> <td>Ctrl-N</td> <td><abbr title="Shift Out, shift a two colour print ribbon up or on later systems switch font.">SO</abbr></td> <td>46</td> <td>0x2E</td> <td>.</td> <td>78</td> <td>0x4E</td> <td>N</td> <td>110</td> <td>0x6E</td> <td>n</td> </tr> <tr> <td>15</td> <td>0x0F</td> <td>☼</td> <td>Ctrl-O</td> <td><abbr title="Shift In, shift a two colour print ribbon down or on later systems switch font.">SI</abbr></td> <td>47</td> <td>0x2F</td> <td>/</td> <td>79</td> <td>0x4F</td> <td>O</td> <td>111</td> <td>0x6F</td> <td>o</td> </tr> <tr> <td>16</td> <td>0x10</td> <td>►</td> <td>Ctrl-P</td> <td><abbr title="Data Link Escape. The popular Hayes protocol for modems defines silence+++silence an an escape instead of the DLE character.">DLE</abbr></td> <td>48</td> <td>0x30</td> <td>0</td> <td>80</td> <td>0x50</td> <td>P</td> <td>112</td> <td>0x70</td> <td>p</td> </tr> <tr> <td>17</td> <td>0x11</td> <td>◄</td> <td>Ctrl-Q</td> <td><abbr title="Device control 1">DC1</abbr></td> <td>49</td> <td>0x31</td> <td>1</td> <td>81</td> <td>0x51</td> <td>Q</td> <td>113</td> <td>0x71</td> <td>q</td> </tr> <tr> <td>18</td> <td>0x12</td> <td>↕</td> <td>Ctrl-R</td> <td><abbr title="Device control 2">DC2</abbr></td> <td>50</td> <td>0x32</td> <td>2</td> <td>82</td> <td>0x52</td> <td>R</td> <td>114</td> <td>0x72</td> <td>r</td> </tr> <tr> <td>19</td> <td>0x13</td> <td>‼</td> <td>Ctrl-S</td> <td><abbr title="Device control 3">DC3</abbr></td> <td>51</td> <td>0x33</td> <td>3</td> <td>83</td> <td>0x53</td> <td>S</td> <td>115</td> <td>0x73</td> <td>s</td> </tr> <tr> <td>20</td> <td>0x14</td> <td>¶</td> <td>Ctrl-T</td> <td><abbr title="Device control 4">DC4</abbr></td> <td>52</td> <td>0x34</td> <td>4</td> <td>84</td> <td>0x54</td> <td>T</td> <td>116</td> <td>0x74</td> <td>t</td> </tr> <tr> <td>21</td> <td>0x15</td> <td>§</td> <td>Ctrl-U</td> <td><abbr title="Negative-acknowledge, reject a previously received message or indicate some kind of error.">NAK</abbr></td> <td>53</td> <td>0x35</td> <td>5</td> <td>85</td> <td>0x55</td> <td>U</td> <td>117</td> <td>0x75</td> <td>u</td> </tr> <tr> <td>22</td> <td>0x16</td> <td>▬</td> <td>Ctrl-V</td> <td><abbr title="Synchronous idle, provide a signal from which synchronous correction may be achieved between data terminal equipment.">SYN</abbr></td> <td>54</td> <td>0x36</td> <td>6</td> <td>86</td> <td>0x56</td> <td>V</td> <td>118</td> <td>0x76</td> <td>v</td> </tr> <tr> <td>23</td> <td>0x17</td> <td>↨</td> <td>Ctrl‑W</td> <td><abbr title="The end of a block of Transission data for communications purposes.">ETB</abbr></td> <td>55</td> <td>0x37</td> <td>7</td> <td>87</td> <td>0x57</td> <td>W</td> <td>119</td> <td>0x77</td> <td>w</td> </tr> <tr> <td>24</td> <td>0x18</td> <td>↑</td> <td>Ctrl-X</td> <td><abbr title="Cancel, disregard the last character or data block.">CAN</abbr></td> <td>56</td> <td>0x38</td> <td>8</td> <td>88</td> <td>0x58</td> <td>X</td> <td>120</td> <td>0x78</td> <td>x</td> </tr> <tr> <td>25</td> <td>0x19</td> <td>↓</td> <td>Ctrl-Y</td> <td><abbr title="End of Medium/End of Tape">EM</abbr></td> <td>57</td> <td>0x39</td> <td>9</td> <td>89</td> <td>0x59</td> <td>Y</td> <td>121</td> <td>0x79</td> <td>y</td> </tr> <tr> <td>26</td> <td>0x1A</td> <td>→</td> <td>Ctrl-Z</td> <td><abbr title="Substitute character, use this to pad transmitted data in order to send it in blocks of a fixed size.">SUB</abbr> (EOF)</td> <td>58</td> <td>0x3A</td> <td>:</td> <td>90</td> <td>0x5A</td> <td>Z</td> <td>122</td> <td>0x7A</td> <td>z</td> </tr> <tr> <td>27</td> <td>0x1B</td> <td>←</td> <td>Ctrl-[</td> <td>ESC (Escape)</td> <td>59</td> <td>0x3B</td> <td>;</td> <td>91</td> <td>0x5B</td> <td>[</td> <td>123</td> <td>0x7B</td> <td>{</td> </tr> <tr> <td>28</td> <td>0x1C</td> <td>∟</td> <td>Ctrl-/</td> <td><abbr title="File Separator - delimiter to mark the fields of a data structure.">FS</abbr></td> <td>60</td> <td>0x3C</td> <td>&lt;</td> <td>92</td> <td>0x5C</td> <td>\</td> <td>124</td> <td>0x7C</td> <td>|</td> </tr> <tr> <td>29</td> <td>0x1D</td> <td>↔</td> <td>Ctrl-]</td> <td><abbr title="Group Separator - delimiter to mark the fields of a data structure.">GS</abbr></td> <td>61</td> <td>0x3D</td> <td>=</td> <td>93</td> <td>0x5D</td> <td>]</td> <td>125</td> <td>0x7D</td> <td>}</td> </tr> <tr> <td>30</td> <td>0x1E</td> <td>▲</td> <td>Ctrl-^</td> <td><abbr title="Record Separator - delimiter to mark the fields of a data structure.">RS</abbr></td> <td>62</td> <td>0x3E</td> <td>&gt;</td> <td>94</td> <td>0x5E</td> <td>^</td> <td>126</td> <td>0x7E</td> <td>~</td> </tr> <tr> <td>31</td> <td>0x1F</td> <td>▼</td> <td>Ctrl-_</td> <td><abbr title="Unit Separator - delimiter to mark the fields of a data structure.">US</abbr></td> <td>63</td> <td>0x3F</td> <td>?</td> <td>95</td> <td>0x5F</td> <td>_</td> <td>127</td> <td>0x7F</td> <td><abbr title="In Windows the delete key maps to VK_DELETE (0x2E), in UNIX it is mostly handled by the readline library.">DEL</abbr></td> </tr> </table> <p>ASCII is a <a href="https://www.w3.org/International/articles/definitions-characters/">character encoding</a> standard used to store characters and basic punctuation as numeric values.<br> ASCII codes from 0 - 127 are identical to Unicode. Adding 32 (or flipping the sixth bit) will convert an upper case letter to lower case.</p> <h2>Extended ASCII/ANSI</h2> <blockquote> <p>Some Extended ASCII codes from 128 - 256 are no longer in use because the original code pages varied by country/<a href="locale.html">locale</a>.<br> Below are the modern Unicode equivalents for the most common (Code Page 1252/ANSI) characters:</p> <table id="extended"> <colgroup> <col class="first"> <col span="1"> <col span="1" class="character"> <col span="2"> <col span="1" class="character"> </colgroup> <tr> <th><abbr title="Decimal">Dec</abbr></th> <th>Hex</th> <th>Unicode Character</th> <th><abbr title="Decimal">Dec</abbr></th> <th>Hex</th> <th>Unicode Character</th> </tr> <tr> <td>8220</td> <td>0x201C</td> <td>“</td> <td>169</td> <td>0x00A9</td> <td>©</td> </tr> <tr> <td>8221</td> <td>0x201D</td> <td>”</td> <td>174</td> <td>0x00AE</td> <td>®</td> </tr> <tr> <td>8216</td> <td>0x2018</td> <td>‘</td> <td>176</td> <td>0x00B0</td> <td>° (degree sign)</td> </tr> <tr> <td>8217</td> <td>0x2019</td> <td>’</td> <td>177</td> <td>0x00B1</td> <td>±</td> </tr> <tr> <td>8222</td> <td>0x201E</td> <td>&bdquo;</td> <td>178</td> <td>0x00B2</td> <td>² (squared)</td> </tr> <tr> <td>8218</td> <td>0x201A</td> <td>‚</td> <td>179</td> <td>0x00B3</td> <td>³ (cubed)</td> </tr> <tr> <td>171</td> <td>0x00AB</td> <td>«</td> <td>180</td> <td>0x00B4</td> <td>´ (acute)</td> </tr> <tr> <td>187</td> <td>0x00BB</td> <td>»</td> <td>181</td> <td>0x00B5</td> <td>µ</td> </tr> <tr> <td>8249</td> <td>0x2039</td> <td>‹</td> <td>182</td> <td>0x00B6</td> <td>¶</td> </tr> <tr> <td>8250</td> <td>0x203A</td> <td>›</td> <td>188</td> <td>0x00BC</td> <td>¼</td> </tr> <tr> <td>161</td> <td>0x00A1</td> <td>¡ (inverted !)</td> <td>189</td> <td>0x00BD</td> <td>½</td> </tr> <tr> <td>191</td> <td>0x00BF</td> <td>¿ (inverted ?)</td> <td>190</td> <td>0x00BE</td> <td>¾</td> </tr> <tr> <td>401</td> <td>0x0191</td> <td><a href="https://en.wikipedia.org/wiki/%C6%91">Ƒ</a></td> <td>198</td> <td>0x00C6</td> <td>Æ</td> </tr> <tr> <td>183</td> <td>0x00B7</td> <td>·&nbsp;(<a href="https://en.wikipedia.org/wiki/Interpunct">interpunct</a>)</td> <td>230</td> <td>0x00E6</td> <td>æ</td> </tr> <tr> <td>8226</td> <td>0x2022</td> <td>• (bullet)</td> <td>215</td> <td>0x00D7</td> <td>× (multiplication)</td> </tr> <tr> <td>8211</td> <td>0x2013</td> <td>– (en dash)</td> <td>247</td> <td>0x00F7</td> <td>÷ (division)</td> </tr> <tr> <td>8212</td> <td>0x2014</td> <td>– (em dash)</td> <td>9617</td> <td>0x2591</td> <td>░</td> </tr> <tr> <td>8505</td> <td>0x2139</td> <td>ℹ</td> <td>9618</td> <td>0x2592</td> <td>▒</td> </tr> <tr> <td>732</td> <td>0x02DC</td> <td>˜ (small tilde)</td> <td>9619</td> <td>0x2593</td> <td>▓</td> </tr> <tr> <td>8482</td> <td>0x2122</td> <td>™</td> <td>9474</td> <td>0x2502</td> <td>│</td> </tr> <tr> <td>339</td> <td>0x0153</td> <td>œ</td> <td>9515</td> <td>0x252B</td> <td>┫</td> </tr> <tr> <td>255</td> <td>0x00FF</td> <td>ÿ</td> <td>9472</td> <td>0x2500</td> <td>─</td> </tr> <tr> <td>382</td> <td>0x017E</td> <td>ž</td> <td>9484</td> <td>0x250C</td> <td>┌</td> </tr> <tr> <td>162</td> <td>0x00A2</td> <td>¢</td> <td>9488</td> <td>0x2510</td> <td>┐</td> </tr> <tr> <td>163</td> <td>0x00A3</td> <td>£</td> <td>9496</td> <td>0x2518</td> <td>┘</td> </tr> <tr> <td>8364</td> <td>0x20AC</td> <td>€ (Euro)</td> <td>9492</td> <td>0x2514</td> <td>└</td> </tr> <tr> <td>8369</td> <td>0x20B1</td> <td>₱ (Peso)</td> <td>960</td> <td>0x03C0</td> <td>π</td> </tr> <tr> <td>164</td> <td>0x00A4</td> <td>¤ (currency sign)</td> <td>8730</td> <td>0x221A</td> <td>√</td> </tr> <tr> <td>165</td> <td>0x00A5</td> <td>¥ (Yen)</td> <td>8721</td> <td>0x2211</td> <td>∑ (N-Sum)</td> </tr> <tr> <td>166</td> <td>0x00A6</td> <td>¦</td> <td>8734</td> <td>0x221E</td> <td>∞</td> </tr> <tr> <td>167</td> <td>ox00A7</td> <td>§ (<a href="https://en.wikipedia.org/wiki/Section_sign">Section Sign</a>)</td> <td>8801</td> <td>0x2261</td> <td>≡ (identical)</td> </tr> </table> <p>All of these Extended ASCII characters may be used in file and folder names under NTFS or APFS.</p> </blockquote> <p>Windows <span class="code">CR+LF</span> Line Ending is <b>Chr(13)</b> followed by <b>Chr(10)</b>, in PowerShell <span class="code">`r`n</span>.<br> Linux and MacOS <span class="code">LF</span> Line Ending is <b>Chr(10)</b>—very early versions of Mac OSX did use <span class="code">CR/</span>Chr(13)</p> <h2>Entering Character codes</h2> <blockquote> <p>In Windows, hold down the ALT key, and type the code:<br> e.g. press <span class="code"><b>ALT</b></span> + on the numeric keypad <b>9+3</b>, then release <span class="code">ALT</span> to produce a '<span class="code">]</span>' which is ASCII code 93.<br> This does not work for extended ASCII codes above 255, the value will be mod 256 or <a href="https://devblogs.microsoft.com/oldnewthing/20240702-00/?p=109951">mod 65,536 in a RichEdit</a> control. </p> <p> In xterm you can send key combinations using the hex value, so to send Esc: <span class="code">\x1B</span></p> <p> The control codes from 1 to 31 are not normally visible, so on Windows when entered using an <span class="code"><b>ALT</b></span>+<i>No.</i>, they will be auto-replaced with the <b>Alt</b> characters shown in the first table above. <br> e.g.&nbsp; press <span class="code"><b>ALT</b></span> + on the numeric keypad <b>1</b>, then release <span class="code">ALT</span> to get ASCII code 1, which will display as <span class="code">☺</span> (Unicode U+263A).</p> <p> Control codes can be also entered using an Esc or Ctrl key combination, e.g. <span class="code">Ctrl+H</span> will backspace over the last character typed. These keys work under most Operating Systems, but under Windows <span class="code">Ctrl+M</span> will enter or exit 'Mark Mode' rather than produce the expected CR/Carriage Return. You may notice that these Ctrl Key shortcuts match the 3rd column of ASCII codes in the table.</p> <p>The Control key clears the top 3 binary bits of whatever character you type, mapping the bottom five bits to the 0..31 range.<br> So, for example, Ctrl-SPACE, Ctrl-@, and Ctrl-` all mean the same thing: NUL.</p> </blockquote> <p class="quote">“Why shouldn’t we give our teachers a license to obtain software, all software, any software, for nothing? Does anyone demand a licensing fee, each time a child is taught the alphabet?” ~ William Gibson</p> <h3>Related:</h3> <p class="space"><a href="tools/convert.html">Convert between Binary, Decimal, Hex and Base 36.</a><br> <a href="nt/syntax-ansi.html">ANSI Colours</a><br> <a href="unicode.html">Greek alphabet / Currency / Accented letters. </a><br> <a href="nt/syntax-genchr.html">GenChr.cmd</a> - Generate an ASCII/Unicode character.<br> <a href="https://learn.microsoft.com/windows/win32/inputdev/virtual-key-codes">Virtual-Key Codes</a> - Microsoft.com<br> <span class="code">man ascii</span> - Produce an ascii table on most Unix systems.</p> <!-- #BeginLibraryItem "/Library/foot_menu.lbi" --> <hr> <div id=bl>&nbsp;</div> <div id=br>Copyright &copy; 1999-2025 <a href="https://ss64.com/">SS64.com</a><br> Some rights reserved</div> <!-- #EndLibraryItem --> </body> </html>

Pages: 1 2 3 4 5 6 7 8 9 10