Enter a number between 0 and 65535 in either field, then click outside of the text box.
The Binary to Decimal to Hexadecimal Converter is a tool designed to perform conversion between binary, decimal, and hexadecimal numeral systems. It features three input fields - Binary, Decimal, and Hexadecimal. Users can input a value in any of these fields, and the tool will automatically convert the value to the other two numeral systems.
Decimal System (Base 10) The decimal numeral system is the standard system for denoting integer and non-integer numbers. It uses 10 digits from 0 to 9. Each digit's position represents a power of 10. For example, in the number 123, the digit 3 is in the ones place (10^0), the digit 2 is in the tens place (10^1), and the digit 1 is in the hundreds place (10^2).
Binary System (Base 2) The binary numeral system uses only two digits: 0 and 1. It is commonly used in computing because it is easy to implement with digital electronics. Each digit's position represents a power of 2. For example, in the binary number 101, the digit 1 is in the ones place (2^0), the digit 0 is in the twos place (2^1), and the digit 1 is in the fours place (2^2).
Hexadecimal System (Base 16): The hexadecimal numeral system uses 16 digits: 0-9 and A-F (representing values 10-15). It is widely used in computing, especially in representing memory addresses, colors, and other data. Each digit's position represents a power of 16. For example, in the hexadecimal number 1A3, the digit 3 is in the ones place (16^0), the digit A is in the sixteens place (16^1), and the digit 1 is in the 256s place (16^2).
Decimal, binary, and hexadecimal numbers in the range between 0 and 15:
Decimal | Hexadecimal | Binary |
0 | 0 | 0000 |
1 | 1 | 0001 |
2 | 2 | 0010 |
3 | 3 | 0011 |
4 | 4 | 0100 |
5 | 5 | 0101 |
6 | 6 | 0110 |
7 | 7 | 0111 |
8 | 8 | 1000 |
9 | 9 | 1001 |
10 | A | 1010 |
11 | B | 1011 |
12 | C | 1100 |
13 | D | 1101 |
14 | E | 1110 |
15 | F | 1111 |
To convert a binary number to decimal:
Example: 10112 to decimal:
1 × 20 + 1 × 21 + 0 × 22 + 1 × 23 = 1110
To convert a decimal number to binary:
Example: 2510 to binary:
25 ÷ 2 = 12 (remainder 1)
12 ÷ 2 = 6 (remainder 0)
6 ÷ 2 = 3 (remainder 0)
3 ÷ 2 = 1 (remainder 1)
1 ÷ 2 = 0 (remainder 1)
So, 2510 = 110012
To convert a decimal number to hexadecimal:
Example: 20110 to hexadecimal:
201 ÷ 16 = 12 (remainder 9, which is represented as 916)
12 ÷ 16 = 0 (remainder 12, which is represented as C16)
So, 20110 = C916
To convert a hexadecimal number to decimal:
Example: C916 to decimal:
9 × 160 + 12 × 161 = 20110
Note, C16 = 1210.
To convert a hexadecimal number to binary:
Example: C916 to binary:
C16 corresponds to 11002
916 corresponds to 10012
So, C916 = 110010012
To convert a binary number to hexadecimal:
Example: 1010101110012 to hexadecimal:
1010 1011 1001
10012 corresponds to 916
10112 corresponds to B16
10102 corresponds to A16
So, 1010101110012 = AB916