Skip to content
ToolMug

ASCII Table

All 128 standard ASCII characters with their decimal, hexadecimal, octal and binary codes and HTML entity. Codes 0–31 and 127 are control characters, listed with their names and the escape sequences used in code, such as \n for line feed and \t for tab. Type a character, number or name above to find it quickly.

Runs in your browser — nothing you enter is uploaded

Shown: 128

DecHexOctBinaryCharDescriptionHTML
00000000000000NULNull\0�
10100100000001SOHStart of heading
20200200000010STXStart of text
30300300000011ETXEnd of text
40400400000100EOTEnd of transmission
50500500000101ENQEnquiry
60600600000110ACKAcknowledge
70700700000111BELBell\a
80801000001000BSBackspace\b
90901100001001HTHorizontal tab\t	
100A01200001010LFLine feed\n

110B01300001011VTVertical tab\v
120C01400001100FFForm feed\f
130D01500001101CRCarriage return\r
140E01600001110SOShift out
150F01700001111SIShift in
161002000010000DLEData link escape
171102100010001DC1Device control 1 (XON)
181202200010010DC2Device control 2
191302300010011DC3Device control 3 (XOFF)
201402400010100DC4Device control 4
211502500010101NAKNegative acknowledge
221602600010110SYNSynchronous idle
231702700010111ETBEnd of transmission block
241803000011000CANCancel
251903100011001EMEnd of medium
261A03200011010SUBSubstitute
271B03300011011ESCEscape\e
281C03400011100FSFile separator
291D03500011101GSGroup separator
301E03600011110RSRecord separator
311F03700011111USUnit separator
322004000100000SPSpace 
332104100100001!!
342204200100010""
352304300100011##
362404400100100$$
372504500100101%%
382604600100110&&
392704700100111''
402805000101000((
412905100101001))
422A05200101010**
432B05300101011++
442C05400101100,,
452D05500101101--
462E05600101110..
472F05700101111//
48300600011000000
49310610011000111
50320620011001022
51330630011001133
52340640011010044
53350650011010155
54360660011011066
55370670011011177
56380700011100088
57390710011100199
583A07200111010::
593B07300111011;&#59;
603C07400111100<&#60;
613D07500111101=&#61;
623E07600111110>&#62;
633F07700111111?&#63;
644010001000000@&#64;
654110101000001A&#65;
664210201000010B&#66;
674310301000011C&#67;
684410401000100D&#68;
694510501000101E&#69;
704610601000110F&#70;
714710701000111G&#71;
724811001001000H&#72;
734911101001001I&#73;
744A11201001010J&#74;
754B11301001011K&#75;
764C11401001100L&#76;
774D11501001101M&#77;
784E11601001110N&#78;
794F11701001111O&#79;
805012001010000P&#80;
815112101010001Q&#81;
825212201010010R&#82;
835312301010011S&#83;
845412401010100T&#84;
855512501010101U&#85;
865612601010110V&#86;
875712701010111W&#87;
885813001011000X&#88;
895913101011001Y&#89;
905A13201011010Z&#90;
915B13301011011[&#91;
925C13401011100\&#92;
935D13501011101]&#93;
945E13601011110^&#94;
955F13701011111_&#95;
966014001100000`&#96;
976114101100001a&#97;
986214201100010b&#98;
996314301100011c&#99;
1006414401100100d&#100;
1016514501100101e&#101;
1026614601100110f&#102;
1036714701100111g&#103;
1046815001101000h&#104;
1056915101101001i&#105;
1066A15201101010j&#106;
1076B15301101011k&#107;
1086C15401101100l&#108;
1096D15501101101m&#109;
1106E15601101110n&#110;
1116F15701101111o&#111;
1127016001110000p&#112;
1137116101110001q&#113;
1147216201110010r&#114;
1157316301110011s&#115;
1167416401110100t&#116;
1177516501110101u&#117;
1187616601110110v&#118;
1197716701110111w&#119;
1207817001111000x&#120;
1217917101111001y&#121;
1227A17201111010z&#122;
1237B17301111011{&#123;
1247C17401111100|&#124;
1257D17501111101}&#125;
1267E17601111110~&#126;
1277F17701111111DELDelete&#127;

How to use

  1. Type a character (A), decimal code (65), hex code (0x41) or name (line feed) in Find.
  2. Tick Printable characters only to hide control characters.
  3. Read the codes you need from the table.

Options explained

Printable characters
Codes 32–126, covering space, digits, letters and common punctuation.
Control characters
Codes 0–31 and 127. The ones you meet most are 9 tab (\t), 10 line feed (\n), 13 carriage return (\r) and 27 escape.
Unicode
The first 128 Unicode code points are identical to ASCII, so these characters take one byte in UTF-8.

Ranges worth remembering

Codes (decimal) Hex What they are
0–31 and 127 00–1F, 7F Control characters
32 20 Space
48–57 30–39 Digits 0–9
65–90 41–5A Uppercase A–Z
97–122 61–7A Lowercase a–z

Two conversions come up often. A digit character minus 48 gives its value, so '7' (55) is 7. A letter’s position in the alphabet is its code minus 64 for uppercase or minus 96 for lowercase, so 'C' (67) is the 3rd letter. For example, A is 65, 0x41 or 01000001 in binary.

Frequently asked questions

How far apart are upper and lower case letters?

32. A is 65 and a is 97; setting bit 5 (0x20) turns an uppercase letter into lowercase.

What is the ASCII code for the digit 0?

48 (hex 30). Digits 0–9 are 48–57, so subtracting 48 gives the numeric value.

How do Windows and Unix line endings differ?

Windows uses carriage return plus line feed (13 10, \r\n); Linux and macOS use line feed alone (10, \n).

Privacy

This tool runs entirely in your browser. Your files and text are processed on your device and are never uploaded to our servers.

Related tools