Convert text to decimal
Hello in text is 72 101 108 108 111 in decimal. Each digit is multiplied by its place value — the base raised to the digit's position, counting from zero on the right — and the products are added. The page prints every one of those products rather than only the total. The conversion is exact: bases are positional notation for the same number, so nothing is rounded and the result can be checked digit by digit.
Conversion rules checked · How we check
Hello in text
72 101 108 108 111
How it gets there
- Each character has a code point
- "H" → U+0048 → 72 "e" → U+0065 → 101 "l" → U+006C → 108 "l" → U+006C → 108 "o" → U+006F → 111
- UTF-8, not ASCII
- A character outside the ASCII range becomes two to four bytes, which is why the count of groups can exceed the count of characters.
- Bytes
- 5 bytes from 5 characters
text to decimal, at a glance
The decimal form of a character is its code point — the number Unicode assigns it. A is 65, a is 97, and the gap of 32 between them is a single bit, which is how case conversion used to be done.
| text | decimal |
|---|---|
| A | 65 |
| Z | 90 |
| a | 97 |
| z | 122 |
| 0 | 48 |
| 9 | 57 |
| space | 32 |
| ! | 33 |
Why is the working shown?
Every other converter of this kind prints the answer and stops. A base is a positional system, so the answer is a sum you can check: each digit is multiplied by the base raised to its position, and the results are added. Going the other way is repeated division, reading the remainders upwards. Neither is a black box, and this page refuses to be one.