ASCII Table

ASCII codes in decimal, hex, octal and binary, with control characters.

Your input

Characters shown 128

Characters

DecHexOctBinaryCharDescription
00000000000000NULNull
10100100000001SOHStart of heading
20200200000010STXStart of text
30300300000011ETXEnd of text
40400400000100EOTEnd of transmission
50500500000101ENQEnquiry
60600600000110ACKAcknowledge
70700700000111BELBell (beep)
80801000001000BSBackspace
90901100001001HTHorizontal tab
100A01200001010LFLine feed (new line)
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
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 is ASCII?

ASCII is an old and very common way of giving each basic character a number. It defines 128 codes, from 0 to 127. Codes 32 to 126 are the 95 printable characters: space, digits, letters and punctuation. Codes 0 to 31 and 127 are control characters that were made for teletype machines.

The letter A is 65 (41 in hex, 01000001 in binary) and lowercase a is 97. Some control codes are still in daily use: 9 is the tab, 10 is the line feed (new line) and 13 is the carriage return. Modern text uses UTF-8, which keeps the same codes for the first 128 characters. This page also shows the Latin-1 extension (128 to 255).

How to use the ASCII Table

  1. Choose which range to show.
  2. Type a character, a code or a name in the search box.
  3. Read the decimal, hex, octal and binary columns.

Real situations

When people use the ASCII Table

  • 1

    Look up a character code

    Find the number for a character, or the character for a number, in decimal, hex, octal or binary.

  • 2

    Decode control characters in data

    See what codes like 0x09, 0x0A and 0x0D are when they show up in a file or log.

  • 3

    Write escape sequences

    Find the hex or octal code to use in a string or a regular expression.

  • 4

    Study for a computing course

    Use the binary column to learn how text is stored as numbers inside a computer, for classwork or practice.

FAQ

ASCII Table: questions answered

What is the ASCII code for A?

65 in decimal, 41 in hex, 101 in octal and 01000001 in binary. Lowercase a is 97. The two differ by 32, a single bit.

What is the difference between LF and CR?

LF (line feed, code 10) moves down a line and CR (carriage return, code 13) moves back to the start of the line. Unix and modern systems end lines with LF, Windows traditionally uses CR followed by LF.

How many characters are in ASCII?

128, numbered 0 to 127. Of those, 95 are printable (codes 32 to 126) and 33 are control characters, the 32 codes 0 to 31 plus 127, DEL.

Is ASCII the same as Unicode or UTF-8?

Unicode covers over a hundred thousand characters from all writing systems. UTF-8 is a way of storing it. The first 128 Unicode characters match ASCII exactly, and UTF-8 stores them in one byte each.

What are the codes 128 to 255?

They are not ASCII. The table shows the Latin-1 extension, which adds accented letters such as é. Codes 128 to 159 there are control characters. Other systems used different extensions for the same range.

How do I search the table?

Type a character, a code such as 65 or 0x41, or a name such as tab. Searching tab finds both the horizontal tab (9) and the vertical tab (11).

Is this ASCII Table free and private?

Yes. It is free with no sign-in, and every calculation runs inside your browser. Nothing you type is sent to a server or stored, and the page keeps working offline once it has loaded.

Private by design. No accounts, no cookies, no tracking. Everything you type stays on your device.

How we keep it that way