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
72 101 108 108 111
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
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
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
TG we-Calculate Editorial Team. "ASCII Converter — Text to ASCII Code and Back." TG we-Calculate. 2026. https://we-calculate.com/calculator/ascii-converter.
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
@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?
