My Tool Studio
Developer

ASCII Table

This ASCII table lists all 128 ASCII characters with their decimal, hexadecimal, octal and 8-bit binary codes, the HTML entity, the Unicode code point, the UTF-8 bytes and a short name, from NUL and LF to the tilde. Switch the range to Extended 128 to 255 to see Windows-1252 or ISO-8859-1 characters such as é, € and curly quotes. Search by code, character or name, or filter to control codes, digits, letters or symbols. Download the table as CSV or as a printable PNG chart, and use the converter below it to turn text into ASCII codes or codes back into text. Programmers use it for escape sequences and hex dumps, and web authors for HTML entities.

Always freeNo sign upRuns in your browser
128 / 128
DecHexOctBinaryCharHTML entityUnicodeUTF-8 bytesDescription
00x0000000000000·n/aU+000000NUL, Null
10x0100100000001·n/aU+000101SOH, Start of heading
20x0200200000010·n/aU+000202STX, Start of text
30x0300300000011·n/aU+000303ETX, End of text
40x0400400000100·n/aU+000404EOT, End of transmission
50x0500500000101·n/aU+000505ENQ, Enquiry
60x0600600000110·n/aU+000606ACK, Acknowledge
70x0700700000111·n/aU+000707BEL, Bell
80x0801000001000·n/aU+000808BS, Backspace
90x0901100001001·	U+000909HT, Horizontal tab
100x0A01200001010·
U+000A0ALF, Line feed (newline)
110x0B01300001011·n/aU+000B0BVT, Vertical tab
120x0C01400001100·n/aU+000C0CFF, Form feed
130x0D01500001101·
U+000D0DCR, Carriage return
140x0E01600001110·n/aU+000E0ESO, Shift out
150x0F01700001111·n/aU+000F0FSI, Shift in
160x1002000010000·n/aU+001010DLE, Data link escape
170x1102100010001·n/aU+001111DC1, Device control 1 (XON)
180x1202200010010·n/aU+001212DC2, Device control 2
190x1302300010011·n/aU+001313DC3, Device control 3 (XOFF)
200x1402400010100·n/aU+001414DC4, Device control 4
210x1502500010101·n/aU+001515NAK, Negative acknowledge
220x1602600010110·n/aU+001616SYN, Synchronous idle
230x1702700010111·n/aU+001717ETB, End of transmission block
240x1803000011000·n/aU+001818CAN, Cancel
250x1903100011001·n/aU+001919EM, End of medium
260x1A03200011010·n/aU+001A1ASUB, Substitute
270x1B03300011011·n/aU+001B1BESC, Escape
280x1C03400011100·n/aU+001C1CFS, File separator
290x1D03500011101·n/aU+001D1DGS, Group separator
300x1E03600011110·n/aU+001E1ERS, Record separator
310x1F03700011111·n/aU+001F1FUS, Unit separator
320x2004000100000(space) U+002020Space
330x2104100100001!!U+002121Exclamation mark
340x2204200100010"" "U+002222Double quote
350x2304300100011##U+002323Number sign (hash)
360x2404400100100$$U+002424Dollar sign
370x2504500100101%%U+002525Percent sign
380x2604600100110&& &U+002626Ampersand
390x2704700100111'' 'U+002727Apostrophe (single quote)
400x2805000101000((U+002828Left parenthesis
410x2905100101001))U+002929Right parenthesis
420x2A05200101010**U+002A2AAsterisk
430x2B05300101011++U+002B2BPlus sign
440x2C05400101100,,U+002C2CComma
450x2D05500101101--U+002D2DHyphen-minus
460x2E05600101110..U+002E2EFull stop (period)
470x2F05700101111//U+002F2FSlash
480x300600011000000U+003030Digit 0
490x310610011000111U+003131Digit 1
500x320620011001022U+003232Digit 2
510x330630011001133U+003333Digit 3
520x340640011010044U+003434Digit 4
530x350650011010155U+003535Digit 5
540x360660011011066U+003636Digit 6
550x370670011011177U+003737Digit 7
560x380700011100088U+003838Digit 8
570x390710011100199U+003939Digit 9
580x3A07200111010::U+003A3AColon
590x3B07300111011;&#59;U+003B3BSemicolon
600x3C07400111100<&#60; &lt;U+003C3CLess-than sign
610x3D07500111101=&#61;U+003D3DEquals sign
620x3E07600111110>&#62; &gt;U+003E3EGreater-than sign
630x3F07700111111?&#63;U+003F3FQuestion mark
640x4010001000000@&#64;U+004040At sign
650x4110101000001A&#65;U+004141Uppercase A
660x4210201000010B&#66;U+004242Uppercase B
670x4310301000011C&#67;U+004343Uppercase C
680x4410401000100D&#68;U+004444Uppercase D
690x4510501000101E&#69;U+004545Uppercase E
700x4610601000110F&#70;U+004646Uppercase F
710x4710701000111G&#71;U+004747Uppercase G
720x4811001001000H&#72;U+004848Uppercase H
730x4911101001001I&#73;U+004949Uppercase I
740x4A11201001010J&#74;U+004A4AUppercase J
750x4B11301001011K&#75;U+004B4BUppercase K
760x4C11401001100L&#76;U+004C4CUppercase L
770x4D11501001101M&#77;U+004D4DUppercase M
780x4E11601001110N&#78;U+004E4EUppercase N
790x4F11701001111O&#79;U+004F4FUppercase O
800x5012001010000P&#80;U+005050Uppercase P
810x5112101010001Q&#81;U+005151Uppercase Q
820x5212201010010R&#82;U+005252Uppercase R
830x5312301010011S&#83;U+005353Uppercase S
840x5412401010100T&#84;U+005454Uppercase T
850x5512501010101U&#85;U+005555Uppercase U
860x5612601010110V&#86;U+005656Uppercase V
870x5712701010111W&#87;U+005757Uppercase W
880x5813001011000X&#88;U+005858Uppercase X
890x5913101011001Y&#89;U+005959Uppercase Y
900x5A13201011010Z&#90;U+005A5AUppercase Z
910x5B13301011011[&#91;U+005B5BLeft square bracket
920x5C13401011100\&#92;U+005C5CBackslash
930x5D13501011101]&#93;U+005D5DRight square bracket
940x5E13601011110^&#94;U+005E5ECaret
950x5F13701011111_&#95;U+005F5FUnderscore
960x6014001100000`&#96;U+006060Grave accent (backtick)
970x6114101100001a&#97;U+006161Lowercase a
980x6214201100010b&#98;U+006262Lowercase b
990x6314301100011c&#99;U+006363Lowercase c
1000x6414401100100d&#100;U+006464Lowercase d
1010x6514501100101e&#101;U+006565Lowercase e
1020x6614601100110f&#102;U+006666Lowercase f
1030x6714701100111g&#103;U+006767Lowercase g
1040x6815001101000h&#104;U+006868Lowercase h
1050x6915101101001i&#105;U+006969Lowercase i
1060x6A15201101010j&#106;U+006A6ALowercase j
1070x6B15301101011k&#107;U+006B6BLowercase k
1080x6C15401101100l&#108;U+006C6CLowercase l
1090x6D15501101101m&#109;U+006D6DLowercase m
1100x6E15601101110n&#110;U+006E6ELowercase n
1110x6F15701101111o&#111;U+006F6FLowercase o
1120x7016001110000p&#112;U+007070Lowercase p
1130x7116101110001q&#113;U+007171Lowercase q
1140x7216201110010r&#114;U+007272Lowercase r
1150x7316301110011s&#115;U+007373Lowercase s
1160x7416401110100t&#116;U+007474Lowercase t
1170x7516501110101u&#117;U+007575Lowercase u
1180x7616601110110v&#118;U+007676Lowercase v
1190x7716701110111w&#119;U+007777Lowercase w
1200x7817001111000x&#120;U+007878Lowercase x
1210x7917101111001y&#121;U+007979Lowercase y
1220x7A17201111010z&#122;U+007A7ALowercase z
1230x7B17301111011{&#123;U+007B7BLeft curly brace
1240x7C17401111100|&#124;U+007C7CVertical bar (pipe)
1250x7D17501111101}&#125;U+007D7DRight curly brace
1260x7E17601111110~&#126;U+007E7ETilde
1270x7F17701111111·n/aU+007F7FDEL, Delete

Text to ASCII codes and back

72 101 108 108 111
Text
Hello

How to use

01

Pick a range, filter or search

Choose Standard ASCII 0-127, Extended 128-255 or All 0-255, and a character set for the extended codes. Then press a filter such as Digits 0-9, or search for 65, 0x41, A or euro.

02

Read and copy the codes

Each row gives the decimal, hex, octal and binary values, the character, its HTML entity, Unicode code point, UTF-8 bytes and name. Press Copy next to the decimal or hex value.

03

Convert or download

Type text in the converter to get its codes in decimal, hex, binary or octal, or paste codes to get text. Press CSV or Printable PNG chart to save the table you are viewing.

Why ASCII Table

ASCII ranges at a glance

The 128 ASCII codes fall into a few blocks, and the layout is deliberate. Digits start at 48, so the low four bits of each digit equal its value. Uppercase and lowercase letters are exactly 32 apart. Punctuation fills the gaps between the blocks.

Knowing the blocks helps when reading a hex dump: bytes from 0x20 to 0x7E are printable text, and anything below 0x20 is a control code.

DecimalHexContents
0 to 310x00 to 0x1FControl characters, including tab (9), LF (10), CR (13) and ESC (27)
320x20Space
33 to 470x21 to 0x2F! " # $ % & ' ( ) * + , - . /
48 to 570x30 to 0x39Digits 0 to 9
58 to 640x3A to 0x40: ; < = > ? @
65 to 900x41 to 0x5AUppercase A to Z
91 to 960x5B to 0x60[ \ ] ^ _ `
97 to 1220x61 to 0x7ALowercase a to z
123 to 1260x7B to 0x7E{ | } ~
1270x7FDEL, a control character

Extended codes: Windows-1252 vs ISO-8859-1

Codes 128 to 255 were used by many 8-bit character sets. The two most common on the web look alike from 160 up, and differ in the block from 128 to 159.

Text marked as ISO-8859-1 is usually decoded as Windows-1252 by browsers, which is why curly quotes and the euro sign still show up. In UTF-8 these characters take two or three bytes, which the UTF-8 column shows. When é appears as é, UTF-8 bytes were read as one of these 8-bit sets.

CodeWindows-1252ISO-8859-1
128 (0x80)€ euro signControl code PAD
145 to 148‘ ’ “ ” curly quotesControl codes
150, 151En dash and em dashControl codes
153 (0x99)™ trade markControl code SGCI
160 to 255Same as Unicode U+00A0 to U+00FFSame as Unicode U+00A0 to U+00FF

Common questions

Why is A 65 but a 97 in the ASCII table?
Uppercase A to Z sit at 65 to 90 and lowercase a to z at 97 to 122, exactly 32 apart. In binary that gap is a single bit (0x20), so switching case means flipping one bit, which made case conversion cheap on early hardware.
What is the ASCII code for a space, a tab and a newline?
Space is 32 (0x20), tab is 9 (0x09), line feed is 10 (0x0A) and carriage return is 13 (0x0D). Unix and macOS end lines with LF, while Windows uses CR followed by LF.
Which ASCII codes are control characters?
Codes 0 to 31 and 127 are control characters. They were designed to control teleprinters and do not print anything. A few are still common: tab, line feed, carriage return, escape (27) for terminal colors, and NUL (0) as the string terminator in C.
What are the ASCII codes for the digits 0 to 9?
The digits run from 48 to 57, or 0x30 to 0x39. Subtracting 48 from a digit's code gives its numeric value, which is how many parsers convert text to numbers.
Does this ASCII table cover extended codes 128 to 255?
Yes, as an option. ASCII itself stops at 127, so codes 128 to 255 depend on the character set. Pick Extended 128-255 and choose Windows-1252, where 128 is the euro sign, or ISO-8859-1, where 128 to 159 are control codes. From 160 to 255 both sets match Unicode.
How do I write an ASCII character as an HTML entity?
Use &# followed by the decimal code and a semicolon, such as &#65; for A, or &#x followed by the hex code, such as &#x41;. The characters &, <, >, " and ' also have named entities: &amp;, &lt;, &gt;, &quot; and &apos;.
What is the difference between ASCII and Unicode?
Unicode includes ASCII as its first 128 code points, U+0000 to U+007F, and adds characters for almost every writing system. In UTF-8, those first 128 characters are stored as single bytes identical to ASCII, so plain ASCII text is also valid UTF-8.
Can I download a printable ASCII chart?
Press Printable PNG chart to download a 16-column chart of the codes you are viewing, with each character, its decimal and its hex value, ready to print. Press CSV to open the full table in a spreadsheet. Your browser's print dialog can also save the page as a PDF.
What's the difference between CR and LF in the ASCII table?
CR (13) moved a printer's carriage back to the start of the line, and LF (10) advanced the paper one line. Text files still use them as line endings: LF alone on Unix and macOS, CR and LF together on Windows.
How do I convert text to ASCII codes?
Type or paste text into the Text box under the table. The codes appear below it, separated by spaces, in decimal, hex, binary or octal. The Codes box works the other way: paste numbers such as 72 101 108 108 111, or 0x48 hex and 8-bit binary, and read the text.

More Developer tools

View all