Numverto logo NUMVERTO
Published: 5 min read By
ascii character encoding reference table programming

ASCII Table — Complete Character Code Reference

Complete ASCII table with decimal, hexadecimal, and binary codes for all 128 characters. Includes printable characters, control codes, and practical usage examples.

Advertisement — Responsive Ad

Introduction

ASCII (American Standard Code for Information Interchange) is the foundational character encoding system used in computers. It assigns a unique numeric code to 128 characters including letters, digits, punctuation marks, and control characters. Every programmer, computer science student, and IT professional encounters ASCII when working with text data, serial communication, or debugging binary content.

This reference guide covers the full ASCII table, explains the encoding structure, and shows practical use cases.

What is ASCII?

ASCII uses 7 bits to represent 128 characters (codes 0–127). Each character maps to a fixed integer value. For example, uppercase ‘A’ is always 65, lowercase ‘a’ is always 97, and the digit ‘0’ is always 48 — regardless of which programming language or operating system you use.

ASCII Structure

RangeCategoryDescription
0–31Control charactersNon-printable (newline, tab, escape, etc.)
32SpaceBlank space character
33–47Punctuation! ” # $ % & ’ ( ) * + , - . /
48–57Digits0 through 9
58–64Punctuation: ; < = > ? @
65–90Uppercase lettersA through Z
91–96Punctuation[ \ ] ^ _ `
97–122Lowercase lettersa through z
123–126Punctuation{ | } ~
127ControlDEL (delete)

Key ASCII Values to Remember

CharacterDecimalHexBinary
Space32200100000
0 (digit)48300110000
9 (digit)57390111001
A65411000001
Z905A1011010
a97611100001
z1227A1111010
Newline (LF)100A0001010
Tab9090001001

Useful Patterns

Uppercase ↔ Lowercase

The difference between uppercase and lowercase letters is exactly 32 (one bit flip at position 5).

  • ‘A’ = 65, ‘a’ = 97 → difference = 32
  • To convert uppercase to lowercase: add 32
  • To convert lowercase to uppercase: subtract 32

Digit Character to Number

Character ‘0’ is code 48. To get the numeric value of any digit character, subtract 48.

  • ‘7’ = 55 → 55 − 48 = 7

Checking Character Type

  • Digit: code 48–57
  • Uppercase: code 65–90
  • Lowercase: code 97–122

Control Characters (0–31)

CodeAbbreviationMeaning
0NULNull (string terminator in C)
7BELBell (audible alert)
8BSBackspace
9HTHorizontal tab
10LFLine feed (newline on Unix)
13CRCarriage return
27ESCEscape

Extended ASCII (128–255)

Standard ASCII covers 0–127. Extended ASCII (codes 128–255) varies by system and code page (like Windows-1252, ISO-8859-1). Modern systems prefer Unicode (UTF-8) which is backward-compatible with standard ASCII for codes 0–127.

Practical Applications

  • Serial communication — UART protocols transmit ASCII bytes for text data
  • Programming — String manipulation, character comparisons, encoding/decoding
  • Debugging — Reading hex dumps of text files and network packets
  • CTF challenges — Cryptography puzzles often involve ASCII encoding
  • Embedded systems — LCD displays and keyboards use ASCII codes

Convert Online

Use the free ASCII Converter on Numverto to convert any text to ASCII codes (decimal, hex, binary, octal) or decode numbers back to characters. Also browse our complete ASCII Table page for a printable lookup reference.

Frequently Asked Questions

What is the ASCII code for ‘A’?

Uppercase ‘A’ has ASCII code 65 in decimal, 41 in hexadecimal, and 01000001 in binary.

How many characters does ASCII support?

Standard ASCII supports 128 characters (7-bit encoding, codes 0–127). Extended ASCII uses 8 bits for 256 characters, but the extended range varies by platform.

What is the difference between ASCII and Unicode?

ASCII encodes 128 characters using 7 bits. Unicode supports over 140,000 characters from all writing systems. UTF-8 (the most common Unicode encoding) is backward-compatible — the first 128 UTF-8 codes are identical to ASCII.

Why does ‘A’ have code 65 and not 1?

Codes 0–31 are reserved for control characters (like newline and tab), code 32 is space, and codes 33–64 are punctuation and digits. Uppercase letters begin at 65, with lowercase at 97 (offset by 32 for easy conversion).

How do I convert a string to ASCII codes manually?

Look up each character in the ASCII table and write its decimal (or hex) code. For “Hi”: H=72, i=105. Use the Numverto ASCII Converter to do this instantly for any string.

Advertisement — Responsive Ad

Share this article

Learn Faster with Numverto

Explore free number system converters, binary tools, EMI calculators, GST calculators, and educational guides.

About Numverto

Numverto logo

Numverto Editorial Team

Numverto publishes educational content about number systems, computer science concepts, binary arithmetic, financial calculations, EMI formulas, GST calculations, and practical learning resources for students and professionals.

About | Contact | Editorial Policy

Article Metadata

Tags: ascii, character encoding, reference table, programming

Last Updated: June 2026

Related Calculators

Advertisement — Responsive Ad

Related Articles

Popular Tools

View all 13 free tools → · Read tutorials · Number system guide