ASCII Table

Explore the complete ASCII character table with decimal, hexadecimal, and binary values. A quick reference for programmers and developers.

Dec Hex Char Binary

About ASCII

ASCII (American Standard Code for Information Interchange) is a character encoding standard that was developed in the 1960s. It was one of the first widely adopted character encoding schemes and served as the foundation for many subsequent encoding standards. ASCII assigns a unique 7-bit binary number to 128 characters, including English letters (uppercase and lowercase), numbers, punctuation marks, and control characters.

Technical Details of ASCII Encoding

Each ASCII character is represented by a 7-bit integer, meaning there are 2^7 = 128 possible characters. For example, the uppercase letter 'A' is represented by the decimal value 65, which is 41 in hexadecimal and 01000001 in binary. The first 32 characters (0-31) are control characters, used for non-printable actions like carriage return or tab. The remaining characters are printable characters.

Evolution to Unicode

While ASCII was sufficient for English, it lacked support for characters from other languages, special symbols, and emojis. This led to the development of Unicode, a much larger character set that aims to include every character from every language. ASCII is fully compatible with Unicode, as the first 128 characters of Unicode are identical to ASCII.

Common Questions

What are control characters in ASCII?

Control characters (ASCII codes 0-31) are non-printable characters that were originally used to control hardware devices like printers. Examples include NULL (0), Start of Text (2), End of Transmission (4), Line Feed (10), and Carriage Return (13).

Why is ASCII still relevant today?

ASCII remains relevant because it forms the fundamental basis for text representation in computing. Even with the widespread adoption of Unicode, the first 128 characters of Unicode are identical to ASCII, ensuring backward compatibility and continued use in many low-level systems and protocols.

Can I convert text to ASCII codes and vice-versa?

Yes, you can convert text to its ASCII decimal, hexadecimal, or binary representations, and convert these codes back to characters. This is a common operation in programming and data manipulation, often used for debugging or understanding data formats.

Related Tools