TontonTools

Text to ASCII

Convert text to ASCII codes — every character becomes its decimal number.

100% Free No signup Privacy-friendly Binary & Number Tools
Updated Sep 2026

Share X / Twitter Facebook LinkedIn WhatsApp

How to use Text to ASCII

  1. Type or paste your text into the input box.
  2. Read the codes instantly — one decimal number per character: "Cat" → 67 97 116.
  3. Spot the patterns: uppercase runs 65–90, lowercase 97–122, digits 48–57, space is 32.
  4. Click “Copy result” to use the codes in code, puzzles or documentation.

What is Text to ASCII?

A text to ASCII converter shows the numeric code behind each character of your text, in ordinary decimal: A is 65, a is 97, a space is 32, so "Hi" becomes 72 105. ASCII — the American Standard Code for Information Interchange, from 1963 — assigned codes 0–127 to English letters, digits, punctuation and control characters, and those assignments still anchor every modern encoding.

The layout is full of deliberate design: digits 0–9 are codes 48–57 (subtract 48 to get the digit's value), and upper/lowercase pairs differ by exactly 32 — one bit — which is why case-insensitive comparison is cheap for computers.

About the Text to ASCII

Type or paste text and each character's decimal code appears instantly, space-separated. Characters beyond classic ASCII show their full Unicode code point (é → 233, € → 8364), since Unicode extends the same numbering upward.

Programmers use it to check what charCodeAt() or ord() will return, to debug off-by-one string bugs and comparison quirks (why "Z" < "a" — because 90 < 97), and to build or grade encoding exercises. Puzzle makers use decimal-coded messages as a gentler cousin of binary ones.

Conversion is live and local to your browser. ASCII to Text decodes the other direction; Text to Hex and Text to Binary show the same codes in other bases.

Frequently Asked Questions

Uppercase A–Z are 65–90; lowercase a–z are 97–122. Each pair differs by 32, so toggling one bit switches case — a deliberate design feature of ASCII.
Space is 32; line feed (\n) is 10 and carriage return (\r) is 13. Codes below 32 are control characters — invisible instructions rather than printable symbols.
Code 0 is the NUL control character. Printable digits start at 48, chosen so a digit's value is its code minus 48 — an arithmetic convenience still used in parsing code today.
They're beyond ASCII's 0–127, so the tool shows their Unicode code point: é → 233, 😀 → 128512. Unicode deliberately kept ASCII's numbering for its first 128 codes.
Byte-order comparison uses the codes: Z is 90, a is 97, and 90 < 97. Case-insensitive sorting has to normalize case first — exactly the kind of bug this converter makes visible.

Learn more

What Is ASCII? Understanding Character Codes

ASCII is how computers turn letters into numbers. Here is what it is, why it matters, and how it relates to Unicode.

Read the guide

We use cookies for analytics and to keep the tools free via ads. See our Privacy Policy.