Text is always numbers underneath
Every character a computer displays is stored as a number — the letter A is, at some layer, the number 65. This converts text into that underlying numeric representation and back, across the five forms that come up most often when working with encodings, debugging data, or piecing together how text is actually stored: ASCII codes, UTF-8 hex bytes, Base64, and raw byte values.
The five modes
| Mode | What it produces |
|---|---|
| Text to ASCII Codes | Each character's decimal code point — A becomes 65, a becomes 97 |
| ASCII Codes to Text | The reverse — decimal codes back into readable characters |
| Text to UTF-8 Hex | The raw hexadecimal bytes of the UTF-8 encoding, which matter for anything beyond plain ASCII |
| Text to Base64 | The same text-to-binary-to-Base64 encoding used throughout web and email data |
| Byte Values to ASCII | Raw numeric byte values converted back into their character equivalents |
Why ASCII and UTF-8 hex give different-length answers
ASCII only covers 128 characters — English letters, digits and basic punctuation — each needing exactly one byte. UTF-8, the encoding that covers essentially every character in every language, is variable width: an ASCII character still takes one byte in UTF-8, but an accented letter, a Thai character or an emoji can take two, three or four bytes. Converting the same piece of text to ASCII codes and to UTF-8 hex gives identical results for plain English text and diverges the moment anything outside basic ASCII is involved — which is exactly the case where knowing the real byte representation matters.
Where this actually gets used
- Debugging encoding issues. Text that displays as mangled symbols usually means it was decoded with the wrong character set — seeing the raw bytes is how you diagnose that.
- Learning how character encoding works by seeing the actual numbers rather than an abstract explanation.
- Constructing or decoding low-level protocol data where a message spec is defined in terms of specific byte or ASCII values.
- Puzzle and CTF contexts where a string of numbers is a straightforward character-code cipher.