td

Text to Decimal

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

Underneath every character is a plain number, and this tool shows you those numbers directly: paste any text and watch it become a list of decimal byte values, live as you type. Hi becomes 72 105, because capital H is byte 72 and lowercase i is byte 105. The conversion runs entirely in your browser, so nothing you type is uploaded, logged, or stored, and the page is free, signup-free, and identical on mobile and desktop.

Decimal is the friendliest of all the byte notations because it needs no translation to read: 65 is simply 65, and an ASCII chart confirms that is capital A. That friendliness is why textbooks, spreadsheets, and programming tutorials quote characters in decimal. The tool encodes your text as UTF-8 first, then lists each byte in base 10. For basic English that is one number per character; beyond ASCII, UTF-8's variable-length sequences add numbers: é takes 2 bytes, most Chinese characters take 3, and emoji take 4, so one visible character can produce several numbers.

The classic reference points anchor everything. Capital A is 65, lowercase a is 97, the space is 32, and digits start at 48. Once you can recite those four values, converting your own name by hand becomes a realistic exercise, and this page becomes your checker.

What the Numbers Represent

Each number in the output is one UTF-8 byte, a value from 0 to 255. The mapping from characters to numbers comes from the character encoding, and UTF-8 keeps the classic ASCII assignments unchanged: 72 is H, 105 is i, 33 is the exclamation mark, 32 is the space. These are the same values printed in every ASCII table since the 1960s, which is why decimal output matches textbook exercises exactly for English text.

For characters outside ASCII, UTF-8 takes over with multi-byte sequences. The é you see on screen is the two numbers 195 and 169; a Chinese character is typically three numbers; an emoji is four. A common surprise is that uppercase and lowercase letters differ by exactly 32: A is 65 and a is 97, which made case-flipping a single-bit operation on the old terminals where these tables were designed.

Spreadsheet users know these numbers from the CHAR and CODE functions: CODE returns the decimal value of a character, and CHAR turns a number back into one. This tool is essentially those functions applied to a whole string at once, with full UTF-8 support that spreadsheets often lack.

How to Use This Tool (Step by Step)

  1. Type or paste your text into the input box. The number list updates live with every keystroke; there is no convert button.
  2. Read the output as space-separated decimal values, one per UTF-8 byte. Multi-byte characters produce multiple numbers.
  3. Use the copy button to take the result into worksheets, code, or homework.
  4. If an error message appears, it describes the problem rather than emitting partial output.
  5. To reverse the process, paste the numbers into the companion decimal-to-text tool; the original characters return exactly, emoji included.

Worked Examples and Anchor Values

Check any row by hand against an ASCII chart, or use the anchor table below it to build your own conversions.

Input textDecimal output
Hi72 105
Code!67 111 100 101 33
space32
HAL72 65 76
é195 169
中228 184 173
Anchor characterDecimal valueNote
space32First printable character
0 through 948 to 57Digits are consecutive
A65Capitals run 65 to 90
a97Lowercase runs 97 to 122, offset by 32
DEL127End of one-byte ASCII range

The anchor table is the working core of hand conversion. Given that A is 65 and letters are consecutive, E is 65 plus 4, which is 69; given digits start at 48, the digit 7 is 48 plus 7, which is 55. Every letter and digit converts in one addition once the anchors are memorized.

Common Use Cases

  • Teaching and homework: ASCII value exercises are a staple of introductory computing, and pasting your answer here checks every number at once.
  • Spreadsheet work: predicting what CHAR and CODE will return, or debugging formulas that rely on character arithmetic.
  • Cipher exercises: Caesar shifts and letter math are easiest in decimal, where adding 2 to 65 gives 67, the letter C.
  • Encoding verification: paste suspect text and count the numbers to see whether a character took 1, 2, 3, or 4 bytes, which explains mysterious length mismatches.
  • Protocol debugging: many protocol documents quote ASCII values in decimal; convert your expected header and compare.

How the Conversion Works Internally

Step one: the browser's TextEncoder converts your string into UTF-8 bytes, an array of values 0 to 255. Step two: each byte is written in base 10, which for values under 100 means nothing more than the number itself, and values 100 to 255 are three digits. Step three: the numbers are joined with spaces in order. Unlike base conversions to binary, hex, or octal, no padding is needed, because decimal width is natural; the value 32 is simply 32.

The encoder is where the subtlety lives. Text looks like characters but travels as numbers, and the encoding rule determines which numbers. Because this tool uses UTF-8, its output matches modern JSON, HTTP, and file storage byte for byte. A converter that assumed a legacy single-byte code page would disagree on everything beyond ASCII, which is why two converters can return different lists for the same é.

Decimal Codes Compared with Binary, Hex, and Octal

All four notations describe the same bytes. Decimal is the most readable and matches ASCII charts, at the cost of variable width: 32, 105, and 195 all describe one byte but occupy different digit counts. Hex fixes the width at two digits per byte, which is why editors and dumps use it. Octal fixes it at three digits and survives in C escapes. Binary shows every bit at eight characters per byte. The same Hi is 72 105 in decimal, 48 69 in hex, and 01001000 01101001 in binary; pick the notation your audience or tool expects, and the site has converters for each direction running the identical UTF-8 pipeline.

Tips and Best Practices

  • Round-trip your work: paste the numbers into decimal-to-text and confirm the original string returns before submitting homework or shipping code.
  • Memorize the four anchors, 32, 48, 65, and 97; they cover most hand conversions in one addition each.
  • Count the numbers to measure byte size; the count equals the UTF-8 byte count, which is what file sizes and buffer limits measure.
  • When a value above 127 appears, expect neighbors: a multi-byte character always contributes two, three, or four numbers together.
  • Remember the 32 offset between cases; 72 plus 32 is 104, which turns H into h arithmetically, and that bit-level trick explains many case-handling bugs.
  • Decimal is notation, not secrecy; anyone can decode the list, so never rely on it to hide text.

Frequently Asked Questions

How do I convert text to decimal codes by hand?
Look up each character's value in the ASCII table, then write the numbers in order with spaces. Capital H is 72 and lowercase i is 105, so Hi becomes 72 105. You can compute values from anchors instead of a chart: A is 65 and letters are consecutive, so E is 69; digits start at 48, so 7 is 55. Lowercase is uppercase plus 32. Each basic English character is exactly one number; characters beyond ASCII take two to four numbers because UTF-8 encodes them as multi-byte sequences.
What are the ASCII values of Hi?
H is 72 and i is 105, so Hi is 72 105. The same bytes appear as 48 69 in hex, 110 151 in octal, and 01001000 01101001 in binary, all describing identical data. These two letters are the standard first example in ASCII exercises because one value is in the sixties and one in the hundreds, showing both single- and triple-digit forms. Any correct converter, spreadsheet CODE function, or chart lookup should return exactly these two numbers.
Why is é two numbers instead of one?
Because the tool encodes text as UTF-8 before listing bytes, and é takes two bytes in UTF-8: 195 and 169. One number per byte, not per character, is the rule. Basic English letters, digits, and punctuation each produce one number; accented letters, Greek, and Cyrillic typically produce two; Chinese, Japanese, Korean, and Arabic produce three; emoji produce four. This is why counting the output numbers tells you the true byte size of a string, which often differs from its character count.
What is the difference between uppercase and lowercase values?
Exactly 32. Capital A is 65 and lowercase a is 97, and the same offset holds for every letter pair: H is 72, h is 104. The gap exists because ASCII was designed so case could be flipped by toggling a single bit, which mattered on hardware where bit operations were far cheaper than table lookups. It remains useful today: adding or subtracting 32 converts cases arithmetically, and many case-insensitive comparisons in old software are just that subtraction in disguise.
Is text-to-decimal the same as the spreadsheet CODE function?
For basic English characters, yes: CODE returns the same decimal values, and CHAR reverses them. The differences are scope and batch size. This tool processes a whole string at once rather than one character per formula call, and it uses UTF-8, so characters beyond ASCII come out as their multi-byte sequences, such as 195 169 for é. Many spreadsheet implementations predate full UTF-8 support and may return different or error values for non-ASCII characters, so for international text this tool is the more reliable reference.
Can I convert the decimal numbers back to text?
Yes, with the companion decimal-to-text tool on this site. Paste the numbers there and the original characters return, including multi-byte UTF-8 characters and emoji, provided every number is a valid byte value from 0 to 255 and the order is intact. Spaces between numbers are formatting; the underlying data is the sequence of values. A quick round trip, text to numbers and back, is the most reliable way to verify that a list you built by hand or extracted from a document is complete and correctly ordered.

Related Tools