Skip to content

Text to ASCII Code Converter

Type or paste text and get the ASCII code of every character in decimal, hex, binary or octal. The result updates as you type.

Decode instead ⇄
Character by character
CharDecHexOctalBinaryUTF-8 bytes

How to use the Text to ASCII Code Converter

  1. Type or paste your text in the input box.
  2. Choose the output format: decimal, hexadecimal, binary or octal.
  3. Pick a separator and, for hex or binary, whether to add a 0x or 0b prefix.
  4. Copy the codes, or check the character table below the tool to see every value side by side.
  5. 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.