ChartsLoom
Back to ChartsLoom

Mathematics & Education · Computing reference

ASCII Chart for Decimal, Hex, Binary and Characters

Look up every standard ASCII value from 0 to 127. Compare decimal, hexadecimal, octal, seven-bit binary, Unicode code points, control mnemonics, printable characters, escapes, and line endings.

Treat control characters and terminal escape sequences carefully. They can trigger actions instead of displaying text. Verify the receiving format before inserting raw controls. See the ChartsLoom Disclaimer.

ASCII Chart showing decimal, hexadecimal, octal and binary values for controls, punctuation, digits, uppercase letters and lowercase letters

What does an ASCII chart show?

An ASCII chart maps each standard value from 0 through 127 to a control function or printable character and shows the same value in decimal, hexadecimal, octal, binary, and Unicode notation.

The RFC Editor ASCII standard defines the seven-bit code positions and control mnemonics used in this reference. Unicode preserves the same range as U+0000 through U+007F.

Code space

128 values

Standard ASCII uses decimal values 0–127 because seven bits provide 128 combinations.

Printable range

32–126

The printable range contains space, punctuation, digits, uppercase letters, lowercase letters, and symbols.

Case offset

32 decimal

Matching basic uppercase and lowercase letters differ by 32 code values in ASCII.

UTF-8 relationship

Same first 128

Every ASCII character uses the same one-byte value when text is encoded as UTF-8.

Core ASCII questions answered

These short answers cover code size, printable ranges, common values, controls, line endings, UTF-8 compatibility, and the meaning of extended ASCII.

How many values are in standard ASCII?

Standard ASCII contains 128 values from decimal 0 through 127.

Is ASCII a 7-bit or 8-bit code?

Standard ASCII is a 7-bit code; an 8-bit storage byte can carry one ASCII value with its high bit clear.

How many ASCII characters are printable?

ASCII has 95 printable characters from decimal 32 through 126, including space.

What is ASCII 32?

Decimal 32 is the space character, written as hexadecimal 20 and Unicode U+0020.

What is ASCII 65?

Decimal 65 is uppercase A, equal to hexadecimal 41 and binary 1000001.

What is ASCII 97?

Decimal 97 is lowercase a, equal to hexadecimal 61 and binary 1100001.

What values contain the digits?

ASCII digits 0–9 occupy decimal values 48–57 and hexadecimal 30–39.

What is the newline code?

Line feed is decimal 10; many systems use it as newline, while CRLF uses decimal 13 followed by 10.

What is the tab code?

Horizontal tab is decimal 9, hexadecimal 09, and commonly written as the escape sequence \t.

Is extended ASCII standard ASCII?

No. Values 128–255 require a separately named 8-bit encoding and do not have one universal meaning.

Is ASCII the same as Unicode?

No. ASCII has 128 values; Unicode defines a much larger character repertoire and preserves ASCII at U+0000–U+007F.

Can control codes be printed normally?

No. Control codes have no standard visible glyph, although software may show a mnemonic or placeholder.

How the 128 ASCII values are organized

ASCII groups related characters into consecutive numeric ranges. This structure makes digit and letter tests straightforward, but control codes and punctuation still need exact lookup.

0–31

Controls

NUL through US

32

Space

Blank separator

33–47

Symbols

! through /

48–57

Digits

0 through 9

58–64

Symbols

: through @

65–90

Uppercase

A through Z

91–96

Symbols

[ through `

97–122

Lowercase

a through z

123–126

Symbols

{ through ~

127

DEL

Delete control

Example: A = decimal 65 = hex 41 = octal 101 = binary 1000001 = Unicode U+0041.

ASCII Code Ranges at a Glance

Standard ASCII uses values 0–127. The ranges separate nonprinting controls, space, punctuation, digits, uppercase letters, lowercase letters, and DELETE.

Swipe horizontally inside the table to view every column.

Standard ASCII uses values 0–127. The ranges separate nonprinting controls, space, punctuation, digits, uppercase letters, lowercase letters, and DELETE.
Decimal rangeHex rangeCountCategoryWhat appears there
0–31C0 controls00–1F32C0 control codesNUL through US; mostly nonprinting control functions
32201SpaceA printable blank separator
33–4721–2F15Punctuation and symbols! through /
48–5730–3910Decimal digits0 through 9
58–643A–407Punctuation and symbols: through @
65–9041–5A26Uppercase Latin lettersA through ZUppercase letter range
91–965B–606Punctuation and symbols[ through `
97–12261–7A26Lowercase Latin lettersa through zLowercase letter range
123–1267B–7E4Punctuation and symbols{ through ~
127DELETE control7F1DELETE controlDEL

Decimal uses base 10. Hexadecimal uses base 16. Standard ASCII is a 7-bit code with 128 possible values.

  • Printable ASCII runs from decimal 32 through 126 inclusive, giving 95 printable characters when space is counted.
  • The 33 control values are decimal 0–31 plus decimal 127.
  • Values 128–255 do not belong to standard ASCII; their meaning depends on a separate 8-bit encoding.
Download or export

Control codes describe functions rather than visible glyphs

Values 0–31 and 127 are controls. Historical functions include transmission framing, device control, formatting, and information separation. Current systems still rely heavily on NUL, horizontal tab, line feed, carriage return, escape, and a few related controls.

ASCII Control Codes 0–31 and 127

Control codes were defined for communication, device control, text layout, and record separation. Modern software still commonly uses NUL, tab, line feed, carriage return, escape, and delete-related conventions.

Swipe horizontally inside the table to view every column.

Control codes were defined for communication, device control, text layout, and record separation. Modern software still commonly uses NUL, tab, line feed, carriage return, escape, and delete-related conventions.
MnemonicDecimalHex7-bit binaryOfficial nameCommon escape
NULNull control00x000000000Null\0
SOH10x010000001Start of Heading
STX20x020000010Start of Text
ETX30x030000011End of Text
EOT40x040000100End of Transmission
ENQ50x050000101Enquiry
ACK60x060000110Acknowledge
BEL70x070000111Bell\a in C-family references
BS80x080001000Backspace\b
HTHorizontal tab90x090001001Horizontal Tabulation\t
LFLine feed100x0A0001010Line Feed\n
VT110x0B0001011Vertical Tabulation\v
FF120x0C0001100Form Feed\f
CRCarriage return130x0D0001101Carriage Return\r
SO140x0E0001110Shift Out
SI150x0F0001111Shift In
DLE160x100010000Data Link Escape
DC1170x110010001Device Control One
DC2180x120010010Device Control Two
DC3190x130010011Device Control Three
DC4200x140010100Device Control Four
NAK210x150010101Negative Acknowledge
SYN220x160010110Synchronous Idle
ETB230x170010111End of Transmission Block
CAN240x180011000Cancel
EM250x190011001End of Medium
SUB260x1A0011010Substitute
ESCEscape270x1B0011011Escape\x1B
FS280x1C0011100File Separator
GS290x1D0011101Group Separator
RS300x1E0011110Record Separator
US310x1F0011111Unit Separator
DELDelete1270x7F1111111Delete

The escape column shows common programming notation where a widely recognized form exists. Exact syntax varies by language and environment.

  • Control codes normally do not display as visible glyphs, although software may show placeholders or caret notation.
  • LF is decimal 10 and CR is decimal 13. Text files may use LF alone or the CR+LF pair as a line ending.
  • Never paste unknown control characters into a terminal, protocol field, or data file without understanding the receiving system.
Download or export

Browser-only lookup tool

ASCII character and code finder

Enter one character or a value in decimal, hexadecimal, or binary. The tool returns every common notation, the Unicode code point, the official name, the category, and a common escape when available. Inputs stay in the browser.

Matched ASCII value

A

Latin Capital Letter A

Printable
Decimal
65
Hexadecimal
0x41
Octal
101
7-bit binary
1000001
Unicode
U+0041
Category
Uppercase letter
Mnemonic
Common escape

This value represents a printable ASCII character. Its visible glyph can vary by font, but its character identity and code value stay the same.

Printable ASCII begins with space and ends with tilde

Decimal 32 is space. Decimal 33–126 contains punctuation, symbols, digits, and basic Latin letters. Space counts as printable because it occupies text width, even though it appears blank.

ASCII Space, Punctuation and Symbol Characters

This table covers space and every printable ASCII character that is not a digit or Latin letter.

Swipe horizontally inside the table to view every column.

This table covers space and every printable ASCII character that is not a digit or Latin letter.
CharacterDecimalHexOctal7-bit binaryUnicodeName
SPSpace320x200400100000U+0020Space
!330x210410100001U+0021Exclamation Mark
"340x220420100010U+0022Quotation Mark
#350x230430100011U+0023Number Sign
$360x240440100100U+0024Dollar Sign
%370x250450100101U+0025Percent Sign
&Ampersand may need escaping380x260460100110U+0026Ampersand
'390x270470100111U+0027Apostrophe
(400x280500101000U+0028Left Parenthesis
)410x290510101001U+0029Right Parenthesis
*420x2A0520101010U+002AAsterisk
+430x2B0530101011U+002BPlus Sign
,440x2C0540101100U+002CComma
-450x2D0550101101U+002DHyphen-Minus
.460x2E0560101110U+002EFull Stop
/470x2F0570101111U+002FSolidus
:580x3A0720111010U+003AColon
;590x3B0730111011U+003BSemicolon
<Less-than sign may need escaping600x3C0740111100U+003CLess-Than Sign
=610x3D0750111101U+003DEquals Sign
>620x3E0760111110U+003EGreater-Than Sign
?630x3F0770111111U+003FQuestion Mark
@640x401001000000U+0040Commercial At
[910x5B1331011011U+005BLeft Square Bracket
\Backslash escape character in many languages920x5C1341011100U+005CReverse Solidus
]930x5D1351011101U+005DRight Square Bracket
^940x5E1361011110U+005ECircumflex Accent
_950x5F1371011111U+005FLow Line
`960x601401100000U+0060Grave Accent
{1230x7B1731111011U+007BLeft Curly Bracket
|1240x7C1741111100U+007CVertical Line
}1250x7D1751111101U+007DRight Curly Bracket
~1260x7E1761111110U+007ETilde

SP represents the visible label for the space character at decimal 32. The actual character is blank.

  • Backslash is decimal 92 (0x5C), while solidus or forward slash is decimal 47 (0x2F).
  • HTML and programming languages may require characters such as ampersand, less-than sign, quotation mark, apostrophe, or backslash to be escaped by context.
  • Hyphen-minus U+002D is the ASCII character used for both hyphen and minus in plain ASCII; Unicode also defines specialized dash and minus characters.
Download or export

ASCII Digits 0–9

ASCII assigns ten consecutive values to the decimal digits. Their code values increase by one from 0 through 9.

Swipe horizontally inside the table to view every column.

ASCII assigns ten consecutive values to the decimal digits. Their code values increase by one from 0 through 9.
DigitDecimalHexOctal7-bit binaryUnicodeName
048Digit zero starts at decimal 480x300600110000U+0030Digit Zero
1490x310610110001U+0031Digit One
2500x320620110010U+0032Digit Two
3510x330630110011U+0033Digit Three
4520x340640110100U+0034Digit Four
5530x350650110101U+0035Digit Five
6540x360660110110U+0036Digit Six
7550x370670110111U+0037Digit Seven
8560x380700111000U+0038Digit Eight
957Digit nine ends at decimal 570x390710111001U+0039Digit Nine

The code for digit 0 is decimal 48. For any ASCII digit, numeric value = character code − 48.

  • Digit characters are text symbols. The character 7 has ASCII value 55, not numeric value 7.
  • Because digit codes are consecutive, software can test whether a value lies from 48 through 57.
  • Unicode preserves these same code points as U+0030 through U+0039.
Download or export

ASCII letter ranges are consecutive and case-related

Uppercase A–Z uses decimal 65–90. Lowercase a–z uses decimal 97–122. Matching basic letters differ by 32 decimal values, but this arithmetic shortcut should not replace Unicode-aware case conversion for general text.

ASCII Uppercase Letters A–Z

Uppercase Latin letters occupy decimal values 65–90, hexadecimal 41–5A, and Unicode U+0041–U+005A.

Swipe horizontally inside the table to view every column.

Uppercase Latin letters occupy decimal values 65–90, hexadecimal 41–5A, and Unicode U+0041–U+005A.
LetterDecimalHexOctal7-bit binaryUnicodeName
A65A begins uppercase range0x411011000001U+0041Latin Capital Letter A
B660x421021000010U+0042Latin Capital Letter B
C670x431031000011U+0043Latin Capital Letter C
D680x441041000100U+0044Latin Capital Letter D
E690x451051000101U+0045Latin Capital Letter E
F700x461061000110U+0046Latin Capital Letter F
G710x471071000111U+0047Latin Capital Letter G
H720x481101001000U+0048Latin Capital Letter H
I730x491111001001U+0049Latin Capital Letter I
J740x4A1121001010U+004ALatin Capital Letter J
K750x4B1131001011U+004BLatin Capital Letter K
L760x4C1141001100U+004CLatin Capital Letter L
M770x4D1151001101U+004DLatin Capital Letter M
N780x4E1161001110U+004ELatin Capital Letter N
O790x4F1171001111U+004FLatin Capital Letter O
P800x501201010000U+0050Latin Capital Letter P
Q810x511211010001U+0051Latin Capital Letter Q
R820x521221010010U+0052Latin Capital Letter R
S830x531231010011U+0053Latin Capital Letter S
T840x541241010100U+0054Latin Capital Letter T
U850x551251010101U+0055Latin Capital Letter U
V860x561261010110U+0056Latin Capital Letter V
W870x571271010111U+0057Latin Capital Letter W
X880x581301011000U+0058Latin Capital Letter X
Y890x591311011001U+0059Latin Capital Letter Y
Z90Z ends uppercase range0x5A1321011010U+005ALatin Capital Letter Z

Uppercase ASCII letters are consecutive. A starts at decimal 65 and Z ends at decimal 90.

  • For basic ASCII letters, the matching lowercase code is 32 decimal values higher.
  • Case conversion by adding 32 is safe only after confirming the value is an ASCII uppercase letter.
  • Locale-aware Unicode case conversion is broader than this simple ASCII relationship.
Download or export

ASCII Lowercase Letters a–z

Lowercase Latin letters occupy decimal values 97–122, hexadecimal 61–7A, and Unicode U+0061–U+007A.

Swipe horizontally inside the table to view every column.

Lowercase Latin letters occupy decimal values 97–122, hexadecimal 61–7A, and Unicode U+0061–U+007A.
LetterDecimalHexOctal7-bit binaryUnicodeName
a97a begins lowercase range0x611411100001U+0061Latin Small Letter A
b980x621421100010U+0062Latin Small Letter B
c990x631431100011U+0063Latin Small Letter C
d1000x641441100100U+0064Latin Small Letter D
e1010x651451100101U+0065Latin Small Letter E
f1020x661461100110U+0066Latin Small Letter F
g1030x671471100111U+0067Latin Small Letter G
h1040x681501101000U+0068Latin Small Letter H
i1050x691511101001U+0069Latin Small Letter I
j1060x6A1521101010U+006ALatin Small Letter J
k1070x6B1531101011U+006BLatin Small Letter K
l1080x6C1541101100U+006CLatin Small Letter L
m1090x6D1551101101U+006DLatin Small Letter M
n1100x6E1561101110U+006ELatin Small Letter N
o1110x6F1571101111U+006FLatin Small Letter O
p1120x701601110000U+0070Latin Small Letter P
q1130x711611110001U+0071Latin Small Letter Q
r1140x721621110010U+0072Latin Small Letter R
s1150x731631110011U+0073Latin Small Letter S
t1160x741641110100U+0074Latin Small Letter T
u1170x751651110101U+0075Latin Small Letter U
v1180x761661110110U+0076Latin Small Letter V
w1190x771671110111U+0077Latin Small Letter W
x1200x781701111000U+0078Latin Small Letter X
y1210x791711111001U+0079Latin Small Letter Y
z122z ends lowercase range0x7A1721111010U+007ALatin Small Letter Z

Lowercase ASCII letters are consecutive. a starts at decimal 97 and z ends at decimal 122.

  • For basic ASCII letters, the matching uppercase code is 32 decimal values lower.
  • ASCII case relationships do not cover accented letters, non-Latin scripts, or locale-specific Unicode behavior.
  • UTF-8 stores every ASCII lowercase letter as the same one-byte value shown here.
Download or export

Escape notation is source syntax, not a universal character name

A sequence such as \\n often appears in source code as a notation for line feed. The parser converts that notation into a character value. Escape support and meaning can differ among programming languages, shells, regular expressions, JSON, HTML, and terminal protocols.

Common ASCII Escapes and Line Endings

Programming languages use escape syntax to represent controls or characters that are difficult to type directly. The exact supported forms vary by language.

Swipe horizontally inside the table to view every column.

Programming languages use escape syntax to represent controls or characters that are difficult to type directly. The exact supported forms vary by language.
NotationASCII value or sequenceMeaningTypical useImportant limit
\00 / 0x00NULString or byte terminator in some systemsDo not assume every string format uses NUL termination
\a7 / 0x07BELAudible or visual alert in C-style contextsNot supported as an escape by every language
\b8 / 0x08BackspaceControl character inside a stringIn regular expressions, meaning can depend on context
\t9 / 0x09Horizontal tabTab-separated text and indentationDisplayed width depends on software settings
\n10 / 0x0ALine feed valueLine feedUnix-style line ending and newline escapeSome environments translate newline conventions
\v11 / 0x0BVertical tabLegacy vertical spacing controlRare in ordinary modern text
\f12 / 0x0CForm feedPage break or legacy printer controlModern rendering varies
\r13 / 0x0DCarriage returnReturn to line start; part of CRLFCR alone is not the usual line ending on most current systems
\r\n13 then 10 / 0x0D 0x0ATwo-character CRLF sequenceCarriage return + line feedWindows and many network-protocol line endingsThis is a two-character sequence
\x1B27 / 0x1BESCEscape sequences and terminal controlsUntrusted escape sequences can alter terminal behaviorTerminal safety caution
\\92 / 0x5CReverse solidusLiteral backslash in many string syntaxesEscaping rules depend on the host language
\"34 / 0x22Quotation markQuote inside a double-quoted stringSome languages also allow alternative string delimiters
\'39 / 0x27ApostropheQuote inside a single-quoted stringSupport depends on string syntax
\xNNOne byte written with two hex digitsHexadecimal byte escape patternRepresent a chosen byte valueValidation rules and Unicode handling differ by language

Notation is illustrative rather than language-neutral. Check the documentation for the exact programming language, shell, regular-expression engine, or data format.

  • LF has decimal value 10. CR has decimal value 13. CRLF is the ordered pair 13, 10.
  • A source-code escape is written text that the language parser converts into a character; the backslash is not always stored in the resulting string.
  • Terminal escape sequences can perform actions rather than display ordinary text, so treat untrusted control data carefully.
Download or export

ASCII, Unicode and UTF-8 are related but different

ASCII

A seven-bit coded character set containing 128 values. It covers controls, basic punctuation, decimal digits, and unaccented Latin letters.

Unicode

A universal character standard that assigns code points to scripts, symbols, emoji, controls, and many other text characters. ASCII occupies U+0000–U+007F.

UTF-8

A variable-length Unicode encoding. ASCII code points use one byte with the same numeric value, while other Unicode characters use two to four bytes.

Use UTF-8 for general modern text. Use an ASCII chart when a format, protocol, byte sequence, escape, or programming task specifically depends on the 0–127 repertoire.

Common ASCII mistakes

Calling 128–255 standard ASCII

Name the actual 8-bit encoding because those byte values do not have one universal character mapping.

Confusing digit value with character code

The character 5 has decimal code 53. Subtract 48 only after confirming the character is an ASCII digit.

Treating \n and \r\n as identical bytes

LF is one code. CRLF is two ordered codes and can matter in files and network protocols.

Assuming every control displays visibly

Controls usually perform functions or remain nonprinting; viewers may show replacement labels for inspection.

Using add-or-subtract 32 on arbitrary text

The 32-value case relationship applies to basic ASCII A–Z and a–z, not general Unicode text.

Pasting untrusted escape sequences into a terminal

Terminal controls can move the cursor, change formatting, or trigger other behavior. Inspect or sanitize the data first.

Frequently asked questions

What does ASCII stand for?

ASCII stands for American Standard Code for Information Interchange. It assigns numeric codes to controls, spaces, punctuation, digits, and basic Latin letters.

How many codes are in standard ASCII?

Standard ASCII contains 128 values from decimal 0 through 127 because a 7-bit value has 128 possible combinations.

How many printable ASCII characters are there?

There are 95 printable ASCII characters from decimal 32 through 126 when the space character is included.

What are the ASCII control characters?

ASCII control characters are values 0–31 and 127. They include NUL, tab, line feed, carriage return, escape, separators, and DELETE.

What is the ASCII value of a space?

The ASCII space character is decimal 32, hexadecimal 20, octal 040, binary 0100000, and Unicode U+0020.

What is the ASCII value of A?

Uppercase A is decimal 65, hexadecimal 41, octal 101, binary 1000001, and Unicode U+0041.

What is the ASCII value of lowercase a?

Lowercase a is decimal 97, hexadecimal 61, octal 141, binary 1100001, and Unicode U+0061.

What is the ASCII value of digit 0?

The character 0 is decimal 48, hexadecimal 30, octal 060, binary 0110000, and Unicode U+0030.

What is the difference between LF and CR?

LF is line feed at decimal 10, while CR is carriage return at decimal 13. CRLF is the two-code sequence 13 followed by 10.

Is ASCII the same as UTF-8?

No. ASCII defines 128 codes, while UTF-8 can encode all Unicode characters. Every ASCII character keeps the same one-byte value in UTF-8.

Is extended ASCII a single standard?

No. The phrase extended ASCII can refer to different 8-bit encodings, so values 128–255 require a named encoding such as Windows-1252 or ISO-8859-1.

Why are uppercase and lowercase letters 32 values apart?

ASCII arranged A–Z at 65–90 and a–z at 97–122, producing a decimal difference of 32 for matching basic Latin letters.

How do I convert decimal ASCII to hexadecimal?

Convert the decimal value to base 16 and pad printable ASCII values to two hex digits, such as decimal 65 becoming 41.

How do I identify an ASCII digit in code?

Check whether the code value lies from decimal 48 through 57 inclusive. Subtract 48 to obtain the numeric digit value.

Can an ASCII control code display as a symbol?

A control code has no standard printable glyph. Software may show a placeholder, abbreviation, caret notation, or a control-picture symbol for inspection.

Does an ASCII chart define how fonts draw characters?

No. ASCII assigns character identities and code values; fonts determine the visible glyph shape for printable characters.

Sources

These standards references support the seven-bit ASCII mappings, control names, Basic Latin Unicode values, and UTF-8 compatibility described above.

  1. RFC EditorRFC 20: ASCII Format for Network Interchange

    https://www.rfc-editor.org/rfc/rfc20

    Internet Standard reference for the 7-bit ASCII code positions, control mnemonics, graphic characters, and network-interchange conventions.

  2. Unicode ConsortiumC0 Controls and Basic Latin Code Chart

    https://www.unicode.org/charts/PDF/U0000.pdf

    Official Unicode chart for U+0000–U+007F, the range that contains C0 controls, ASCII punctuation, digits, Latin letters, and DELETE.

  3. RFC EditorRFC 3629: UTF-8, a Transformation Format of ISO 10646

    https://www.rfc-editor.org/rfc/rfc3629

    Internet Standard explaining that UTF-8 preserves the full US-ASCII range, so ASCII characters use the same single-byte values in UTF-8.