ASCII Table
Every ASCII character with its decimal, hex, octal, binary and HTML code, and a lookup for any character.
Codes in any base — 65, 0x41, 0b1000001, 0o101 or A — and names like newline, DEL or question mark. Beyond 127, any Unicode code point comes back with its UTF-8 bytes.
Every character, 0 to 127
| Dec | Hex | Char | Name | Description |
|---|---|---|---|---|
| 0 | 00 | ^@ | Null · NUL | Nothing at all: a byte of zero. C ends its strings with it. |
| 1 | 01 | ^A | Start of Heading · SOH | Start of heading: opens the header of a transmission. |
| 2 | 02 | ^B | Start of Text · STX | Start of text: closes the header and opens the message. |
| 3 | 03 | ^C | End of Text · ETX | End of text: closes the message. Ctrl+C sends it to interrupt a program. |
| 4 | 04 | ^D | End of Transmission · EOT | End of transmission: there is no more. Ctrl+D ends shell input the same way. |
| 5 | 05 | ^E | Enquiry · ENQ | Enquiry: asks the far end to answer with its identity. |
| 6 | 06 | ^F | Acknowledge · ACK | Acknowledge: received, go ahead. |
| 7 | 07 | ^G | Bell · BEL | Bell: makes the terminal beep. |
| 8 | 08 | ^H | Backspace · BS | Backspace: moves the cursor one place back. |
| 9 | 09 | ^I | Horizontal Tab · HT | Horizontal tab: jumps to the next tab stop. It is \t in strings. |
| 10 | 0A | ^J | Line Feed · LF | Line feed: down one line. The newline of Unix text, and \n in strings. |
| 11 | 0B | ^K | Vertical Tab · VT | Vertical tab: down to the next vertical tab stop. It is \v in strings. |
| 12 | 0C | ^L | Form Feed · FF | Form feed: pushes a fresh page. It is \f in strings. |
| 13 | 0D | ^M | Carriage Return · CR | Carriage return: back to the start of the line. Windows ends its lines with CR then LF. |
| 14 | 0E | ^N | Shift Out · SO | Shift out: switches to the alternative character set until Shift In arrives. |
| 15 | 0F | ^O | Shift In · SI | Shift in: switches back to the standard character set. |
| 16 | 10 | ^P | Data Link Escape · DLE | Data link escape: the next byte is a link command, not data. |
| 17 | 11 | ^Q | Device Control 1 · DC1 | Device control 1: XON — resumes output that XOFF paused. Ctrl+Q. |
| 18 | 12 | ^R | Device Control 2 · DC2 | Device control 2: in paper-tape days, switched the reader back on. |
| 19 | 13 | ^S | Device Control 3 · DC3 | Device control 3: XOFF — pauses output until XON arrives. Ctrl+S still does it in terminals. |
| 20 | 14 | ^T | Device Control 4 · DC4 | Device control 4: in paper-tape days, switched the reader off. |
| 21 | 15 | ^U | Negative Acknowledge · NAK | Negative acknowledge: received, but wrong — send it again. |
| 22 | 16 | ^V | Synchronous Idle · SYN | Synchronous idle: a filler that keeps a synchronous line in step. |
| 23 | 17 | ^W | End of Transmission Block · ETB | End of transmission block: a block of data ends here. |
| 24 | 18 | ^X | Cancel · CAN | Cancel: throws away what was sent since the last block. |
| 25 | 19 | ^Y | End of Medium · EM | End of medium: the tape or paper has run out. |
| 26 | 1A | ^Z | Substitute · SUB | Substitute: stands in for a character that arrived damaged. Ctrl+Z ends input on Windows. |
| 27 | 1B | ^[ | Escape · ESC | Escape: what follows is a command, not text. Ctrl+[ is the Esc key’s code. |
| 28 | 1C | ^\ | File Separator · FS | File separator: divides files in a stream of data. |
| 29 | 1D | ^] | Group Separator · GS | Group separator: divides groups of records. |
| 30 | 1E | ^^ | Record Separator · RS | Record separator: divides records within a group. |
| 31 | 1F | ^_ | Unit Separator · US | Unit separator: divides fields within a record. |
| 32 | 20 | ␣ | Space · SP | The space between words. Invisible, but it takes a byte like any other character. |
| 33 | 21 | ! | Exclamation mark | |
| 34 | 22 | " | Quotation mark | |
| 35 | 23 | # | Number sign | |
| 36 | 24 | $ | Dollar sign | |
| 37 | 25 | % | Percent sign | |
| 38 | 26 | & | Ampersand | |
| 39 | 27 | ' | Apostrophe | |
| 40 | 28 | ( | Left parenthesis | |
| 41 | 29 | ) | Right parenthesis | |
| 42 | 2A | * | Asterisk | |
| 43 | 2B | + | Plus sign | |
| 44 | 2C | , | Comma | |
| 45 | 2D | - | Hyphen | |
| 46 | 2E | . | Full stop | |
| 47 | 2F | / | Solidus | |
| 48 | 30 | 0 | Digit zero | |
| 49 | 31 | 1 | Digit one | |
| 50 | 32 | 2 | Digit two | |
| 51 | 33 | 3 | Digit three | |
| 52 | 34 | 4 | Digit four | |
| 53 | 35 | 5 | Digit five | |
| 54 | 36 | 6 | Digit six | |
| 55 | 37 | 7 | Digit seven | |
| 56 | 38 | 8 | Digit eight | |
| 57 | 39 | 9 | Digit nine | |
| 58 | 3A | : | Colon | |
| 59 | 3B | ; | Semicolon | |
| 60 | 3C | < | Less-than sign | |
| 61 | 3D | = | Equals sign | |
| 62 | 3E | > | Greater-than sign | |
| 63 | 3F | ? | Question mark | |
| 64 | 40 | @ | Commercial at | |
| 65 | 41 | A | Capital A | |
| 66 | 42 | B | Capital B | |
| 67 | 43 | C | Capital C | |
| 68 | 44 | D | Capital D | |
| 69 | 45 | E | Capital E | |
| 70 | 46 | F | Capital F | |
| 71 | 47 | G | Capital G | |
| 72 | 48 | H | Capital H | |
| 73 | 49 | I | Capital I | |
| 74 | 4A | J | Capital J | |
| 75 | 4B | K | Capital K | |
| 76 | 4C | L | Capital L | |
| 77 | 4D | M | Capital M | |
| 78 | 4E | N | Capital N | |
| 79 | 4F | O | Capital O | |
| 80 | 50 | P | Capital P | |
| 81 | 51 | Q | Capital Q | |
| 82 | 52 | R | Capital R | |
| 83 | 53 | S | Capital S | |
| 84 | 54 | T | Capital T | |
| 85 | 55 | U | Capital U | |
| 86 | 56 | V | Capital V | |
| 87 | 57 | W | Capital W | |
| 88 | 58 | X | Capital X | |
| 89 | 59 | Y | Capital Y | |
| 90 | 5A | Z | Capital Z | |
| 91 | 5B | [ | Left square bracket | |
| 92 | 5C | \ | Backslash | |
| 93 | 5D | ] | Right square bracket | |
| 94 | 5E | ^ | Circumflex accent | |
| 95 | 5F | _ | Underscore | |
| 96 | 60 | ` | Grave accent | |
| 97 | 61 | a | Small a | |
| 98 | 62 | b | Small b | |
| 99 | 63 | c | Small c | |
| 100 | 64 | d | Small d | |
| 101 | 65 | e | Small e | |
| 102 | 66 | f | Small f | |
| 103 | 67 | g | Small g | |
| 104 | 68 | h | Small h | |
| 105 | 69 | i | Small i | |
| 106 | 6A | j | Small j | |
| 107 | 6B | k | Small k | |
| 108 | 6C | l | Small l | |
| 109 | 6D | m | Small m | |
| 110 | 6E | n | Small n | |
| 111 | 6F | o | Small o | |
| 112 | 70 | p | Small p | |
| 113 | 71 | q | Small q | |
| 114 | 72 | r | Small r | |
| 115 | 73 | s | Small s | |
| 116 | 74 | t | Small t | |
| 117 | 75 | u | Small u | |
| 118 | 76 | v | Small v | |
| 119 | 77 | w | Small w | |
| 120 | 78 | x | Small x | |
| 121 | 79 | y | Small y | |
| 122 | 7A | z | Small z | |
| 123 | 7B | { | Left curly bracket | |
| 124 | 7C | | | Vertical bar | |
| 125 | 7D | } | Right curly bracket | |
| 126 | 7E | ~ | Tilde | |
| 127 | 7F | ^? | Delete · DEL | Delete: in paper-tape days it punched every hole to erase a character. Now it erases. |
Codes 0–31 and 127 are the control characters: they print nothing, so the table shows their caret notation and abbreviation instead. Codes 128 to 255 are not ASCII at all — look one up above and it arrives as a Unicode code point with its UTF-8 bytes.
More in the yard
- Base64 Encoder & DecoderEncode text to Base64 and decode it back, in the standard or URL-safe alphabet, without your text leaving the page.
- Bit FlipFlip bits until the board makes the target number: twelve levels from place values to hex, masks and shifts.
- Case ConverterConvert text between camelCase, PascalCase, snake_case, kebab-case, Title Case and more, and make a URL slug.
- chmod CalculatorConvert Unix permissions between octal and symbolic notation, special bits included.
- CIDR & Subnet CalculatorWork out what an IPv4 or IPv6 block covers, split it into subnets, and check whether an address is inside it.
- Code TypingA typing test with real code instead of prose: ten snippets in ten languages, brackets, quotes and all.
- Color Converter & Contrast CheckerConvert a colour between HEX, RGB, HSL and OKLCH, and check two colours against WCAG.
- Cron BuilderRead and write cron expressions in plain English, with the next run times in any timezone.
- CSS SelectorsWrite one CSS selector that picks exactly the elements a level highlights, in as few characters as you can.
- CSV ↔ JSON ConverterConvert between CSV and JSON: RFC 4180 quoting, an auto-detected delimiter, typed values, and a preview of the table.
- Data Size ConverterConvert bits, bytes, kB and MB against KiB, MiB and GiB exactly, and time a download.
- Date CalculatorCount the days between two dates, and add or subtract days, weeks, months and years.
- Hash GeneratorHash text with MD5, SHA-1, SHA-256, SHA-384 and SHA-512 at once, and check a hash against it.
- Hex Color GameSee a colour, guess its hex code: ten levels from greys to near-miss pairs, judged by CIEDE2000.
- HTML Entity Encoder & DecoderEscape text into HTML entities and read them back, named where a name exists and numeric otherwise.
- HTTP Status CodesLook up any HTTP status code: what it means, when to use it, and what clients do with it.
- JSON Formatter & ValidatorFormat, minify and check JSON, and see the exact line and column where it breaks.
- JSON ↔ YAML ConverterConvert between JSON and YAML: anchors resolved, multi-document files handled, and output that round-trips.
- JWT DecoderDecode a JSON Web Token in your browser and read its header, claims and expiry in plain words.
- Lorem Ipsum GeneratorGenerate classic Lorem Ipsum or developer-flavoured filler, by the paragraph, sentence or word.
- Markdown Editor & PreviewWrite Markdown, see it rendered, and copy the HTML.
- Number Base ConverterConvert a number between binary, octal, decimal, hex and any base from 2 to 36, however big it is.
- Password GeneratorMake strong passwords and passphrases from your browser’s own randomness, and check how strong a password is.
- PX to REM ConverterConvert px, rem, em, pt and % in both directions, at any root font size.
- QR Code GeneratorMake a QR code for a link, Wi-Fi, an email or a phone number, and download it as SVG or PNG.
- Regex CrosswordA crossword whose clues are regular expressions: fill the grid so every row and every column matches its pattern.
- Regex TrainerLearn regular expressions one level at a time: match one list, skip the other, in as few characters as you can.
- Shell PipesBuild Unix pipelines that turn a log, a CSV or a word list into the target output, in as few characters as you can.
- SQL DetectiveSolve a yard mystery with SQL: ten levels of queries against a small database, in as few characters as you can.
- SQL FormatterFormat SQL for reading, or minify it, in the dialect you use.
- String Escape & UnescapeEscape and unescape strings for JSON, JavaScript, Java, C#, Python, SQL, regex, the shell and CSV.
- Text to Binary ConverterConvert text to binary, hex, decimal or octal bytes, and back — UTF-8, UTF-16 or ASCII, without leaving the page.
- Diff CheckerCompare two texts line by line, word by word or character by character, and copy the unified diff.
- Time Zone ConverterConvert a date and time between time zones, and see it in several at once.
- Unix Timestamp ConverterTurn Unix timestamps into dates and back, in any timezone.
- URL Encoder & DecoderPercent-encode text for URLs, decode it back, and take a URL apart into its pieces.
- User Agent ParserRead a User-Agent string: browser, engine, operating system, device, and whether it is a known crawler.
- UUID Generator & DecoderGenerate version 4 and 7 UUIDs, or take any UUID apart: its version, its variant, and when a time-based one was made.
- Word CounterCount words, characters, sentences and paragraphs as you type, with reading and speaking time.
- XML Formatter & ValidatorFormat, minify and check XML, and point at the exact spot where it breaks.