Beginner

ASCII Converter — Text to ASCII Code and Back

Convert any text string to its ASCII decimal codes — plus hex and binary equivalents — or paste a sequence of ASCII codes to decode them back to text. Uses the standard 7-bit ASCII table (characters 0–127).

Conversion direction

ASCII decimal codes

72 101 108 108 111

Characters / codes
5
Lowest code
72
Highest code
111
Hexadecimal
48 65 6C 6C 6F
Binary (8-bit)
01001000 01100101 01101100 01101100 01101111
015.931.847.663.579.495.3111.112772101108108111Character positions on the ASCII table (0–127)
Results are estimates for general information only and are not professional advice — always verify important results independently before relying on them. Read the full disclaimer.
Quick answer

How does this calculator work?

Each character in standard ASCII maps to a decimal integer 0–127 (e.g. "A"=65, "a"=97, "0"=48). Paste text to see the decimal, hex and binary codes for each character, or enter codes to decode them back to text.

Formula
ASCII code = Unicode code point of the character (for standard ASCII, values 0–127)
How this is calculated

ASCII (American Standard Code for Information Interchange) is a 7-bit character encoding standard that maps 128 characters — control codes (0–31), printable symbols (32–126), and DEL (127) — to integers. Every uppercase letter, lowercase letter, digit and common punctuation mark has a unique decimal code: "A" is 65, "a" is 97, "0" is 48, and so on.

To convert text to ASCII, the calculator reads each character and returns its Unicode code point, which matches the standard ASCII value for all characters in the 0–127 range. It also shows the equivalent hexadecimal (base-16) and 8-bit binary representations of each code, because programmers often need all three formats.

To convert ASCII codes back to text, enter the decimal values separated by spaces or commas (all must be in the range 0–127) and the calculator builds the corresponding string using String.fromCharCode. Extended ASCII (128–255) and full Unicode are outside the standard 7-bit table and are not supported in this converter.

Frequently asked questions

An ASCII code is a number from 0 to 127 that represents a character in the ASCII standard. For example, the letter "A" is 65, "a" is 97, the digit "1" is 49, and a space is 32.

Uppercase letters (A–Z) are assigned codes 65–90 and lowercase letters (a–z) are assigned codes 97–122. The 32-unit gap means you can toggle case by adding or subtracting 32, or by flipping bit 5 in the binary representation.

ASCII covers only 128 characters (0–127) and was designed for English text. Unicode is a superset that covers over 140,000 characters from all the world's writing systems. The first 128 Unicode code points are identical to ASCII, so any valid ASCII text is also valid UTF-8 Unicode.

Also known as

text to ascii code converter
ascii to text decoder
character code converter
ascii decimal converter online
ascii table lookup tool
string to ascii numbers
ascii hex binary converter

APA

TG we-Calculate Editorial Team. (2026). ASCII Converter — Text to ASCII Code and Back [Online calculator]. TG we-Calculate. https://we-calculate.com/calculator/ascii-converter

Chicago

TG we-Calculate Editorial Team. "ASCII Converter — Text to ASCII Code and Back." TG we-Calculate. 2026. https://we-calculate.com/calculator/ascii-converter.

IEEE

TG we-Calculate Editorial Team, "ASCII Converter — Text to ASCII Code and Back," TG we-Calculate, 2026. [Online]. Available: https://we-calculate.com/calculator/ascii-converter

BibTeX

@misc{wecalculate_ascii_converter, title = {ASCII Converter — Text to ASCII Code and Back}, author = {{TG we-Calculate Editorial Team}}, howpublished = {\url{https://we-calculate.com/calculator/ascii-converter}}, year = {2026}, note = {TG we-Calculate} }

Did this calculator help you?