ASCII Converter

Free online ASCII converter. Convert text to ASCII codes or decode ASCII numbers back to characters. See decimal, hex, and binary values for each character.

Text
ASCII Codes
 

How to Use ASCII Converter

1

Enter Your Text

Type or paste text into the input panel. You can enter regular characters to get their ASCII codes, or a series of ASCII numbers to convert back to text.

2

Choose Direction

Click "Text to ASCII" to get the decimal ASCII codes for each character, or "ASCII to Text" to decode numbers back into characters.

3

Copy and Use

The result appears on the right. ASCII codes are separated by spaces for readability. Use them for debugging, programming, or learning about character encoding.

Examples

Text

Hello!

ASCII Codes

72 101 108 108 111 33

Frequently Asked Questions

What is ASCII?

ASCII (American Standard Code for Information Interchange) is a character encoding standard that maps 128 characters (letters, digits, symbols, and control characters) to numbers 0-127. It was developed in the 1960s and remains the foundation of modern text encoding — UTF-8 is backward-compatible with ASCII for the first 128 code points.

What's the difference between ASCII and Unicode?

ASCII only covers 128 characters (English letters, digits, basic symbols). Unicode covers over 140,000 characters from all writing systems. ASCII codes 0-127 are identical in Unicode (and UTF-8). Characters beyond ASCII (like Chinese, Arabic, emoji) don't have an ASCII code and will be shown as their Unicode code point instead.

Why would I need ASCII codes?

Knowing ASCII codes helps with: debugging serial/network protocols, understanding why "A" < "a" in string comparisons (65 vs 97), working with low-level file formats, writing character-based algorithms, and learning how computers represent text internally.

The ASCII Table in Practice

The ASCII table is organized into several groups: control characters (0-31), printable characters (32-126), and DEL (127). The layout isn't random — uppercase letters start at 65, lowercase at 97 (exactly 32 apart), digits at 48. This design makes common operations like case conversion trivial: just flip bit 5 (add or subtract 32).

Quick Reference

  • 48-57 — Digits 0-9
  • 65-90 — Uppercase A-Z
  • 97-122 — Lowercase a-z
  • 32 — Space
  • 10 — Line Feed (newline)
  • 13 — Carriage Return

Related Articles