Binary to Hexadecimal Converter
The binary to hexadecimal converter shows you how to convert binary to hexadecimal and hexadecimal to binary numbers. It also explains the commonalities and differences between those numeral systems.
You can also check our binary to octal converter to convert between binary and octal numbers.
Binary and hexadecimal numbers
We all grow up with the same numeral system: the decimal one. We learn how to understand the numbers presented in it and how to execute arithmetic operations on them. But the decimal system is not the only one existing:
The decimal system has the base 10, meaning that every digit can be in the range 0-9.
The binary system is based on the number 2. Every digit can only have two logical states:
1. Numbers represented in the binary system can be converted to the decimal system, but the basic arithmetic operations can also be executed in the binary system. Additionally, binary numbers allow for bitwise operations, like bit shifts and the bitwise operations AND, OR, and XOR.
The hexadecimal system is base 16. This fact means that every digit can represent a value from 0-15. But since 15 consists of 2 digits, it was agreed that hexadecimal numbers are made up of the numbers 0-9 and the letters A, B, C, D, E, and F. The table below shows the relations between binary and hexadecimal values. This article will explain how to convert binary to hexadecimal and how to convert hexadecimal to binary numbers.
Why do we need hexadecimal numbers?
Since every hexadecimal digit can represent 16 states, they allow for a very compact and concentrated representation of information. Furthermore, one hexadecimal digit holds the same amount of information as four bits. This fact allows for easy conversion from the binary system and a very dense portrayal of binary data.
How to convert binary to hexadecimal?
To convert a binary into a hexadecimal number, follow these steps:
- Starting from the right (the least significant bit), separate your binary number into groups of 4 digits each.
- Convert each group of 4 binary digits into the equivalent hexadecimal symbol, from 0 to F.
- Merge your hexadecimal digits in the same order as the binary digit groups to get your hexadecimal number.
Let's try this on the binary number
- Separate in groups:
0100 1011 0001 1101
- Convert each group to the hexadecimal digit (full free to use the table above for this):
- Merge the hex digits:
Here you go! So simple, it should be
How to convert hexadecimal to binary?
To convert a hexadecimal into a binary number, do the following:
- Convert each hexadecimal digit (0 to F) into the equivalent group of 4 binary digits (0000 to 1111).
- Merge the binary digits groups in the same order as the hexadecimal digits to get your binary number.
For an example, let us convert the hexadecimal number
2BAD into binary:
- Convert each hex digit (the table above is your friend):
- Merge all binary digit groups:
0010 1011 1010 1101
And that's all.
2BAD you didn't know how easy this was up to now, right?
How to use the binary to hexadecimal converter?
You know what a binary and hexadecimal number is and how to convert one to the other. Let's get to what this article all boils down to: the binary to hexadecimal calculator and its use.
And it could not be simpler. Type the binary number you want to convert to hexadecimal in the field binary. And that's all!
If we try this with our example binary number
100101100011101 from above, we receive the expected hexadecimal result:
By default, the converter is limited to 16 bit. If you need to change that, enter the advanced mode, and you will be able to define a bit range up to 20.
What is the hexadecimal number F1 equal to in binary?
To find the binary conversion for the hexadecimal number
F1, do the following:
- Convert both hexadecimal digits to their binary representation: hex
- Merge the binary digits groups in the same order as the equivalent hexadecimal digits to get your binary number:
How do I convert the binary number 1011010 into a hexadecimal number?
To convert the binary number
1011010 to a hexadecimal number, follow these steps:
- Starting from the right (the least significant bit), separate your binary number into groups of 4 digits each:
- Convert each group of 4 binary digits into the hexadecimal digit: binary
- Merge your hexadecimal digits in the same order as the binary digit groups to get your hexadecimal number: