How to use the binary converter
- Type or paste your input. It can be plain text or byte values such as
01001000 01101001,48 69or72 105. - Leave From on Auto-detect, or pick the input format yourself if the guess is wrong.
- Choose the output format under To and, for byte values, a separator: space, none or comma.
- Press Copy result, or Use result as input to reverse the conversion and check the round trip.
The result updates as you type. If you paste binary while the output is also set to binary, the output switches to text automatically, because that is almost always what you want.
Your text stays on your device
Everything is converted in your browser. Nothing you type is sent to our server.
How the conversion works
Computers store text as bytes. This tool uses UTF-8, the encoding used by almost every website and modern program. Each character becomes one to four bytes, and each byte is a number from 0 to 255. That number can then be written in different bases:
- Binary (base 2): always 8 digits per byte, such as
01001000. - Hex (base 16): 2 digits per byte, such as
48. - Decimal (base 10): 0 to 255, such as
72. - Octal (base 8): 3 digits per byte, such as
110.
Worked example
The text Hi is two bytes. H is 72 and i is 105, so the outputs are:
- Binary:
01001000 01101001 - Hex:
48 69 - Decimal:
72 105 - Octal:
110 151
Accented letters take more space. Café is five bytes in hex, 43 61 66 C3 A9, because é is stored as the two bytes C3 and A9 (11000011 10101001 in binary).
Reading byte values
Values can be separated by spaces, commas, semicolons or line breaks. Binary, hex and octal can also be pasted without separators, as long as every byte has its full width (8, 2 or 3 digits). Prefixes such as 0x, 0b and 0o are removed for you. Decimal values always need a separator, so the tool keeps spaces between them even when you choose None.
Good to know
- Auto-detect checks for binary first, then decimal, then hex. Octal is only detected with the
0oprefix because it looks just like decimal, so choose it by hand. - A word like
cafeis valid hex, but without any digits it is treated as text. Pick Hex under From if you really mean bytes. - If the bytes are not valid UTF-8, the tool says so instead of showing broken characters. Such data is usually part of a binary file rather than text.
- The limit is 200,000 bytes, which keeps the binary output small enough for a browser text box.