ASCII table — codes 0 to 127 in decimal, hex, octal and binary

Search the 128 ASCII characters by decimal code, hex code such as 0x41, the character itself or a word such as tab, and each match shows its decimal, hex, octal and 8-bit binary value, the HTML code and a short description.

Live demo · real result from this tool
Showing128 of 128 characters

Table

DecHexOctBinaryCharHTMLDescription
00000000000000NULNull
10100100000001SOHStart of heading
20200200000010STXStart of text
30300300000011ETXEnd of text
40400400000100EOTEnd of transmission
50500500000101ENQEnquiry
60600600000110ACKAcknowledge
70700700000111BELBell
80801000001000BSBackspace
90901100001001HTHorizontal tab
100A01200001010LFLine feed (newline)
110B01300001011VTVertical tab
120C01400001100FFForm feed
130D01500001101CRCarriage return
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
281C03400011100FSFile separator
291D03500011101GSGroup separator
301E03600011110RSRecord separator
311F03700011111USUnit separator
322004000100000(space) Space
332104100100001!!Exclamation mark
342204200100010""Quotation mark
352304300100011##Number sign (hash)
362404400100100$$Dollar sign
372504500100101%%Percent sign
382604600100110&&Ampersand
392704700100111''Apostrophe
402805000101000((Left parenthesis
412905100101001))Right parenthesis
422A05200101010**Asterisk
432B05300101011++Plus sign
442C05400101100,,Comma
452D05500101101--Hyphen-minus
462E05600101110..Full stop
472F05700101111//Slash
48300600011000000Digit 0
49310610011000111Digit 1
50320620011001022Digit 2
51330630011001133Digit 3
52340640011010044Digit 4
53350650011010155Digit 5
54360660011011066Digit 6
55370670011011177Digit 7
56380700011100088Digit 8
57390710011100199Digit 9
583A07200111010::Colon
593B07300111011;&#59;Semicolon
603C07400111100<&lt;Less-than sign
613D07500111101=&#61;Equals sign
623E07600111110>&gt;Greater-than sign
633F07700111111?&#63;Question mark
644010001000000@&#64;At sign
654110101000001A&#65;Capital letter A
664210201000010B&#66;Capital letter B
674310301000011C&#67;Capital letter C
684410401000100D&#68;Capital letter D
694510501000101E&#69;Capital letter E
704610601000110F&#70;Capital letter F
714710701000111G&#71;Capital letter G
724811001001000H&#72;Capital letter H
734911101001001I&#73;Capital letter I
744A11201001010J&#74;Capital letter J
754B11301001011K&#75;Capital letter K
764C11401001100L&#76;Capital letter L
774D11501001101M&#77;Capital letter M
784E11601001110N&#78;Capital letter N
794F11701001111O&#79;Capital letter O
805012001010000P&#80;Capital letter P
815112101010001Q&#81;Capital letter Q
825212201010010R&#82;Capital letter R
835312301010011S&#83;Capital letter S
845412401010100T&#84;Capital letter T
855512501010101U&#85;Capital letter U
865612601010110V&#86;Capital letter V
875712701010111W&#87;Capital letter W
885813001011000X&#88;Capital letter X
895913101011001Y&#89;Capital letter Y
905A13201011010Z&#90;Capital letter Z
915B13301011011[&#91;Left square bracket
925C13401011100\&#92;Backslash
935D13501011101]&#93;Right square bracket
945E13601011110^&#94;Caret
955F13701011111_&#95;Underscore
966014001100000`&#96;Grave accent (backtick)
976114101100001a&#97;Small letter a
986214201100010b&#98;Small letter b
996314301100011c&#99;Small letter c
1006414401100100d&#100;Small letter d
1016514501100101e&#101;Small letter e
1026614601100110f&#102;Small letter f
1036714701100111g&#103;Small letter g
1046815001101000h&#104;Small letter h
1056915101101001i&#105;Small letter i
1066A15201101010j&#106;Small letter j
1076B15301101011k&#107;Small letter k
1086C15401101100l&#108;Small letter l
1096D15501101101m&#109;Small letter m
1106E15601101110n&#110;Small letter n
1116F15701101111o&#111;Small letter o
1127016001110000p&#112;Small letter p
1137116101110001q&#113;Small letter q
1147216201110010r&#114;Small letter r
1157316301110011s&#115;Small letter s
1167416401110100t&#116;Small letter t
1177516501110101u&#117;Small letter u
1187616601110110v&#118;Small letter v
1197716701110111w&#119;Small letter w
1207817001111000x&#120;Small letter x
1217917101111001y&#121;Small letter y
1227A17201111010z&#122;Small letter z
1237B17301111011{&#123;Left curly bracket
1247C17401111100|&#124;Vertical bar
1257D17501111101}&#125;Right curly bracket
1267E17601111110~&#126;Tilde
1277F17701111111DELDelete

128 rows — scroll inside the table, or download the CSV.

Processed on your device — nothing is uploaded.

How to use the ASCII table

  1. Leave Filter empty to see all 128 rows.
  2. Type a decimal code (65) or a hex code with 0x (0x41) to jump to that one character.
  3. Type a single character (~) to find it exactly.
  4. Type a word (tab, bracket, control) to search the descriptions. Every word must match.
  5. Download the rows as ascii.csv if you need them in a spreadsheet.

What it does and when to use it

ASCII is the base layer of almost every text format: source code, HTTP headers, CSV, JSON keys and terminal output. You need its numbers when you read a hex dump, write a parser that splits on a delimiter, escape a control character in a string, or work out why a file has an invisible character at the end of each line. This table gives every representation of a character side by side.

To convert whole strings into codes, use Text to ASCII Codes. To view the bytes of a real file, use the Hex Dump Viewer.

How it works

The table holds the 128 codes of US-ASCII (ANSI X3.4, also published as RFC 20). For each code it computes the hex (two digits), octal (three digits) and 8-bit binary forms. Codes 0–31 and 127 are control characters; they are shown by their standard abbreviations, such as NUL, HT, LF, CR, ESC and DEL, and get no HTML code because they cannot be shown as text. Printable characters get a numeric reference such as &#126;, or a named one where the HTML table uses one, such as &quot;. Searching happens in your browser.

Worked examples

A newline in a hex dump. Filter 0x0A:

10 | 0A | 012 | 00001010 | LF |  | Line feed (newline)

A character by itself. Filter ~ returns 126 | 7E | 176 | 01111110 | ~ | &#126; | Tilde.

By name. Filter quot returns the double quote: 34 | 22 | 042 | 00100010 | " | &quot; | Quotation mark.

Not ASCII. Filter é returns “Nothing matches that filter.”

Limits and tips

  • A number is always read as a decimal code, so 10 finds LF, not the text “10”. Use 0x for hex.
  • A one-character filter matches the character column only. A space alone is ignored as a filter; search for space instead.
  • For all named HTML entities beyond ASCII, see the HTML Entities Ref. For any Unicode code point, use the Unicode Character Lookup.

Frequently asked questions

Why does é or € not appear?
ASCII has only 128 characters, codes 0 to 127, and they cover unaccented English letters, digits, punctuation and control codes. Accented letters, other scripts and symbols such as € live in Unicode, usually stored as UTF-8. Use the Unicode Character Lookup for those.
What is the difference between LF and CR LF?
Unix, Linux and macOS end lines with LF (10, 0x0A). Windows text files and HTTP headers use CR LF (13 then 10). A stray CR often shows up as ^M or breaks a shell script with "bad interpreter".
How are upper and lower case related?
A is 65 (0x41) and a is 97 (0x61). Each lower-case letter is its capital plus 32, a single bit (0x20), which is why simple case conversion can flip one bit.
What is the "extended ASCII" range 128 to 255?
It is not ASCII. Different code pages, such as Latin-1 and Windows-1252, use 128–255 for different characters, so this table stops at 127.

Written by the ToolsRift team · Last updated

Pages are drafted with AI assistance and checked by automated tests. How we write and check pages.

Was this tool useful?

Report a problem

Start typing to search every tool.

↑ ↓ to moveEnter to openEsc to close