ta

Text to ASCII

✓ Free & no signup 🔒 Runs 100% in your browser Updated 2026-11-25 Binary Converter Tools

Every character on your keyboard is secretly a number, and knowing those numbers unlocks a surprising range of practical work: building escape sequences, parsing byte-oriented protocols, writing encoding tests, and understanding what actually travels down a wire when you send a message. This tool converts your text into its decimal character codes, space-separated, updating live on every keystroke and running entirely in your browser with no uploads, no signup, and no storage of what you paste.

Type the word Key and the output reads 75 101 121: K is 75, e is 101, y is 121. Punctuation converts too, so Hi! becomes 72 105 33. Digits convert as their characters, not their values: the text 42 becomes 52 50, because the character 4 has code 52 and the character 2 has code 50. That characters-versus-values distinction is the single most common point of confusion, and this page leans into it deliberately.

One scope note before the details: this tool follows the ASCII layer, meaning it reports the decimal values of your characters as they exist in the Unicode table. For the 128 classic ASCII characters that is exactly the ASCII code. For anything beyond English, the code is the Unicode code point, and its UTF-8 encoding takes multiple bytes, which the FAQ section explains in full.

What Is the ASCII Table?

ASCII, the American Standard Code for Information Interchange, was standardized in the 1960s and assigns the numbers 0 through 127 to English letters, digits, punctuation, and control codes. The layout is not random; it was designed to make common manipulations cheap in hardware. Capital letters occupy 65 through 90, lowercase letters occupy 97 through 122, and the gap between any letter's two cases is exactly 32, which is a single bit flip: A is 65, a is 97, and 65 in binary is 01000001 versus 97 as 01100001.

Digits are equally systematic: the characters 0 through 9 are codes 48 through 57, so subtracting 48 turns a digit character into its numeric value. Punctuation fills the ranges around them, with the space at 32. Control codes occupy 0 through 31 plus 127: the carriage return is 13, line feed is 10, tab is 9, and the escape character is 27. These invisible codes still run the world, framing lines in text files and terminating commands in terminals.

CharacterDecimal codeCategory
A65Uppercase letters, 65 to 90
b98Lowercase letters, 97 to 122
755Digit characters, 48 to 57
space32Whitespace
?63Punctuation
LF (line break)10Control code
ESC27Control code

How to Use This Tool (Step by Step)

  1. Paste or type your text into the input area. The codes appear live, space-separated, one number per character.
  2. Watch for the characters-versus-values rule: the text 100 produces 49 48 48, three codes for three digit characters.
  3. Copy the output with one click for use in code, documentation, or homework.
  4. To go the other direction, the paired ascii-to-text tool turns a code list back into characters, and it accepts the same space or comma separated format.
  5. If an entry in the reverse direction is out of range, that tool reports the specific invalid code rather than skipping it.

Common Use Cases

  • Programming escape sequences: when you need to build a control sequence by hand, knowing that escape is 27 and that a terminal bell is code 7 lets you construct and read sequences like 27 91 for the CSI introducer used in ANSI terminal codes.
  • Protocol debugging: many network tools print traffic as decimal byte lists; converting expected text to codes lets you compare directly against the capture without guessing.
  • Teaching and coursework: the ASCII table is a fixture of CS education, and live conversion makes abstract homework concrete: your initials, your house number, and your favorite emoji all become numbers you can inspect.
  • Validation logic: writing a parser that accepts only certain characters? Codes 48 to 57 for digits, 65 to 90 and 97 to 122 for letters define the ranges by number, and this tool confirms the boundaries.
  • Puzzle design: escape-room and CTF puzzles hide messages as code lists; generating them here takes seconds and guarantees correctness.

How It Works Internally

For each character in your input, the tool obtains its numeric code using the browser's character model, where every character is a Unicode code point. For the ASCII range, 0 to 127, the result matches the historical ASCII table exactly, because Unicode deliberately preserved those assignments. The output is the list of codes joined by spaces, in input order, with one code per character including spaces and punctuation.

A worked chain shows the whole path: the text Net is N as 78, e as 101, t as 116. In binary those codes are 01001110, 01100101, and 01110100, which are precisely the bytes a machine would store or transmit. Decimal codes are thus the human-friendly middle layer between characters and the bits underneath, and the site's text-to-binary tool runs the same pipeline one step further.

What About Characters Above 127?

Honest scoping matters here, because the term "ASCII" is often used loosely. The classic table stops at 127. Characters beyond it, like é, ñ, or any emoji, have Unicode code points in the thousands: é is 233, the euro sign is 8364, and the grinning emoji is 128512. This tool reports those code points, which is the modern, correct numbering. But be aware that when such a character is stored or transmitted, it is encoded in UTF-8 as multiple bytes: é becomes the two bytes 195 and 169, and the emoji becomes four bytes starting 240. If you feed this tool's output for non-English characters into a byte-level system expecting single bytes, check the byte-level converters on this site instead, since they show the actual multi-byte UTF-8 encoding.

Tips and Best Practices

  • Anchor your memory with three values: A as 65, a as 97, and 0 as 48. From those, every letter and digit code is within easy mental reach using the fixed offsets of 32 and 48.
  • Use the case-flip trick: adding or subtracting 32 converts between letter cases, which is how the classic toUpper and toLower routines worked before libraries took over.
  • Round-trip your output: paste the code list into ascii-to-text and confirm the original text returns exactly, especially when control characters or trailing spaces are involved.
  • Label invisible codes in your notes: 9, 10, and 13 are tab, line feed, and carriage return, and unannotated lists of them confuse readers six months later.
  • Keep the character-versus-value rule in mind whenever numbers appear in text; almost every subtle ASCII bug traces back to forgetting that the character 9 is code 57, not the value 9.

Frequently Asked Questions

How do I convert text to ASCII codes by hand?
Look up each character in the ASCII table and write down its number, separating values with spaces. Anchors make this fast: capital A is 65 so capitals run 65 to 90, lowercase a is 97 so lowercase runs 97 to 122, digit characters 0 to 9 are 48 to 57, and space is 32. The word Cat is therefore 67, 97, 116. Case matters: c lowercase is 99 while C uppercase is 67. With those four anchor ranges, you can convert short strings mentally with surprising speed.
What is the ASCII code for A and a?
Capital A is 65 and lowercase a is 97, a difference of exactly 32, which in binary is a single bit: 65 is 01000001 and 97 is 01100001. That fixed offset holds for every letter pair, so M is 77 and m is 109, and adding or subtracting 32 converts between cases. Historically this one-bit difference let hardware toggle case cheaply, and it remains the reason the 32 offset appears in so many programming exercises and bit-manipulation interview questions.
Why do digit characters have codes 48 to 57 instead of 0 to 9?
Because ASCII assigns codes to characters, not numeric values. The symbol 7 that you type is a printable glyph, and its slot in the table is 55; the value seven is a different thing entirely. Converting between the two is trivial arithmetic: subtract 48 from a digit character's code to get its value, or add 48 to a value to get its character. This exact offset appears in countless parsers and explains why the text 42 converts to codes 52 and 50, two characters, not the number forty-two.
Does this tool work for emoji and non-English characters?
It reports their Unicode code points, which is the modern numbering system that extends ASCII. The classic 128 ASCII characters are unchanged, but é is 233, Chinese characters start around 19968, and the grinning emoji is 128512. Keep in mind these characters are stored as multi-byte UTF-8 sequences: é is the two bytes 195 and 169, and emoji take four bytes. If your target system consumes raw bytes rather than character codes, use a byte-oriented converter, since this tool reports one number per character, not per byte.
What are ASCII control characters and where are they still used?
Codes 0 through 31 plus 127 are control characters with no printed form, but real jobs: 13 is carriage return, 10 is line feed, 9 is tab, 27 is escape, and 7 rings the terminal bell. Windows text files still end lines with the pair 13, 10, network protocols use carriage return plus line feed to frame lines, and terminal emulators interpret escape sequences beginning with code 27 to set colors and move the cursor. They are invisible in print but structural in every byte stream you will ever debug.
Can I convert ASCII codes back to text with this tool?
This page converts text to codes; the reverse direction lives in the companion ascii-to-text tool, which accepts the same space or comma separated decimal list and returns the characters. Paste 75 101 121 there and Key comes back. It also accepts values above 127 and maps them through the Unicode table, so 233 returns é. A round trip, text to codes and codes back to text, is the quickest way to verify a hand-built code list before you embed it in a puzzle, test fixture, or protocol message.

Related Tools