Convert text to hexadecimal
Hello in text
48 65 6c 6c 6f
How it gets there
- Each character has a code point
- "H" → U+0048 → 48 "e" → U+0065 → 65 "l" → U+006C → 6c "l" → U+006C → 6c "o" → U+006F → 6f
- 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
Why the working is here
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.