Binary, Hex and Decimal Converter
Type in any box, in any format, and the other five show the same bytes: text, binary, hex, decimal, octal and Base64. Text to binary to hex is one step, and so is every other chain.
- No ads
- No sign-up, no usage limits
- Nothing you enter is uploaded
Every format
Type in any box. The other five show the same bytes.
How to use it
- 01
Type in any box
Start from what you have: text, 0s and 1s, hex bytes like
48 65, decimal codes like72 101, octal or Base64. - 02
Read the others
The other five boxes update as you type. The box you typed in is the source; the rest are drawn from its bytes.
- 03
Copy or share
Each box has its own Copy button. Copy link shares the value and the box it came from.
Hello in every format
The same five bytes, written six ways. Each format is just a different way to spell the numbers 72, 101, 108, 108 and 111.
| Format | Hello |
|---|---|
| Text | Hello |
| Binary | 01001000 01100101 01101100 01101100 01101111 |
| Hex | 48 65 6C 6C 6F |
| Decimal | 72 101 108 108 111 |
| Octal | 110 145 154 154 157 |
| Base64 | SGVsbG8= |
Why one byte has so many spellings
A byte is a number from 0 to 255. Binary writes it in base 2, octal in base 8, decimal in base 10 and hex in base 16. Text reads it through an encoding, UTF-8 here, and Base64 packs every 3 bytes into 4 characters so binary data can travel as plain text, as in email attachments and data URLs.
Hex is the easiest to read byte by byte: always two digits per byte, which is why programmers read memory and colors in it. Binary shows every bit. For one direction with the working shown, use the binary to hex converter or the text to binary converter.
Frequently asked questions
How do I convert text to binary and then to hex?
Type the text in the Text box. The Binary and Hexadecimal boxes fill in at the same time, so you can read the whole chain at once. "Hi" is 01001000 01101001 in binary and 48 69 in hex.
What is Base64?
A way to write bytes using 64 safe characters: A to Z, a to z, 0 to 9, + and /. Every 3 bytes become 4 characters, and = pads the end. "Hi" is SGk=.
Why does the text box show � for some values?
Not every series of bytes is valid UTF-8 text. Bytes like 200 or 255 on their own don't form a character, so they show as �. The other formats still show the exact bytes.