Productivity and Utilities

ASCII Table

Look up any ASCII code from 0 to 127 in decimal, hex, octal and binary, with the name of each character.

Type a decimal code (65), a hex code (0x41), one character (A) or part of a name (space, bracket).

Showing all 128 characters.

ASCII characters 0 to 127 with decimal, hexadecimal, octal and binary values
DecHexOctBinaryCharDescription
00000000000000NULNull
10100100000001SOHStart of heading
20200200000010STXStart of text
30300300000011ETXEnd of text
40400400000100EOTEnd of transmission
50500500000101ENQEnquiry
60600600000110ACKAcknowledge
70700700000111BELBell
80801000001000BSBackspace
90901100001001HTHorizontal tab
100A01200001010LFLine feed (new line)
110B01300001011VTVertical tab
120C01400001100FFForm feed
130D01500001101CRCarriage return
140E01600001110SOShift out
150F01700001111SIShift in
161002000010000DLEData link escape
171102100010001DC1Device control 1
181202200010010DC2Device control 2
191302300010011DC3Device control 3
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
322004000100000SPSpace
332104100100001!Exclamation mark
342204200100010"Double quote
352304300100011#Number sign
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.Period
472F05700101111/Slash
4830060001100000Digit 0
4931061001100011Digit 1
5032062001100102Digit 2
5133063001100113Digit 3
5234064001101004Digit 4
5335065001101015Digit 5
5436066001101106Digit 6
5537067001101117Digit 7
5638070001110008Digit 8
5739071001110019Digit 9
583A07200111010:Colon
593B07300111011;Semicolon
603C07400111100<Less-than sign
613D07500111101=Equals sign
623E07600111110>Greater-than sign
633F07700111111?Question mark
644010001000000@At sign
654110101000001ACapital letter A
664210201000010BCapital letter B
674310301000011CCapital letter C
684410401000100DCapital letter D
694510501000101ECapital letter E
704610601000110FCapital letter F
714710701000111GCapital letter G
724811001001000HCapital letter H
734911101001001ICapital letter I
744A11201001010JCapital letter J
754B11301001011KCapital letter K
764C11401001100LCapital letter L
774D11501001101MCapital letter M
784E11601001110NCapital letter N
794F11701001111OCapital letter O
805012001010000PCapital letter P
815112101010001QCapital letter Q
825212201010010RCapital letter R
835312301010011SCapital letter S
845412401010100TCapital letter T
855512501010101UCapital letter U
865612601010110VCapital letter V
875712701010111WCapital letter W
885813001011000XCapital letter X
895913101011001YCapital letter Y
905A13201011010ZCapital letter Z
915B13301011011[Left square bracket
925C13401011100\Backslash
935D13501011101]Right square bracket
945E13601011110^Caret
955F13701011111_Underscore
966014001100000`Grave accent (backtick)
976114101100001aSmall letter a
986214201100010bSmall letter b
996314301100011cSmall letter c
1006414401100100dSmall letter d
1016514501100101eSmall letter e
1026614601100110fSmall letter f
1036714701100111gSmall letter g
1046815001101000hSmall letter h
1056915101101001iSmall letter i
1066A15201101010jSmall letter j
1076B15301101011kSmall letter k
1086C15401101100lSmall letter l
1096D15501101101mSmall letter m
1106E15601101110nSmall letter n
1116F15701101111oSmall letter o
1127016001110000pSmall letter p
1137116101110001qSmall letter q
1147216201110010rSmall letter r
1157316301110011sSmall letter s
1167416401110100tSmall letter t
1177516501110101uSmall letter u
1187616601110110vSmall letter v
1197716701110111wSmall letter w
1207817001111000xSmall letter x
1217917101111001ySmall letter y
1227A17201111010zSmall letter z
1237B17301111011{Left curly brace
1247C17401111100|Vertical bar
1257D17501111101}Right curly brace
1267E17601111110~Tilde
1277F17701111111DELDelete

ASCII has 128 characters: 33 control codes (0 to 31 and 127), the space and 94 visible characters. Codes above 127 are not ASCII, and their meaning depends on the encoding in use.

Next step

How to use the ascii table

  1. Scroll the table to see all 128 ASCII characters, or type in Find a character to narrow it down.
  2. Search by decimal code (65), by hex code (0x41), by a single character (A) or by part of a name such as space, tab or bracket.
  3. Tick Printable characters only to hide the control codes and DEL.
  4. Press Copy the table as text to copy the rows that are showing, separated by tabs so they paste cleanly into a spreadsheet.

What ASCII is

ASCII is a 7 bit code that gives a number from 0 to 127 to each of 128 characters. The 1969 specification RFC 20 describes the same character set for network use. Almost every modern text encoding, including UTF-8, uses these same numbers for these same characters, so the table is useful far beyond old systems.

The 128 codes fall into groups. Codes 0 to 31 and 127 are control codes, which were made for teletype machines and still matter in text files and programs. Code 32 is the space. Codes 48 to 57 are the digits, 65 to 90 the capital letters, 97 to 122 the small letters, and the rest are punctuation and symbols.

Patterns worth knowing

A small letter is its capital plus 32, so A is 65 and a is 97. In binary that is one bit: the capitals start with 010 and the small letters with 011. A digit character is its value plus 48, so 0 is 48 and 9 is 57. This is why code can turn the character 7 into the number 7 by subtracting 48.

Line endings use control codes. LF (10) is a line feed and CR (13) is a carriage return. Unix style files end lines with LF, and Windows style files use CR followed by LF. HT (9) is the tab character. DEL (127) is the only control code outside the first 32.

Beyond 127

ASCII stops at 127. Codes from 128 to 255 are not part of ASCII, and what they mean depends on the encoding, such as Windows-1252, ISO 8859-1 or the multi-byte forms in UTF-8. To turn text into the byte values for any characters, including accents and emoji, use the binary translator, and to move numbers between decimal, hex and binary use the number base converter. For symbols you can copy straight into a document, see copy and paste symbols.

Assumptions and limits

  • The table lists the 128 characters of US-ASCII. Extended or national code pages are not shown.
  • Control characters are shown by their usual abbreviation, such as NUL, LF and ESC, because they have no visible form.
  • Names are plain English descriptions. Older documents may name some characters differently.
  • Hex values are shown in capital letters and octal in three digits.

Formulas reviewed October 10, 2026. See the calculation methodology for how SumPanda rounds, tests and sources its formulas.

Frequently asked questions

What is the ASCII code for A and a?

A is 65 (hex 41, binary 01000001) and a is 97 (hex 61, binary 01100001). The small letter is always the capital plus 32.

How many characters are in ASCII?

There are 128: 33 control codes (0 to 31 and 127), the space, and 94 visible characters made of letters, digits and punctuation.

What is the difference between ASCII and Unicode?

ASCII has 128 characters. Unicode has far more and covers most of the world's writing systems. UTF-8, the common way to store Unicode, keeps the first 128 codes identical to ASCII so old ASCII text is also valid UTF-8.

What are control characters used for?

They tell a device or program to do something rather than show a symbol, such as start a new line (LF), move to a tab stop (HT), ring a bell (BEL) or mark the end of a transmission (EOT).

Sources