Reference

ASCII Table

A searchable ASCII chart of all 128 characters with decimal, hexadecimal, octal and binary values and the names of the control codes.

Ready.
DecHexOctBinaryCharName
00000000000000NULNull
10100100000001SOHStart of Heading
20200200000010STXStart of Text
30300300000011ETXEnd of Text
40400400000100EOTEnd of Transmission
50500500000101ENQEnquiry
60600600000110ACKAcknowledge
70700700000111BELBell (alert)
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
322004000100000SPSpace
332104100100001!
342204200100010"
352304300100011#
362404400100100$
372504500100101%
382604600100110&
392704700100111'
402805000101000(
412905100101001)
422A05200101010*
432B05300101011+
442C05400101100,
452D05500101101-
462E05600101110.
472F05700101111/
4830060001100000
4931061001100011
5032062001100102
5133063001100113
5234064001101004
5335065001101015
5436066001101106
5537067001101117
5638070001110008
5739071001110019
583A07200111010:
593B07300111011;
603C07400111100<
613D07500111101=
623E07600111110>
633F07700111111?
644010001000000@
654110101000001A
664210201000010B
674310301000011C
684410401000100D
694510501000101E
704610601000110F
714710701000111G
724811001001000H
734911101001001I
744A11201001010J
754B11301001011K
764C11401001100L
774D11501001101M
784E11601001110N
794F11701001111O
805012001010000P
815112101010001Q
825212201010010R
835312301010011S
845412401010100T
855512501010101U
865612601010110V
875712701010111W
885813001011000X
895913101011001Y
905A13201011010Z
915B13301011011[
925C13401011100\
935D13501011101]
945E13601011110^
955F13701011111_
966014001100000`
976114101100001a
986214201100010b
996314301100011c
1006414401100100d
1016514501100101e
1026614601100110f
1036714701100111g
1046815001101000h
1056915101101001i
1066A15201101010j
1076B15301101011k
1086C15401101100l
1096D15501101101m
1106E15601101110n
1116F15701101111o
1127016001110000p
1137116101110001q
1147216201110010r
1157316301110011s
1167416401110100t
1177516501110101u
1187616601110110v
1197716701110111w
1207817001111000x
1217917101111001y
1227A17201111010z
1237B17301111011{
1247C17401111100|
1257D17501111101}
1267E17601111110~
1277F17701111111DELDelete

What it does

ASCII (American Standard Code for Information Interchange) assigns numbers 0 to 127 to letters, digits, punctuation and control codes. It is the foundation of nearly every text encoding: UTF-8 keeps these 128 values identical.

How the table is organised

  • 0-31 and 127 are control characters such as line feed (10), carriage return (13), tab (9) and escape (27). They do not print.
  • 32 is the space character.
  • 48-57 are the digits 0-9, 65-90 capital letters and 97-122 lowercase letters. Lowercase is capital plus 32, which is why toggling bit 5 changes case.

Searching the table

Type a character (A), a decimal code (65), a hex value (0x41) or a name (escape, newline). One typed character shows exactly that character, and one digit also shows the code with that decimal value. Longer entries match anywhere in a row, so 65 also lists rows whose hex or octal digits contain 65.

Using the codes

The control codes you meet most are 9 (tab), 10 (line feed) and 13 (carriage return), written \t, \n and \r in source code; the String Escape & Unescape tool converts between those escapes and the real characters. For printable ASCII, a percent-encoded byte in a URL is the hex code (a space is 32, so %20), which the URL Encoder & Decoder applies, and a numeric HTML entity uses the decimal code (&#32;), which the HTML Entity Encoder & Decoder handles.

Beyond 127

ASCII stops at 127. Values 128 to 255 are not ASCII: in Latin-1 and Windows-1252 they are single accented letters and symbols, while in UTF-8 any character above 127 takes two to four bytes. To see the bytes of arbitrary text use Text to Binary, Hex & Octal, and to convert a single code between bases use the Number Base Converter.

Examples

Search by character, decimal number, hexadecimal number (with or without 0x) or name. Every column is searched, so a number can match more than one row:

  • A or 0x41 finds decimal 65, hex 41, octal 101, binary 01000001.
  • LF finds decimal 10, hex 0A, octal 012, binary 00001010, “Line Feed (newline)”.
  • escape finds two rows: 16 (DLE, Data Link Escape) and 27 (ESC, Escape).
  • space finds 8 (BS, Backspace, whose name contains the word) and 32 (SP, Space).
  • 65 finds four rows, not just the letter A: the digit 5 (decimal 53, hex 35, octal 065), A (decimal 65), and the lowercase e and u, whose octal codes 145 and 165 contain 65. Use the 0x prefix or a character when you want one exact row.

Useful patterns

  • Codes 0 to 31 and 127 are control characters, for example 9 is tab, 10 is line feed (\n), 13 is carriage return (\r) and 27 is escape, which starts terminal colour sequences. Codes 32 to 126 are the printable characters.
  • The digits 0 to 9 are codes 48 to 57, so a digit character minus 48 gives its value.
  • An uppercase letter and its lowercase letter differ by exactly 32 (A is 65, a is 97), which is one bit, 0x20.

Frequently asked questions

How many characters does ASCII define?

128, with the codes 0 to 127. It needs 7 bits, and in practice each character is stored in one byte.

What about characters above 127?

They are not part of ASCII. Older “extended ASCII” code pages such as Windows-1252 and ISO 8859-1 disagree with each other. Today Unicode and its UTF-8 encoding are standard, and UTF-8 stores the first 128 characters exactly as ASCII does.

How do I convert text to these codes?

Use the Text to Binary Converter, or the Number Base Converter for a single number.

Privacy

This tool runs entirely in your browser. What you enter is processed on your device and is not sent to a server.

Share this tool

Your data is not included in this link.