ASCII Table

This ASCII table lists all 256 codes from 0 to 255 in decimal, hex, octal and binary, with a name for every control character and a search box for any character, code or name.

Try A, 65, 0x41, 41h or line feed.

Show

Showing 256 of 256 codes.

ASCII codes in decimal, hex, octal and binary. Rows 128 to 255 use ISO 8859-1.
DecHexOctBinCharName
Control characters 0 to 31
Null
Start of heading
Start of text
End of text
End of transmission
Enquiry
Acknowledge
Bell
Backspace
Horizontal tab
Line feed
Vertical tab
Form feed
Carriage return
Shift out
Shift in
Data link escape
Device control one
Device control two
Device control three
Device control four
Negative acknowledge
Synchronous idle
End of transmission block
Cancel
End of medium
Substitute
Escape
File separator
Group separator
Record separator
Unit separator
Printable 32 to 126
Space
Exclamation mark
Quotation mark
Number sign (hash)
Dollar sign
Percent sign
Ampersand
Apostrophe
Left parenthesis
Right parenthesis
Asterisk
Plus sign
Comma
Hyphen-minus
Full stop (period)
Solidus (slash)
Digit zero
Digit one
Digit two
Digit three
Digit four
Digit five
Digit six
Digit seven
Digit eight
Digit nine
Colon
Semicolon
Less-than sign
Equals sign
Greater-than sign
Question mark
Commercial at
Latin capital letter A
Latin capital letter B
Latin capital letter C
Latin capital letter D
Latin capital letter E
Latin capital letter F
Latin capital letter G
Latin capital letter H
Latin capital letter I
Latin capital letter J
Latin capital letter K
Latin capital letter L
Latin capital letter M
Latin capital letter N
Latin capital letter O
Latin capital letter P
Latin capital letter Q
Latin capital letter R
Latin capital letter S
Latin capital letter T
Latin capital letter U
Latin capital letter V
Latin capital letter W
Latin capital letter X
Latin capital letter Y
Latin capital letter Z
Left square bracket
Reverse solidus (backslash)
Right square bracket
Circumflex accent (caret)
Low line (underscore)
Grave accent (backtick)
Latin small letter a
Latin small letter b
Latin small letter c
Latin small letter d
Latin small letter e
Latin small letter f
Latin small letter g
Latin small letter h
Latin small letter i
Latin small letter j
Latin small letter k
Latin small letter l
Latin small letter m
Latin small letter n
Latin small letter o
Latin small letter p
Latin small letter q
Latin small letter r
Latin small letter s
Latin small letter t
Latin small letter u
Latin small letter v
Latin small letter w
Latin small letter x
Latin small letter y
Latin small letter z
Left curly bracket
Vertical line (pipe)
Right curly bracket
Tilde
DEL 127
Delete
Extended 128 to 255 (ISO 8859-1)
Padding character
High octet preset
Break permitted here
No break here
Index
Next line
Start of selected area
End of selected area
Character tabulation set
Character tabulation with justification
Line tabulation set
Partial line forward
Partial line backward
Reverse index
Single shift two
Single shift three
Device control string
Private use one
Private use two
Set transmit state
Cancel character
Message waiting
Start of guarded area
End of guarded area
Start of string
Single graphic character introducer
Single character introducer
Control sequence introducer
String terminator
Operating system command
Privacy message
Application program command
No-break space
Inverted exclamation mark
Cent sign
Pound sign
Currency sign
Yen sign
Broken bar
Section sign
Diaeresis
Copyright sign
Feminine ordinal indicator
Left-pointing double angle quotation mark
Not sign
Soft hyphen
Registered sign
Macron
Degree sign
Plus-minus sign
Superscript two
Superscript three
Acute accent
Micro sign
Pilcrow sign
Middle dot
Cedilla
Superscript one
Masculine ordinal indicator
Right-pointing double angle quotation mark
Vulgar fraction one quarter
Vulgar fraction one half
Vulgar fraction three quarters
Inverted question mark
Latin capital letter A with grave
Latin capital letter A with acute
Latin capital letter A with circumflex
Latin capital letter A with tilde
Latin capital letter A with diaeresis
Latin capital letter A with ring above
Latin capital letter AE
Latin capital letter C with cedilla
Latin capital letter E with grave
Latin capital letter E with acute
Latin capital letter E with circumflex
Latin capital letter E with diaeresis
Latin capital letter I with grave
Latin capital letter I with acute
Latin capital letter I with circumflex
Latin capital letter I with diaeresis
Latin capital letter eth
Latin capital letter N with tilde
Latin capital letter O with grave
Latin capital letter O with acute
Latin capital letter O with circumflex
Latin capital letter O with tilde
Latin capital letter O with diaeresis
Multiplication sign
Latin capital letter O with stroke
Latin capital letter U with grave
Latin capital letter U with acute
Latin capital letter U with circumflex
Latin capital letter U with diaeresis
Latin capital letter Y with acute
Latin capital letter thorn
Latin small letter sharp s
Latin small letter a with grave
Latin small letter a with acute
Latin small letter a with circumflex
Latin small letter a with tilde
Latin small letter a with diaeresis
Latin small letter a with ring above
Latin small letter ae
Latin small letter c with cedilla
Latin small letter e with grave
Latin small letter e with acute
Latin small letter e with circumflex
Latin small letter e with diaeresis
Latin small letter i with grave
Latin small letter i with acute
Latin small letter i with circumflex
Latin small letter i with diaeresis
Latin small letter eth
Latin small letter n with tilde
Latin small letter o with grave
Latin small letter o with acute
Latin small letter o with circumflex
Latin small letter o with tilde
Latin small letter o with diaeresis
Division sign
Latin small letter o with stroke
Latin small letter u with grave
Latin small letter u with acute
Latin small letter u with circumflex
Latin small letter u with diaeresis
Latin small letter y with acute
Latin small letter thorn
Latin small letter y with diaeresis

Why use this ASCII table

Every code in one place

All 256 values sit in one table, so you never jump between a 0 to 127 page and a separate extended page.

Four bases side by side

Decimal, hex, octal and binary appear on each row, ready to copy into code, a config file or homework.

Names for the invisible ones

Characters 0 to 31 and 127 do not print, so each row carries its short name and its full name, such as LF, line feed.

What ASCII is

ASCII, the American Standard Code for Information Interchange, assigns numbers 0 to 127 to letters, digits, punctuation and control signals. That is 128 codes in 7 bits: 33 control codes (0 to 31 and 127) and 95 printable characters (32 to 126). The capital letter A is decimal 65, hex 41, octal 101, binary 01000001. The line feed is decimal 10, hex 0A, octal 012, binary 00001010. DEL is decimal 127, hex 7F, octal 177, binary 01111111.

Codes 128 to 255 are not ASCII. They belong to extended sets that differ by system. This table shows ISO 8859-1, also called Latin-1, whose 256 values match the first 256 Unicode code points. Windows-1252 differs in 128 to 159, so check which set a file uses before trusting a high value.

Reading the table

  • Control, 0 to 31 and 127Not printable. Examples: 0 NUL, 9 HT (tab), 10 LF (line feed), 13 CR (carriage return), 27 ESC, 127 DEL.
  • Space, 32Printable but blank. Code 32 is hex 20, octal 040, binary 00100000.
  • Digits, 48 to 57The digit 0 is 48 and 9 is 57. Subtract 48 to get the number.
  • Uppercase, 65 to 90A is 65 (hex 41). Z is 90 (hex 5A).
  • Lowercase, 97 to 122a is 97 (hex 61). Lowercase sits 32 above its capital, so one bit (binary 00100000) toggles case.
  • Extended, 128 to 255Latin-1 in this table. 233 is the letter e with an acute accent, hex E9, octal 351.

Common Use Cases

Debugging text

Spot a stray code 13 or 9 hiding in a file by looking up what it is.

Writing parsers

Check that digits run 48 to 57 and letters 65 to 90 and 97 to 122 before you write a range test.

Homework and exams

Convert between decimal, hex, octal and binary using a reference you can search.

Escapes and entities

Find the number for a character before writing it as an HTML numeric reference or an escape sequence.

How to look up a code

1

Search

Type in the search box. Enter a character, a number such as 65 or 0x41, or a name such as line feed.

2

Read the row

The four bases and the name are on one line.

3

Copy a cell

Click the cell you need, or move to it with the arrow keys and press Enter. It copies that text.

4

Start over

Clear the search to see all 256 rows again.

Why a table beats memorising

No base mix-ups

No guessing which base a number is in.

Readable controls

Control characters become readable names.

Nothing to install

Nothing to install, nothing sent anywhere. The table runs in your browser.

Tips

  • •ASCII or Unicode Every ASCII code has the same number in Unicode and in UTF-8, so text that uses only 0 to 127 reads the same in all three.
  • •Case trick Add or subtract 32 to switch a letter between capital and lowercase.
  • •Need text, not a code Use the binary text converter or the hex encoder and decoder to convert a whole string.

Look up a code now

Keep the table open while you work. Copy a code, paste it, and come back for the next one.

For letter to number puzzles, try the A1Z26 cipher. For text that must travel safely, the Base64 encoder and decoder is next door.

Related tools

Frequently Asked Questions

How many characters are in the ASCII table?

The standard has 128 (0 to 127). A 256 row table adds an extended set, and which set varies. This one uses ISO 8859-1.

What is the ASCII code for a space?

32, hex 20. It is the first printable character, and many sorting and parsing rules treat it as lower than every letter and digit.

Why do some high codes look different on other sites?

Extended sets disagree. Windows-1252 prints curly quotes and the euro sign in 128 to 159, where Latin-1 holds control codes.

What is the difference between ASCII and Unicode?

Unicode contains ASCII as its first 128 code points and adds over a million more positions. UTF-8 stores ASCII characters in one byte.

Can I type a character from its code?

Some systems accept Alt plus the decimal code on a numeric keypad. Behaviour differs by operating system and app, so copy the character from the table when in doubt.