Binary translator
Type text, binary, hex or decimal bytes and the other three follow. The bytes are UTF-8, so a letter, an accent and an emoji each round-trip.
- Both directions
- Free, no sign-up
Runs in your browser. Nothing you type or open is uploaded. Free to use, no account. More code and data tools
How to use it
- Type in any of the four boxes.
- Read the text, the bits, the hex and the decimal bytes.
- Turn spacing on or off for the binary.
UTF-8 bytes, both directions
Text becomes UTF-8 bytes. Each byte is eight bits, a pair of hex digits, and a decimal number from 0 to 255. “Hi” is 01001000 01101001, hex 48 69, and decimal 72 105. Spaces between binary bytes are optional. Hex can include spaces, 0x or \x. Decimal values are separated by spaces or commas.
Decoding builds the bytes and then reads them as UTF-8. A binary length that is short of a full byte, an odd number of hex digits, or a decimal above 255, is named in the message. Edit any box and the others follow.
Private by design
Privacy
Everything runs in this page and stays on your device. Text you paste stays in this tab. Choices such as a format or a font size can be shared in the page link.
This page also shows Google ads, which can use cookies. Privacy and cookies explains how.
Questions
Which way does it convert?
Any box is an input. Text fills binary, hex and decimal. Binary, hex or decimal fills the text and the other number forms.
What encoding is the text?
UTF-8. One letter is one byte, and an accent or an emoji uses the bytes UTF-8 assigns it.
How should I separate the numbers?
Binary can be spaced every eight bits or written as a continuous run. Hex wants an even number of digits. Decimal bytes from 0 to 255 are separated by spaces or commas.
What does a short binary string do?
Bits are grouped into bytes of eight. A length that falls short of the next byte is named, with how many bits are missing.