HandyTools Hub

ASCII Table

Browse all 128 ASCII characters with their codes

Dec Hex Oct Bin Char Name

ASCII is the character encoding underneath almost everything a computer does with text. This interactive reference lists all 128 ASCII characters with decimal, hexadecimal, octal, and binary values, so developers and students can find a code in seconds instead of digging through documentation.

How to Use

Scroll the full table or use the category filters to narrow it to control characters, digits, uppercase, lowercase, or punctuation. Each row shows the character, its name, and its value in four numeric bases. For example, A is decimal 65 (hex 41), a space is 32 (hex 20), and a newline is 10 (hex 0A).

What is ASCII?

ASCII — the American Standard Code for Information Interchange — was published in 1963, evolving from telegraph codes. It assigns a 7-bit number (0–127) to each character: codes 0–31 and 127 are control characters like TAB, LF, and ESC that once drove printers, while codes 32–126 are the printable characters on a keyboard. Unicode later kept its first 128 code points identical to ASCII, which is why this knowledge stays practical: UTF-8 files, HTTP headers, and most source code are ASCII at their core.

Features

  • Complete table of all 128 ASCII characters
  • Decimal, hexadecimal, octal, and binary values per character
  • Category filters: control, digits, uppercase, lowercase, punctuation
  • Official names for control characters (NUL, BEL, ESC, DEL)

Use Cases

  • Debugging text: Spot the control character breaking a parser, like CR (13) vs LF (10) line-ending mismatches.
  • Learning to code: Check the value behind ord() or charCodeAt().
  • Shell work: Find the octal or hex value for printf escape sequences.

Frequently Asked Questions

What is the difference between ASCII and Unicode?

ASCII defines 128 characters (0-127) using 7 bits per character. Unicode is a much larger standard that can represent over 143,000 characters from all writing systems. The first 128 Unicode code points are identical to ASCII, making ASCII a subset of Unicode.

What are ASCII control characters used for?

Control characters (0-31 and 127) were originally designed for controlling printers and teletype machines. Today, several are still widely used: TAB (9) for indentation, LF (10) for line feed, CR (13) for carriage return, ESC (27) for escape sequences, and DEL (127) for delete.

How do I find a character's ASCII code in programming?

In most programming languages: Python uses ord('A') (returns 65), JavaScript uses 'A'.charCodeAt(0), C/C++ can cast a char to int, and Rust uses 'A' as u8. Use this table as a quick reference without writing code.