Text to Binary, Hex & ASCII Converter

Results

  • Text
  • Binary
  • Hexadecimal
  • Decimal (ASCII codes)
  • Octal

Every character is stored as one or more bytes. This tool shows those bytes in the forms programmers and puzzle makers use: binary, hex, decimal ASCII codes and octal, and turns them back into text.

How to use it

  1. Choose what your input is: text, binary, hex, decimal or octal.
  2. Type or paste it.
  3. Copy the format you need.

Example: “Hi” is 01001000 01101001 in binary, 48 69 in hex, 72 105 in decimal and 110 151 in octal. “é” is two bytes: C3 A9.

Binary and hex can be pasted with or without spaces.

For a single number (255 → FF), use the Hex Converter.

Questions and answers

What's the difference between ASCII and UTF-8?

ASCII covers 128 characters: English letters, digits and punctuation, one byte each. UTF-8 is the same for those, and uses 2 to 4 bytes for everything else (accents, other alphabets, emoji).

Why does my binary give an error?

Each byte must be 8 binary digits or fewer, and a run without spaces must be a multiple of 8. Decimal codes must be 0 to 255.

Link with pre-filled values

Add # and these parameters to the end of this page's address to open the tool with values already filled in.

ParameterWhat it sets
textThe text, or the bytes to decode.
fromWhat the input is: text, binary, hex, decimal or octal.
sepBetween bytes: space, none or comma.

Example: https://toolabelle.com/text-to-binary/#text=Hi&from=text&sep=space

Related tools