Type or paste hex numbers, one per line
Tick “Group digits” to see the bits in groups of four
Copy or download the binary numbers
Every hex digit stands for exactly four binary digits, or bits: 0 is 0000, 9 is 1001, A is 1010 and F is 1111. That is why programmers write bytes, colors and memory addresses in hex: two hex digits are one byte, and FF is 11111111. Type or paste hex numbers, one per line, with or without 0x, and the binary numbers appear as you type. Tick “Group digits” to write them in groups of four, as in 1111 1111, so you can see which bits belong to which hex digit, and “Prefix 0b, 0o or 0x” to get 0b11111111 for program code. Leading zeros are not written, so 0F gives 1111.
The conversion is exact for numbers of any length, including negative numbers and fractions such as A.8, which is 1010.1. Under the result you see how the first number is converted, by way of its decimal value, step by step. With “From” and “To” you can choose other bases, such as octal or base 32, and “Swap” turns the binary result back into hex. To turn text into hex codes, use the ASCII to hex converter instead, and to see the bytes of a text in binary, the text to binary converter.
Hello. We tried very hard to create a convenient website that we use ourselves. If you liked any of our tools and editors, add it to your bookmarks, because it will be useful to you more than once. And don't forget to share on social media. We will be better for you.