ASCII Table
Full 128-character ASCII reference — decimal, hex, octal, binary, with search and filter
| Dec | Hex | Oct | Bin | Char | Name |
|---|---|---|---|---|---|
| 0 | 0x00 | 000 | 00000000 | NUL | NUL |
| 1 | 0x01 | 001 | 00000001 | SOH | SOH |
| 2 | 0x02 | 002 | 00000010 | STX | STX |
| 3 | 0x03 | 003 | 00000011 | ETX | ETX |
| 4 | 0x04 | 004 | 00000100 | EOT | EOT |
| 5 | 0x05 | 005 | 00000101 | ENQ | ENQ |
| 6 | 0x06 | 006 | 00000110 | ACK | ACK |
| 7 | 0x07 | 007 | 00000111 | BEL | BEL |
| 8 | 0x08 | 010 | 00001000 | BS | BS |
| 9 | 0x09 | 011 | 00001001 | TAB | TAB |
| 10 | 0x0A | 012 | 00001010 | LF | LF |
| 11 | 0x0B | 013 | 00001011 | VT | VT |
| 12 | 0x0C | 014 | 00001100 | FF | FF |
| 13 | 0x0D | 015 | 00001101 | CR | CR |
| 14 | 0x0E | 016 | 00001110 | SO | SO |
| 15 | 0x0F | 017 | 00001111 | SI | SI |
| 16 | 0x10 | 020 | 00010000 | DLE | DLE |
| 17 | 0x11 | 021 | 00010001 | DC1 | DC1 |
| 18 | 0x12 | 022 | 00010010 | DC2 | DC2 |
| 19 | 0x13 | 023 | 00010011 | DC3 | DC3 |
| 20 | 0x14 | 024 | 00010100 | DC4 | DC4 |
| 21 | 0x15 | 025 | 00010101 | NAK | NAK |
| 22 | 0x16 | 026 | 00010110 | SYN | SYN |
| 23 | 0x17 | 027 | 00010111 | ETB | ETB |
| 24 | 0x18 | 030 | 00011000 | CAN | CAN |
| 25 | 0x19 | 031 | 00011001 | EM | EM |
| 26 | 0x1A | 032 | 00011010 | SUB | SUB |
| 27 | 0x1B | 033 | 00011011 | ESC | ESC |
| 28 | 0x1C | 034 | 00011100 | FS | FS |
| 29 | 0x1D | 035 | 00011101 | GS | GS |
| 30 | 0x1E | 036 | 00011110 | RS | RS |
| 31 | 0x1F | 037 | 00011111 | US | US |
| 32 | 0x20 | 040 | 00100000 | Space | Space |
| 33 | 0x21 | 041 | 00100001 | ! | ! |
| 34 | 0x22 | 042 | 00100010 | " | " |
| 35 | 0x23 | 043 | 00100011 | # | # |
| 36 | 0x24 | 044 | 00100100 | $ | $ |
| 37 | 0x25 | 045 | 00100101 | % | % |
| 38 | 0x26 | 046 | 00100110 | & | & |
| 39 | 0x27 | 047 | 00100111 | ' | ' |
| 40 | 0x28 | 050 | 00101000 | ( | ( |
| 41 | 0x29 | 051 | 00101001 | ) | ) |
| 42 | 0x2A | 052 | 00101010 | * | * |
| 43 | 0x2B | 053 | 00101011 | + | + |
| 44 | 0x2C | 054 | 00101100 | , | , |
| 45 | 0x2D | 055 | 00101101 | - | - |
| 46 | 0x2E | 056 | 00101110 | . | . |
| 47 | 0x2F | 057 | 00101111 | / | / |
| 48 | 0x30 | 060 | 00110000 | 0 | 0 |
| 49 | 0x31 | 061 | 00110001 | 1 | 1 |
| 50 | 0x32 | 062 | 00110010 | 2 | 2 |
| 51 | 0x33 | 063 | 00110011 | 3 | 3 |
| 52 | 0x34 | 064 | 00110100 | 4 | 4 |
| 53 | 0x35 | 065 | 00110101 | 5 | 5 |
| 54 | 0x36 | 066 | 00110110 | 6 | 6 |
| 55 | 0x37 | 067 | 00110111 | 7 | 7 |
| 56 | 0x38 | 070 | 00111000 | 8 | 8 |
| 57 | 0x39 | 071 | 00111001 | 9 | 9 |
| 58 | 0x3A | 072 | 00111010 | : | : |
| 59 | 0x3B | 073 | 00111011 | ; | ; |
| 60 | 0x3C | 074 | 00111100 | < | < |
| 61 | 0x3D | 075 | 00111101 | = | = |
| 62 | 0x3E | 076 | 00111110 | > | > |
| 63 | 0x3F | 077 | 00111111 | ? | ? |
| 64 | 0x40 | 100 | 01000000 | @ | @ |
| 65 | 0x41 | 101 | 01000001 | A | A |
| 66 | 0x42 | 102 | 01000010 | B | B |
| 67 | 0x43 | 103 | 01000011 | C | C |
| 68 | 0x44 | 104 | 01000100 | D | D |
| 69 | 0x45 | 105 | 01000101 | E | E |
| 70 | 0x46 | 106 | 01000110 | F | F |
| 71 | 0x47 | 107 | 01000111 | G | G |
| 72 | 0x48 | 110 | 01001000 | H | H |
| 73 | 0x49 | 111 | 01001001 | I | I |
| 74 | 0x4A | 112 | 01001010 | J | J |
| 75 | 0x4B | 113 | 01001011 | K | K |
| 76 | 0x4C | 114 | 01001100 | L | L |
| 77 | 0x4D | 115 | 01001101 | M | M |
| 78 | 0x4E | 116 | 01001110 | N | N |
| 79 | 0x4F | 117 | 01001111 | O | O |
| 80 | 0x50 | 120 | 01010000 | P | P |
| 81 | 0x51 | 121 | 01010001 | Q | Q |
| 82 | 0x52 | 122 | 01010010 | R | R |
| 83 | 0x53 | 123 | 01010011 | S | S |
| 84 | 0x54 | 124 | 01010100 | T | T |
| 85 | 0x55 | 125 | 01010101 | U | U |
| 86 | 0x56 | 126 | 01010110 | V | V |
| 87 | 0x57 | 127 | 01010111 | W | W |
| 88 | 0x58 | 130 | 01011000 | X | X |
| 89 | 0x59 | 131 | 01011001 | Y | Y |
| 90 | 0x5A | 132 | 01011010 | Z | Z |
| 91 | 0x5B | 133 | 01011011 | [ | [ |
| 92 | 0x5C | 134 | 01011100 | \ | \ |
| 93 | 0x5D | 135 | 01011101 | ] | ] |
| 94 | 0x5E | 136 | 01011110 | ^ | ^ |
| 95 | 0x5F | 137 | 01011111 | _ | _ |
| 96 | 0x60 | 140 | 01100000 | ` | ` |
| 97 | 0x61 | 141 | 01100001 | a | a |
| 98 | 0x62 | 142 | 01100010 | b | b |
| 99 | 0x63 | 143 | 01100011 | c | c |
| 100 | 0x64 | 144 | 01100100 | d | d |
| 101 | 0x65 | 145 | 01100101 | e | e |
| 102 | 0x66 | 146 | 01100110 | f | f |
| 103 | 0x67 | 147 | 01100111 | g | g |
| 104 | 0x68 | 150 | 01101000 | h | h |
| 105 | 0x69 | 151 | 01101001 | i | i |
| 106 | 0x6A | 152 | 01101010 | j | j |
| 107 | 0x6B | 153 | 01101011 | k | k |
| 108 | 0x6C | 154 | 01101100 | l | l |
| 109 | 0x6D | 155 | 01101101 | m | m |
| 110 | 0x6E | 156 | 01101110 | n | n |
| 111 | 0x6F | 157 | 01101111 | o | o |
| 112 | 0x70 | 160 | 01110000 | p | p |
| 113 | 0x71 | 161 | 01110001 | q | q |
| 114 | 0x72 | 162 | 01110010 | r | r |
| 115 | 0x73 | 163 | 01110011 | s | s |
| 116 | 0x74 | 164 | 01110100 | t | t |
| 117 | 0x75 | 165 | 01110101 | u | u |
| 118 | 0x76 | 166 | 01110110 | v | v |
| 119 | 0x77 | 167 | 01110111 | w | w |
| 120 | 0x78 | 170 | 01111000 | x | x |
| 121 | 0x79 | 171 | 01111001 | y | y |
| 122 | 0x7A | 172 | 01111010 | z | z |
| 123 | 0x7B | 173 | 01111011 | { | { |
| 124 | 0x7C | 174 | 01111100 | | | | |
| 125 | 0x7D | 175 | 01111101 | } | } |
| 126 | 0x7E | 176 | 01111110 | ~ | ~ |
| 127 | 0x7F | 177 | 01111111 | DEL | DEL |
Showing 128 of 128 ASCII characters.
Quick Lookup
Type a character to see its ASCII code:
You need the hex code for the escape character. Or the decimal value for a carriage return. Or you are debugging a binary protocol and need to identify character 0x1B. An ASCII table is a reference you reach for constantly when working with low-level text processing, serial protocols, or encoding issues.
What Is ASCII?
ASCII (American Standard Code for Information Interchange) is a 7-bit character encoding standard published in 1963. It defines 128 characters: 33 non-printing control characters (0–31 and 127) and 95 printable characters (32–126, including space).
ASCII is the foundation of virtually all modern character encodings. UTF-8, the dominant encoding on the web, is backward-compatible with ASCII — the first 128 Unicode code points are identical to ASCII.
Character Categories
Control Characters (0–31, 127)
The first 32 ASCII codes and code 127 (DEL) are non-printing control characters. Originally designed for teleprinter control, many still have active roles:
| Dec | Hex | Abbr | Name | Modern Use |
|---|---|---|---|---|
| 0 | 00 | NUL | Null | String terminator in C |
| 9 | 09 | HT | Horizontal Tab | \t in source code |
| 10 | 0A | LF | Line Feed | \n — Unix line ending |
| 13 | 0D | CR | Carriage Return | \r — Windows line ending (with LF) |
| 27 | 1B | ESC | Escape | ANSI escape sequences for terminal colors |
| 127 | 7F | DEL | Delete | Backspace on many terminals |
Printable Characters (32–126)
| Range | Category | Characters |
|---|---|---|
| 32 | Space | (invisible but printable) |
| 48–57 | Digits | 0 1 2 3 4 5 6 7 8 9 |
| 65–90 | Uppercase | A B C … Z |
| 97–122 | Lowercase | a b c … z |
| 33–47, 58–64, 91–96, 123–126 | Symbols | ! ” # $ % & ’ ( ) * + , - . / : ; < = > ? @ [ \ ] ^ _ ` { |
Number System Representations
Each ASCII character can be represented in multiple number systems:
| System | Base | Example (Letter ‘A’) |
|---|---|---|
| Decimal | 10 | 65 |
| Hexadecimal | 16 | 0x41 |
| Octal | 8 | 0101 |
| Binary | 2 | 01000001 |
ASCII in Programming
String comparison relies on ASCII values. 'A' < 'Z' is true because 65 < 90. 'a' > 'A' is true because 97 > 65. This is why case-insensitive sorting requires explicit handling.
Character conversion. To convert uppercase to lowercase, add 32: 'A' (65) + 32 = 'a' (97). To check if a character is a digit: c >= 48 && c <= 57 (or c >= '0' && c <= '9').
Escape sequences. Control characters are represented in code as escape sequences: \n (LF, 10), \t (HT, 9), \r (CR, 13), \0 (NUL, 0), \x1B (ESC, 27).
ASCII vs. Unicode
ASCII defines 128 characters — enough for English but not for the world’s languages. Unicode extends this to over 149,000 characters across 161 scripts. UTF-8, the most common Unicode encoding, uses 1–4 bytes per character and is fully backward-compatible with ASCII: any valid ASCII text is also valid UTF-8.
Privacy
This tool is a static reference that runs entirely in your browser. No data is transmitted to any server.
Frequently Asked Questions
How many characters are in the ASCII table? ASCII defines exactly 128 characters (0–127): 33 non-printing control characters and 95 printable characters including space.
What is the difference between ASCII and UTF-8? ASCII uses 7 bits and defines 128 characters. UTF-8 is a variable-length encoding (1–4 bytes) that supports all Unicode characters. The first 128 UTF-8 characters are identical to ASCII, making them backward-compatible.
Why does ASCII start at 0, not 1? ASCII code 0 (NUL) serves as a string terminator in C and many protocols. Starting at 0 aligns with how computers address memory and is standard in computing.
What is the ASCII code for a newline? Line Feed (LF) is ASCII 10 (0x0A). Unix/Linux/macOS use LF alone as line endings. Windows uses CR+LF (13 + 10, or 0x0D 0x0A).
Can I search for a specific character? Yes. Use the search box to find characters by name, abbreviation, decimal value, or hex value. You can also filter by category (control, digit, letter, symbol).