What is Text to Decimal Converter?
A Text to Decimal Converter converts Text into Decimal directly in your browser. It parses the source format, applies the standard mapping or formula, and outputs the target format ready to copy. Encode any text as decimal byte values (0-255 per byte, UTF-8).
Text to Decimal Converter
Convert text to decimal byte values. UTF-8 aware.
TLDR
Type text, click Convert. Each character is encoded as UTF-8 bytes, then each byte is output as a decimal number (0-255), space-separated.
About the text to decimal converter
This tool turns any text into a list of decimal byte values. Each character is reduced to the plain base-10 number that represents it in memory, the same numbering you see in an ASCII table for letters, digits, and punctuation. It is useful for teaching how characters are stored, for hand-checking a string against a character chart, for feeding numeric byte arrays into code or microcontrollers, and for any moment you need to see the raw numbers behind a piece of text.
Encoding is done with UTF-8, the standard text encoding of the modern web, so ASCII characters map to a single number each while accented letters and emoji expand into several. Everything happens locally in the browser through the TextEncoder API, so nothing you type is uploaded or stored.
How the conversion works
Two short steps produce the output. The string is encoded to bytes with UTF-8, then each byte is printed as its decimal value and the numbers are joined by spaces.
bytes = TextEncoder().encode(text)
out = Array.from(bytes).join(' ') // each 0..255
Because every value is one byte, each number stays in the range 0 to 255. To reverse the process, split the input on spaces, read each number, and decode the resulting bytes back to text as UTF-8.
Worked example
Convert the word Hi! to decimal.
- H has byte value 72.
- i has byte value 105.
- ! has byte value 33.
"Hi!" -> 72 105 33
All three are ASCII, so each is one number. Add an accented letter and you would see two numbers for it, and an emoji would expand to four, because UTF-8 stores those characters in multiple bytes.
Character to decimal reference
| Character | Decimal | Note |
|---|---|---|
| space | 32 | First printable ASCII |
| 0 | 48 | Digits run 48 to 57 |
| A | 65 | Uppercase A to Z, 65 to 90 |
| a | 97 | Lowercase a to z, 97 to 122 |
| accented e | 195 169 | Two UTF-8 bytes |
Common mistakes and pitfalls
- Assuming one character equals one number. True only for ASCII. Accented letters give two numbers and most emoji give four under UTF-8.
- Confusing a byte value with a Unicode code point. These numbers are UTF-8 bytes, not code points. The euro sign is code point 8364 but its UTF-8 bytes are 226 130 172.
- Expecting values above 255. Each number is one byte, so it never exceeds 255. A larger number means two values ran together without a space.
- Dropping the separators. The space between numbers is essential. Without it, 72105 is meaningless instead of 72 and 105.
- Forgetting whitespace counts. Spaces and line breaks in your input are real characters and produce their own decimal values, so trim first if you do not want them.
- Decoding with the wrong encoding. To read the numbers back as text, decode the bytes as UTF-8; a single-byte assumption garbles anything non-ASCII.
Frequently asked questions
How is text converted to decimal?
The text is encoded to bytes with UTF-8, and each byte is written as its decimal value from 0 to 255, separated by spaces. So the letter A, byte value 65, simply outputs 65. This is the same numbering as an ASCII table for basic characters, extended to all of Unicode through UTF-8.
What is the range of each decimal value?
Each value is a single byte, so it ranges from 0 to 255. A value above 255 would mean two characters ran together without a separating space, or that you are looking at a code point rather than a byte. Keeping one space between every number avoids that ambiguity.
How are non-ASCII characters represented in decimal?
Under UTF-8 a character outside basic ASCII becomes two to four bytes, so it produces several decimal numbers rather than one. The accented e for example outputs 195 169, and most emoji output four numbers. Plain ASCII characters stay a single number each.
Is decimal the same as the ASCII code?
For the basic English letters, digits, and punctuation below 128, yes: the decimal byte value matches the classic ASCII code, so A is 65 and 0 is 48. Above 127 the numbers are UTF-8 bytes rather than ASCII, because ASCII only defines values 0 to 127.
Is my text sent anywhere?
No. The conversion runs entirely in your browser using the TextEncoder API, so your text is never uploaded, logged, or stored. The page works offline once loaded, which makes it safe to encode private strings or notes.
