ASCII Converter

Convert text to ASCII codes or ASCII codes back to text.

ASCII is the fundamental character encoding that maps every English letter, digit, and symbol to a numeric value between 0 and 127. This converter translates text to ASCII decimal, hexadecimal, or binary codes and back — essential for debugging, encoding work, and understanding how computers represent text.

Your result will appear here...

How to Convert Between Text and ASCII

  1. Enter text or ASCII codes — type the text you want to convert, or paste ASCII code values.
  2. Select the conversion direction — choose text-to-ASCII or ASCII-to-text.
  3. Click Convert — the tool instantly shows the corresponding ASCII values or characters.
  4. Copy the result — use the output in your code, documentation, or debugging work.

Worked Example

The word Hi! converts as follows:

CharDecimalHexBinary
H724801001000
i1056901101001
!332100100001

So Hi! → 72 105 33 in decimal, 48 69 21 in hex, or 01001000 01101001 00100001 in binary. Uppercase and lowercase letters differ by exactly 32 (bit 5): A is 65, a is 97.

Printable ASCII Table (32–126)

">Char">Char">Char">">
DecHexChar
3220space563888050P10468h
3321!573998151Q10569i
3422"583A:8252R1066Aj
3523#593B;8353S1076Bk
3624$603C<8454T1086Cl
3725%613D=8555U1096Dm
3826&623E>8656V1106En
3927'633F?8757W1116Fo
4028(6440@8858X11270p
4129)6541A8959Y11371q
422A*6642B905AZ11472r
432B+6743C915B[11573s
442C,6844D925C\11674t
452D-6945E935D]11775u
462E.7046F945E^11876v
472F/7147G955F_11977w
483007248H9660`12078x
493117349I9761a12179y
50322744AJ9862b1227Az
51333754BK9963c1237B{
52344764CL10064d1247C|
53355774DM10165e1257D}
54366784EN10266f1267E~
55377794FO10367g

Codes 0–31 and 127 are control characters (newline = 10, carriage return = 13, tab = 9). Codes above 127 are not ASCII — they belong to extended encodings like UTF-8; this tool handles those too via Unicode code points.

Frequently Asked Questions

What is ASCII? ▼
ASCII (American Standard Code for Information Interchange) is a character encoding standard that assigns numbers 0–127 to letters, digits, punctuation, and control characters. For example, uppercase "A" is 65, lowercase "a" is 97, and the space character is 32. It was developed in the 1960s and remains the foundation of modern text encoding.
What is the difference between ASCII and Unicode? ▼
ASCII covers only 128 characters (English letters, digits, and basic symbols). Unicode extends this to over 149,000 characters, including every world script, emoji, and symbol. The first 128 Unicode code points are identical to ASCII, making ASCII a subset of Unicode.
How do I convert a character to its ASCII code? ▼
Each printable ASCII character has a decimal value: A=65, B=66, ... Z=90, a=97, b=98, ... z=122, 0=48, 1=49, ... 9=57. The space character is 32. This tool automates the conversion for entire strings at once.
What are ASCII control characters? ▼
ASCII codes 0–31 and 127 are control characters — non-printable characters used for text formatting and device communication. Common examples: 0 (NULL), 9 (Tab), 10 (Line Feed/newline), 13 (Carriage Return), and 27 (Escape). They are rarely visible but essential in data processing.
Where is ASCII used in programming? ▼
ASCII is used in string manipulation, network protocols, file formats, encryption algorithms, and debugging. Comparing ASCII values enables case conversion, sorting, and validation. Many programming languages provide functions like charCodeAt() (JavaScript) or ord() (Python) to work with ASCII values directly.
Is my text stored anywhere? ▼
No. All conversions happen in your browser. No text data is sent to any server.