Character encoding tool

Text to ASCII Converter

Convert each standard ASCII character into its decimal code from 0 through 127.

Text input

Enter ASCII text

ASCII 0–127
Up to 1,000 ASCII characters. Spaces, punctuation, and line breaks each have their own code.
Decimal code sequence

ASCII values

The ASCII codes will appear here

Enter text made of standard ASCII characters.

What is Text to ASCII ?

The text-to-ASCII calculator converts each character in an ASCII string into its decimal character value. For example, uppercase A becomes 65, lowercase a becomes 97 and a space becomes 32. Results remain in character order and are separated by spaces.

ASCII is a 7-bit character set with values 0 through 127. This page now rejects characters outside that range rather than showing the individual bytes of their UTF-8 encoding. Accented letters, emoji and most non-English scripts belong to Unicode and need a Unicode code-point or encoding tool instead.

How to Use This Calculator

  1. Enter up to 1,000 ASCII characters in the text area. Standard spaces, tabs, and line breaks are included as characters.
  2. Select Convert to ASCII.
  3. Read one decimal value for each character in the same order. Values are separated by spaces.
  4. Remember that spaces and punctuation have their own values. For example, a line feed is 10.

Only values in standard 7-bit ASCII (0 through 127) are accepted. Accented letters and emoji are rejected rather than being split into UTF-8 bytes. The converter does not parse numeric codes: typing “65” converts the characters 6 and 5.

Formula Used

For each character c, the result is its 7-bit ASCII code expressed as an unsigned decimal integer from 0 to 127. The mapping is a lookup defined by the character set, not a mathematical formula based on alphabet position.

Digits 0 through 9 occupy values 48 through 57, uppercase letters A through Z occupy 65 through 90, and lowercase letters a through z occupy 97 through 122. Printable space is 32. These regular ranges are useful for checking results, but punctuation occupies other assigned positions.

Variables Explained

Character or termDecimal ASCII value or meaning
Space32
048
A65
a97
DEL127, a nonprinting delete character.
UnicodeBroader character standard; characters outside ASCII are rejected here.

Worked Example

Enter Hello!. The uppercase H is 72. Lowercase e is 101, each l is 108, o is 111 and the exclamation mark is 33. The result is:

72 101 108 108 111 33

Changing the first character to lowercase produces 104 instead of 72. Adding a space and A appends 32 65. These values identify characters; they are not the visible digits that must appear when data is stored. A system commonly stores each ASCII value in a byte whose high bit is zero.

Why Use This Calculator?

The output lists each character’s decimal ASCII code in order. It is useful for learning character mappings or checking a short text sequence, but it does not encrypt or hash the text and can be reversed easily.

ASCII includes control characters as well as printable characters. A line feed is 10, a tab is 9, and carriage return is 13. The text area allows line breaks, but line-ending conventions differ between systems; inspect file bytes directly when exact CR/LF behavior matters.

This page reports decimal values only. Decimal 65, hexadecimal 41, and binary 1000001 all identify A. Unicode characters outside ASCII, including accented letters and emoji, require a Unicode-aware converter.

Common Mistakes

  • Expecting accented letters or emoji to have one ASCII value.
  • Assuming uppercase and lowercase letters share a value.
  • Forgetting that spaces create output values.
  • Typing decimal codes and expecting them to be decoded.
  • Confusing decimal 65 with hexadecimal 65.
  • Treating character codes as encryption.
  • Calling arbitrary UTF-8 bytes ASCII characters.

Frequently Asked Questions

What range does ASCII use?

Standard 7-bit ASCII uses decimal values 0 through 127.

Why is lowercase a different from uppercase?

They are distinct assigned characters: A is 65 and a is 97.

What value represents a space?

A normal ASCII space is decimal 32.

Can I enter emoji?

No. Emoji are Unicode characters outside the ASCII range.

Does this decode decimal values into text?

No. It converts text to decimal values; an ASCII-to-text tool performs the reverse task.

Is ASCII output encrypted?

No. It is a public character mapping and is immediately reversible.

Why does another tool show hexadecimal?

Character values can be written in several number bases. This page chooses decimal.

Sources & References