Text to Binary, Hex & ASCII Converter
Beta: this tool hasn't been fully reviewed yet. Double-check results before relying on them.
Results
Some of the input isn't a byte in the chosen format.
- Text
- Binary
- Hexadecimal
- Decimal (ASCII codes)
- Octal
Your input is too long to share as a link, so the page address no longer includes it.
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
- Choose what your input is: text, binary, hex, decimal or octal.
- Type or paste it.
- 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.
| Parameter | What it sets |
|---|---|
text | The text, or the bytes to decode. |
from | What the input is: text, binary, hex, decimal or octal. |
sep | Between bytes: space, none or comma. |
Example: https://toolabelle.com/text-to-binary/#text=Hi&from=text&sep=space