Category: Standards, Sizes & Time ZonesReferenceSymbols, Codes and Alphabets · Part 2 of 2ASCIICharacter codesunicodeUTF-8

ASCII Table: Characters and Codes in Decimal and Hex, Printable Chart

Every ASCII character with its decimal and hex code in printable tables, plus a plain explanation of control codes, extended ASCII and how ASCII fits into Unicode and UTF-8.

By Published 6 min read

A wooden tray of small compartments with colourful tokens in rows and columns
AI-generated imageThe ASCII table gives each character a number from 0 to 127.

An ASCII table lists the 128 characters of the ASCII standard, numbered 0 to 127. Codes 0 to 31 and 127 are control characters, invisible commands such as line feed (10) and carriage return (13). Codes 32 to 126 are the 95 printable characters: the space at 32, the digits at 48 to 57, capital A to Z at 65 to 90 and small a to z at 97 to 122. In hex the set runs from 00 to 7F, so capital A is 41 and small a is 61. The tables further down give every code in decimal and hex, grouped so you can print just the part you need.

In short

  • ASCII is a 7-bit code with 128 characters, numbered 0 to 127 in decimal and 00 to 7F in hex.
  • Codes 0 to 31 and 127 are control characters, and codes 32 to 126 are the 95 printable characters, including the space.
  • Capital A is 65 (hex 41) and small a is 97 (hex 61), and every small letter sits 32 places after its capital.
  • Unicode numbers U+0000 to U+007F are the ASCII set, and UTF-8 stores each as the same single byte.
On this page 11 sections

What is ASCII#

ASCII is a code that gives each basic English letter, digit and punctuation mark a number, along with a few commands for machines. The standard defines 128 characters: commands for machines plus visible signs like letters, digits and symbols[1]. RFC 20, a network document that reprints the chart from the US standard USAS X3.4-1968, calls it the USA Standard Code for Information Interchange[2]. The same document says the name is pronounced "as-key"[2].

Think of it as a shared dictionary, much like a Morse code chart for letters and numbers. When you type a capital A, the computer stores the number 65, and any program that reads ASCII turns 65 back into A[2]. The IANA registry of character sets lists ASCII under the name US-ASCII, with aliases such as ANSI_X3.4-1968, ANSI_X3.4-1986 and ISO646-US[3]. The Ecma International edition of the standard, ECMA-6, carries the ISO/IEC number 646, the label of its international counterpart[1].

How to read ASCII codes in decimal, hex and binary#

ASCII is a 7-bit code. A bit is a single one or zero, like a switch that is either on or off. Each character is a pattern of seven bits, and when it sits in a byte, a group of eight bits, the extra top bit is always 0[2]. Seven bits give 2 to the power of 7 patterns, which is 128, the same number of characters the standard defines[1].

One code can be written three ways, the way a distance can be given in miles or in feet. Hexadecimal, or hex, counts in sixteens with the digits 0 to 9 and the letters A to F, so ASCII runs from 00 to 7F in hex[4].

The original chart is a grid of 8 columns and 16 rows. The top three bits give the column number and the bottom four bits give the row number[2]. RFC 20 uses the letter K as its example: column 4, row 11, bits 1001011[2]. In decimal that is 4 × 16 + 11 = 75. In hex the column becomes the first digit and the row the second, so K is 4B.

Capital A is 65 (hex 41) and small a is 97 (hex 61), and every small letter sits exactly 32 places after its capital[2][5]. The digits start at 48, so 0 is 48 (hex 30) and 9 is 57 (hex 39)[2][5].

ASCII table of printable characters (32 to 126)#

Codes 32 to 126 are the 95 printable characters: the space, punctuation, the digits and the English letters in both cases[2]. RFC 20 notes that the space at code 32 is normally non-printing[2], and Unicode remarks that it is sometimes considered a control code[5]. Each decimal and hex value below is worked out from the character's column and row in the RFC 20 chart, as shown for K above[2].

Space, punctuation and digits (32 to 63)

DecimalHexCharacter
3220(space)
3321!
3422"
3523#
3624$
3725%
3826&
3927'
4028(
4129)
422A*
432B+
442C,
452D-
462E.
472F/
48300
49311
50322
51333
52344
53355
54366
55377
56388
57399
583A:
593B;
603C<
613D=
623E>
633F?
Source: RFC 20[2], columns 2 and 3, as of 2026-11-14.

Uppercase letters and symbols (64 to 95)

DecimalHexCharacter
6440@
6541A
6642B
6743C
6844D
6945E
7046F
7147G
7248H
7349I
744AJ
754BK
764CL
774DM
784EN
794FO
8050P
8151Q
8252R
8353S
8454T
8555U
8656V
8757W
8858X
8959Y
905AZ
915B[
925C\
935D]
945E^
955F_
Source: RFC 20[2], columns 4 and 5, as of 2026-11-14.

Lowercase letters and symbols (96 to 126)

DecimalHexCharacter
9660`
9761a
9862b
9963c
10064d
10165e
10266f
10367g
10468h
10569i
1066Aj
1076Bk
1086Cl
1096Dm
1106En
1116Fo
11270p
11371q
11472r
11573s
11674t
11775u
11876v
11977w
12078x
12179y
1227Az
1237B{
1247C|
1257D}
1267E~
Source: RFC 20[2], columns 6 and 7, as of 2026-11-14.

ASCII control characters (0 to 31 and 127)#

Microsoft describes codes 0 to 31 as control codes meant for steering devices like printers[6]. Code 12, for example, is form feed, which makes a printer jump to the start of a fresh page[6]. Code 127, DEL, is a special case: Unicode lists it as a control character[5], while a footnote in RFC 20 places DEL, strictly, outside the control group[2].

Unicode gives "tab" as another name for horizontal tab (9), and "new line" and "end of line" as other names for line feed (10)[5]. Carriage return (13) is the code RFC 20 names as the end-of-line character used at UCLA[2].

DecimalHexAbbreviationName
000NULNull
101SOHStart of heading
202STXStart of text
303ETXEnd of text
404EOTEnd of transmission
505ENQEnquiry
606ACKAcknowledge
707BELBell
808BSBackspace
909HTHorizontal tab
100ALFLine feed
110BVTVertical tab
120CFFForm feed
130DCRCarriage return
140ESOShift out
150FSIShift in
1610DLEData link escape
1711DC1Device control 1
1812DC2Device control 2
1913DC3Device control 3
2014DC4Device control 4
2115NAKNegative acknowledge
2216SYNSynchronous idle
2317ETBEnd of transmission block
2418CANCancel
2519EMEnd of medium
261ASUBSubstitute
271BESCEscape
281CFSFile separator
291DGSGroup separator
301ERSRecord separator
311FUSUnit separator
1277FDELDelete
Source: RFC 20[2] and Unicode NamesList[5], as of 2026-11-14. Decimal and hex worked out from the chart column and row.

ASCII chart printable: how to print these tables#

To keep a paper copy, you can print this page from your browser and keep only the sheets with the group of codes you need.

Extended ASCII and codes 128 to 255#

Some charts stretch to 256 codes, numbered 0 to 255, and call the upper part "extended ASCII". Even Microsoft's help page mentions a "256-characters Extended ACSII set"[6]. ASCII uses seven bits, and in an 8-bit byte the top bit is always 0[2], which caps the code at 127. In Unicode the range right after ASCII, 0080 to 00FF, is a separate block called C1 Controls and Latin-1 Supplement[5].

This is why the degree sign has no ASCII code. Microsoft's shortcut for it is Alt with 0176 on the numeric keypad[6], a value above 127. Our guide on how to type the degree symbol on Windows, Mac, iPhone and Android covers the other ways.

ASCII, Unicode and UTF-8#

Unicode is the much larger character list that also covers non-Latin scripts[6]. It starts with ASCII: its first block, C0 Controls and Basic Latin, runs from 0000 to 007F[5], the same 128 codes. Unicode calls the number of each character a code point and writes it as U+ followed by hex digits, so capital A is U+0041[5][4].

UTF-8 is one of several ways to store Unicode text as bytes[4]. It keeps every ASCII character as one byte with the same value: U+0000 to U+007F become bytes 00 to 7F, so plain ASCII text is also valid UTF-8[4]. Characters such as the em dash, U+2014[5], sit far outside that range and have no ASCII code at all. The guide to the em dash, en dash and hyphen explains how to type them.

Typing a character by its ASCII code on Windows#

On Windows you can type a character from its decimal code. Hold down Alt while you type the code[6]. The digits must come from the numeric keypad and not the number row, with Num Lock on if your keyboard needs it[6].

Microsoft's help page also describes a hex method: type the Unicode code, then press Alt and X[6]. Its own example is the dollar sign, typed as 0024 followed by Alt+X[6]. That 24 is the same hex value as the dollar sign in the first printable table.

Summary: which ASCII code to use#

Use the decimal column for Alt codes on Windows[6] and the hex column for Unicode codes, since U+0000 to U+007F are the ASCII characters[4]. Treat anything above 127 as a different character set, because ASCII stops at seven bits[2].

Frequently asked questions

What is the ASCII code for A?

Capital A is 65 in decimal, 41 in hex and 1000001 in binary, in column 4, row 1 of the chart[2]. Small a is 97 in decimal and 61 in hex[2]. Unicode keeps the same values and writes them as U+0041 and U+0061[5].

How many characters are in ASCII?

ASCII has 128 characters, numbered 0 to 127[1]. Of these, 33 are control codes: 0 to 31[6] plus DEL at 127[5]. The other 95, from 32 to 126, are the space, punctuation, the digits and the English letters in upper and lower case[2].

Sources

Numbers in square brackets in the text point to these sources.

  1. 1 ECMA-6: 7-bit coded character setEcma International · accessed Nov 26, 2026ecma-international.org
  2. 2 RFC 20: ASCII format for Network InterchangeIETF / RFC Editor · published Oct 16, 1969 · accessed Nov 26, 2026rfc-editor.org
  3. 3 Character Sets registryIANA · accessed Nov 26, 2026iana.org
  4. 4 RFC 3629: UTF-8, a transformation format of ISO 10646IETF / RFC Editor · accessed Nov 26, 2026rfc-editor.org
  5. 5 Unicode Character Database: NamesList.txtUnicode Consortium · accessed Nov 26, 2026unicode.org
  6. 6 Insert ASCII or Unicode Latin-based symbols and charactersMicrosoft Support · accessed Nov 26, 2026support.microsoft.com

CategoryCategory: Standards, Sizes & Time ZonesTagsASCIICharacter codesunicodeUTF-8