nicetool.dev logo

ASCII Table

Search by character, number (65, 0x41) or name, or filter by group.

DecHexCharDescription
00x00NULNull\0
10x01SOHStart of Heading
20x02STXStart of Text
30x03ETXEnd of Text
40x04EOTEnd of Transmission
50x05ENQEnquiry
60x06ACKAcknowledge
70x07BELBell\a
80x08BSBackspace\b
90x09HTHorizontal Tab\t
100x0ALFLine Feed (new line)\n
110x0BVTVertical Tab\v
120x0CFFForm Feed\f
130x0DCRCarriage Return\r
140x0ESOShift Out
150x0FSIShift In
160x10DLEData Link Escape
170x11DC1Device Control 1 (XON)
180x12DC2Device Control 2
190x13DC3Device Control 3 (XOFF)
200x14DC4Device Control 4
210x15NAKNegative Acknowledge
220x16SYNSynchronous Idle
230x17ETBEnd of Transmission Block
240x18CANCancel
250x19EMEnd of Medium
260x1ASUBSubstitute
270x1BESCEscape\e
280x1CFSFile Separator
290x1DGSGroup Separator
300x1ERSRecord Separator
310x1FUSUnit Separator
320x20SPSpace
330x21!Exclamation mark
340x22"Double quote
350x23#Number sign (hash)
360x24$Dollar sign
370x25%Percent sign
380x26&Ampersand
390x27'Apostrophe (single quote)
400x28(Left parenthesis
410x29)Right parenthesis
420x2A*Asterisk
430x2B+Plus sign
440x2C,Comma
450x2D-Hyphen-minus
460x2E.Full stop (period, dot)
470x2F/Slash
480x300Digit 0
490x311Digit 1
500x322Digit 2
510x333Digit 3
520x344Digit 4
530x355Digit 5
540x366Digit 6
550x377Digit 7
560x388Digit 8
570x399Digit 9
580x3A:Colon
590x3B;Semicolon
600x3C<Less-than sign
610x3D=Equals sign
620x3E>Greater-than sign
630x3F?Question mark
640x40@At sign
650x41AUppercase letter A
660x42BUppercase letter B
670x43CUppercase letter C
680x44DUppercase letter D
690x45EUppercase letter E
700x46FUppercase letter F
710x47GUppercase letter G
720x48HUppercase letter H
730x49IUppercase letter I
740x4AJUppercase letter J
750x4BKUppercase letter K
760x4CLUppercase letter L
770x4DMUppercase letter M
780x4ENUppercase letter N
790x4FOUppercase letter O
800x50PUppercase letter P
810x51QUppercase letter Q
820x52RUppercase letter R
830x53SUppercase letter S
840x54TUppercase letter T
850x55UUppercase letter U
860x56VUppercase letter V
870x57WUppercase letter W
880x58XUppercase letter X
890x59YUppercase letter Y
900x5AZUppercase letter Z
910x5B[Left square bracket
920x5C\Backslash
930x5D]Right square bracket
940x5E^Caret (circumflex)
950x5F_Underscore
960x60`Grave accent (backtick)
970x61aLowercase letter a
980x62bLowercase letter b
990x63cLowercase letter c
1000x64dLowercase letter d
1010x65eLowercase letter e
1020x66fLowercase letter f
1030x67gLowercase letter g
1040x68hLowercase letter h
1050x69iLowercase letter i
1060x6AjLowercase letter j
1070x6BkLowercase letter k
1080x6ClLowercase letter l
1090x6DmLowercase letter m
1100x6EnLowercase letter n
1110x6FoLowercase letter o
1120x70pLowercase letter p
1130x71qLowercase letter q
1140x72rLowercase letter r
1150x73sLowercase letter s
1160x74tLowercase letter t
1170x75uLowercase letter u
1180x76vLowercase letter v
1190x77wLowercase letter w
1200x78xLowercase letter x
1210x79yLowercase letter y
1220x7AzLowercase letter z
1230x7B{Left curly brace
1240x7C|Vertical bar (pipe)
1250x7D}Right curly brace
1260x7E~Tilde
1270x7FDELDelete

What is ASCII?

ASCII (American Standard Code for Information Interchange), published in 1963, assigns a number from 0 to 127 to each English letter, digit, punctuation mark and a set of control codes, so that every 7-bit value means the same character on every computer. Codes 0 to 31 and 127 are control characters such as line feed (10), carriage return (13), tab (9) and escape (27); 32 is the space; 33 to 126 are printable. UTF-8, the encoding used by almost every website today, keeps these first 128 code points byte-for-byte identical, which is why ASCII values still matter when you work with bytes, protocols, regular expressions or keyboard input.

Features

  • • All 128 ASCII codes in decimal, hex, octal and 8-bit binary
  • • HTML numeric entities for every character
  • • Names of all control characters and C escapes such as \n, \t and \r
  • • Search by character, decimal, hex (0x41) or description
  • • Filter control codes, punctuation, digits and letters

Quick reference

The whole table is part of the page and the search runs in your browser, so it works instantly and offline.

Searchable, printable, no tracking.

How to use the ASCII Table

  1. 1

    Type what you know in the search box: a character (A), a decimal code (65), a hex code (0x41 or 41), or a word such as "tab" or "bracket".

  2. 2

    Use the group chips to show only control characters, punctuation, digits, uppercase or lowercase letters.

  3. 3

    Read the row: decimal, hex, octal, 8-bit binary, the character, its HTML entity and a description. Control characters also show their C escape such as \n.

  4. 4

    On wide screens all columns are visible; on phones octal, binary and HTML columns are hidden to keep the table readable.

Practical examples

Converting case with arithmetic

Uppercase A is 65 and lowercase a is 97: the difference is always 32 (bit 5), which is how many case-conversion routines work.

Debugging line endings

A file that shows ^M in vim has CR (13) before LF (10): Windows line endings CRLF instead of Unix LF. Use the table to recognize 0x0D and 0x0A in hex dumps.

Escaping in HTML

Use &#60; and &#62; (or &lt; and &gt;) to show < and > as text, and &#38; for &, so the browser does not read them as markup.

Parsing digits fast

Digits 0 to 9 are codes 48 to 57, so char code minus 48 gives the numeric value, a common trick in parsers and coding interviews.

Frequently asked questions

What is the difference between ASCII and Unicode?+

ASCII defines 128 characters. Unicode defines over 150,000, covering every writing system and emoji. The first 128 Unicode code points are exactly ASCII, and UTF-8 encodes them as the same single bytes.

What is extended ASCII (128 to 255)?+

There is no single extended ASCII. Code pages such as Latin-1 (ISO 8859-1) or Windows-1252 assign different characters to 128 to 255. Modern systems use UTF-8 instead, where those bytes start multi-byte sequences.

What are CR and LF?+

CR (13, \r) moves the cursor to the start of the line and LF (10, \n) moves to the next line. Unix and macOS end lines with LF, Windows with CR+LF, and HTTP headers require CRLF.

Why is DEL 127?+

On punched paper tape, punching all seven holes (1111111 in binary, 127) erased a character, so DEL got the highest code.