Tools
Complete ASCII Table
Look up every printable ASCII character (32-127) with its decimal, hexadecimal, octal and HTML entity values. Click to copy.
ASCII: the 1963 standard that still runs the internet
Originally designed for telegraph communication, ASCII defined how computers represent text in binary. More than 60 years later it remains the backbone of every modern encoding system. UTF-8, the standard of the web, is backward compatible with ASCII: any ASCII text is automatically valid UTF-8.
For developers, knowing the ASCII table speeds up debugging of encoding problems, helps in understanding communication protocols, makes regular expressions easier to work with and is essential for low-level string manipulation. This table lists the 96 printable characters with every useful representation.
Why understanding ASCII still matters
Protocols such as HTTP, SMTP, FTP and JSON are built on ASCII. HTTP headers must be plain ASCII, so values outside the 32-126 range need to be encoded. URLs only accept ASCII characters directly; everything else needs percent-encoding. Understanding this safe subset is fundamental when working with APIs and integrations.
In regular expressions, many patterns use ASCII ranges directly: [A-Z] matches codes 65-90, [a-z] matches 97-122, [0-9] matches 48-57. Knowing the decimal values of characters helps you build and read more complex expressions.
ASCII art and creativity within 95 characters
With only the 95 printable ASCII characters, digital artists created a form of visual expression that still lives on in terminal interfaces, code comments and hacker culture. Programs like figlet and banner turn text into ASCII art using characters of different "visual weights".
In code, ASCII art comments are used to mark important sections, create logos in configuration files and draw decorative borders in text files. Knowing the available characters makes it easier to create consistent patterns.
Frequently asked questions
What is ASCII?
ASCII (American Standard Code for Information Interchange) is a character encoding standard created in 1963. It uses 7 bits to represent 128 characters: uppercase and lowercase letters, digits, punctuation and control characters. It is the foundation of all modern encodings such as UTF-8.
Why does ASCII use only 128 characters?
The original ASCII standard uses 7 bits, which allow 2^7 = 128 combinations. The first 32 (0-31) are control characters (non-printable), 32 is space, and the remaining 95 (33-126) are printable characters. Code 127 is DEL. This limit reflects the computing resources of the time it was created.
What is the difference between ASCII and UTF-8?
ASCII is a subset of UTF-8. The first 128 UTF-8 characters are identical to ASCII, so any valid ASCII file is also valid UTF-8. The difference is that UTF-8 can represent more than a million Unicode characters using 1 to 4 bytes per character, covering every alphabet and emoji in the world.
What are ASCII control characters (0-31)?
The first 32 ASCII characters (0-31) are non-printable control characters, originally used to control telecommunication equipment. Some are still relevant: 9 is Tab (\t), 10 is Line Feed (\n, newline), 13 is Carriage Return (\r), 27 is Escape (\e).
How does ASCII help debug encoding problems?
Many encoding problems appear when a file saved as Latin-1 (ISO-8859-1) is read as UTF-8. Characters with a code above 127 (such as é, ñ, ü) have different representations in the two encodings. Knowing that ASCII only goes up to 127 helps you quickly tell which characters are 'safe' and which can cause problems across different systems.

