You are on page 1of 4

ASCII TABLE

ASCII Values in decimal and hexadecimal with comments

© 2000 Walt Howe


(last updated July 15, 1998)

Whether you are a programmer or a computer


user who doesn't care at all how things work as
long as they work, every once in a while you
need to know the ASCII codes for the
characters you type on your keyboard or for
control codes used in communications.

The table below shows both decimal and


hexadecimal values for the keyboard and
control characters along with some notes on
other ways to show or send them. The first 32
characters are printer and communications
control codes. After that, all characters are on
the keyboard.

If you would like to see other information


added in the table, send email to Walt Howe.
{ 123 7B left brace

| 124 7C vertical line

} 125 7D right brace

~ 126 7E tilde

DEL 127 7F deleting backspace

copyright
© 169 A9
html: ©

trademark
™ 153 99 html: &153;
(non-standard)

registered
® 174 AE html: &174;
(non-standard)

non-breaking space
na na
html:  

Go to Top Go to Learning Tree


The ASCII table has 128 characters, with values from 0 through 127.
Thus, 7 bits are sufficient to represent a character in ASCII; however,
most computers typically reserve 1 byte, (8 bits), for an ASCII
character. One byte allows a numeric range from 0 through 255 which
leaves room for growth in the size of the character set, or for a sign bit.
Consequently, a character data type may optionally represent signed
values; however, for now, we will assume that character data types are
unsigned, i.e. positive integer values, in the range 0-127.

Looking at the table, note that the decimal values 0 through 31, and
127

You might also like