How to use the Text to ASCII Code Converter
- Type or paste your text in the input box.
- Choose the output format: decimal, hexadecimal, binary or octal.
- Pick a separator and, for hex or binary, whether to add a
0xor0bprefix. - Copy the codes, or check the character table below the tool to see every value side by side.
- To go the other way, use ASCII to Text.
How text becomes numbers
Computers store every character as a number. In ASCII, A is 65, a is 97, the digit 0 is 48 and a space is 32. This converter looks up each character and writes its number in the base you choose: base 10 (decimal), base 16 (hexadecimal), base 2 (binary) or base 8 (octal).
What about accents and emoji?
Standard ASCII only covers 128 characters. For anything else, such as é, ñ or emoji, choose an encoding: UTF-8 bytes shows the bytes a web page or file actually stores (é becomes 195 169), while Unicode code points shows one number per character (é is 233, U+00E9). ASCII only replaces unsupported characters with ? and tells you how many it found.
Frequently asked questions
In decimal it is 72 101 108 108 111. In hexadecimal: 48 65 6C 6C 6F. In binary: 01001000 01100101 01101100 01101100 01101111.
Choose Binary as the format. Each character becomes an 8-bit group, for example A = 01000001.
You chose UTF-8 bytes and the letter is outside ASCII. Characters such as é or € take two or three bytes in UTF-8.
No. The conversion runs in your browser; nothing is uploaded.