T

Text Machine

Powerful text tools, in your browser

Text to ASCII Converter

Turn text into ASCII character codes and back again. Each character becomes its decimal code point — handy for debugging, data formats, or learning how computers store text — and it all runs in your browser.

Separator

Text input
ASCII codes output

Enter data above to see the converted result here.

How to use Text to ASCII Converter

  1. 1

    Choose a direction

    Use the toggle to pick Text to ASCII or ASCII to Text. The swap button moves your result into the input so you can convert it back the other way.

  2. 2

    Enter your data

    Type or paste text, or paste a list of decimal codes such as 72 105. The conversion runs automatically as you type.

  3. 3

    Pick a separator

    When encoding, choose whether the codes are separated by spaces or commas. Decoding accepts spaces, commas, and new lines in any mix.

  4. 4

    Copy the result

    Review the converted output and copy it to your clipboard, ready to paste wherever you need it.

Understanding ASCII Character Codes

What ASCII is

ASCII stands for the American Standard Code for Information Interchange. It is a character encoding standardized in the 1960s that assigns a unique number to each English letter, digit, punctuation mark, and a set of control signals. By agreeing on these numbers, different machines could exchange text and interpret it the same way, which is why ASCII became the foundation that nearly every later encoding built upon.

ASCII is a seven-bit code, so it defines exactly 128 values, numbered 0 through 127. This tool turns each character of your text into its decimal code number and can turn a list of code numbers back into text. Because the numbers are just numbers, the same character can also be written in binary or hexadecimal, but the decimal form shown here is often the easiest to read and reason about.

The structure of the ASCII table

The 128 codes fall into clear ranges. Codes 0 through 31, plus 127, are control characters — non-printing signals such as tab (9), line feed (10), and carriage return (13) — that were originally meant to control teleprinters and terminals rather than to display a glyph. Everything from 32 to 126 is a printable character you can actually see on screen.

Within the printable range the layout is deliberate. The space is 32, the digits 0 through 9 occupy 48 through 57, the uppercase letters A through Z run from 65 to 90, and the lowercase letters a through z run from 97 to 122, with punctuation filling the gaps. The orderly spacing is a feature: because the alphabet is contiguous, you can do arithmetic on letters, which is how case conversion and simple ciphers work under the hood.

Key code values worth memorizing

A handful of values anchor the whole table. Capital A is 65, so the rest of the uppercase alphabet follows by counting up: B is 66, C is 67, and Z is 90. Lowercase a is 97, exactly 32 more than uppercase A, and the lowercase alphabet follows the same way up to z at 122. The space character is 32, and the digit 0 is 48, so the digit 9 is 57.

That constant gap of 32 between an uppercase letter and its lowercase counterpart is the single most useful fact about ASCII. It means you can switch case purely by adding or subtracting 32: A (65) plus 32 is a (97). Likewise, the digit characters are offset from their numeric value by 48, so the character '7' has code 55, which is 48 plus 7 — a detail that matters when parsing numbers from text.

Worked example: encoding "Hi!"

Convert the three characters H, i, and the exclamation mark. H is an uppercase letter; counting from A at 65, H is the eighth letter, so its code is 72. The letter i is lowercase; counting from a at 97, i is the ninth letter, so its code is 105. The exclamation mark sits early in the punctuation range at 33.

So "Hi!" becomes the code list 72 105 33. Reading it back, 72 is in the uppercase range and lands on H, 105 is in the lowercase range and lands on i, and 33 is the exclamation mark, reconstructing the original. This tool lets you separate the codes with spaces or commas when encoding, and accepts spaces, commas, or new lines when decoding.

Beyond 127: extended and Unicode code points

Standard ASCII stops at 127, which leaves no room for accented letters, non-Latin scripts, or symbols. Older systems filled codes 128 through 255 with various "extended ASCII" sets, but those sets disagreed with one another, so the same number meant different characters on different machines. The modern solution is Unicode, which assigns a unique code point to every character in every writing system, with ASCII deliberately kept as its first 128 values for compatibility.

This tool follows Unicode for anything above 127, so it reports the true code point of any character and decodes any value from 0 up to 1114111, the top of the Unicode range. The accented é is code point 233, and the grinning-face emoji is code point 128512. That is why you may see large numbers for a single emoji — it simply has a high code point — and why decoding those numbers reproduces the exact character.

Formatting codes for decoding

When you paste code numbers to decode, write each one as a plain decimal integer and separate them however is convenient. Spaces, commas, and new lines all work, and you can mix them in the same input, so 72, 105 33 on one line and another code on the next all parse correctly. This flexibility makes it easy to paste codes copied from different sources without reformatting.

Leading zeros are harmless: 072 and 72 both decode to H, because the value is the same number. The main thing to avoid is a stray non-numeric character or a value outside the valid range, either of which produces a conversion error. Keep the entries as clean whole numbers between 0 and 1114111 and the decode will succeed every time.

ASCII, binary, and hexadecimal compared

ASCII codes, binary, and hexadecimal are three ways of writing the very same character numbers; they differ only in base. The letter H is 72 in decimal ASCII, 01001000 in binary (base 2), and 48 in hexadecimal (base 16). None of these is more "real" than the others — they are the identical value expressed in different notations, and you pick whichever your task calls for.

Decimal ASCII is the friendliest for humans and for quick mental math, which is why it appears in tutorials and in many data formats. Binary exposes the individual bits and suits low-level or educational work, while hexadecimal is compact and dominates byte dumps and color codes. Knowing that they are interchangeable lets you move between this tool and a binary or hex converter without losing any information.

Where ASCII conversion helps

Looking up character codes is a practical debugging skill. When text contains an invisible or surprising character — a non-breaking space, a smart quote, or a stray control code — converting it to its numeric code reveals exactly what it is, which a plain look at the screen cannot. It is also how you confirm that an encoding step preserved the characters you expected.

The conversion shows up in education, where mapping letters to numbers teaches how computers store text, and in puzzles and programming exercises that encode messages as number lists. It is equally useful when working with data formats or protocols that specify characters by their code value, letting you translate between human-readable text and the numeric form a machine expects.

Frequently asked questions

What is ASCII?
ASCII (American Standard Code for Information Interchange) is a character encoding that assigns a number to each letter, digit, and common symbol. For example, capital A is 65, lower-case a is 97, and the space character is 32. Storing text as these numbers is how computers have represented letters since the 1960s.
How does this converter handle emoji and accented letters?
Standard ASCII only defines codes 0 to 127, but this tool extends to the full Unicode range, so accented letters, emoji, and other symbols convert to their Unicode code points. For example, é becomes 233 and 😀 becomes 128512. Decoding accepts any code from 0 up to 1114111.
How should I format codes for decoding?
Enter each character code as a plain decimal number and separate them with spaces, commas, or new lines — you can mix separators freely. Leading zeros are fine, so 072 and 72 both decode to the letter H.
What is the difference between ASCII, binary, and hexadecimal?
They are three ways of writing the same character codes. ASCII shows the code in decimal (H is 72), binary shows it in base 2 as 01001000, and hexadecimal shows it in base 16 as 48. Use whichever your task calls for; the underlying numbers are identical.
Is my data uploaded to a server?
No. All conversion happens entirely in your browser. Your text is never uploaded, logged, or stored, so it stays completely private and the tool keeps working even when you are offline.

Related tools

Keep going with these handy tools

Text to Binary Converter

Text to Hex Converter

Morse Code Translator

NATO Phonetic Alphabet Translator

Braille Translator

Caesar Cipher