WintelGuy.com

Binary to Decimal to Hexadecimal Converter

Enter a number between 0 and 65535 in either field, then click outside of the text box.

About the Converter

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, Binary, and Hexadecimal 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
10A 1010
11B 1011
12C 1100
13D 1101
14E 1110
15F 1111

How to Convert Numbers

Binary to Decimal Conversion

To convert a binary number to decimal:

  • Start from the rightmost digit.
  • Multiply each digit by 2 raised to the power of its position (starting from 0).
  • Add up all the results to get the decimal equivalent.

Example: 10112 to decimal:

1 × 20 + 1 × 21 + 0 × 22 + 1 × 23 = 1110

Decimal to Binary Conversion

To convert a decimal number to binary:

  • Divide the decimal number by 2 repeatedly, keeping track of the remainders.
  • The remainders, read from bottom to top, give the binary equivalent.

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

Decimal to Hexadecimal Conversion

To convert a decimal number to hexadecimal:

  • Divide the decimal number by 16 repeatedly, keeping track of the remainders.
  • The remainders, read from bottom to top, give the hexadecimal equivalent.

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

Hexadecimal to Decimal Conversion

To convert a hexadecimal number to decimal:

  • Start from the rightmost digit.
  • Multiply each digit (in decimal representation) by 16 raised to the power of its position (starting from 0).
  • Add up all the results to get the decimal equivalent.

Example: C916 to decimal:

9 × 160 + 12 × 161 = 20110
Note, C16 = 1210.

Hexadecimal to Binary Conversion

To convert a hexadecimal number to binary:

  • Create a table, similar to the one listed above, that maps each hexadecimal digit (0-9, A-F) to its 4-bit binary representation.
  • Replace each hexadecimal digit with its 4-bit binary representation.

Example: C916 to binary:

C16 corresponds to 11002
916 corresponds to 10012

So, C916 = 110010012

Binary to Hexadecimal Conversion

To convert a binary number to hexadecimal:

  • Create a table, similar to the one listed above, that maps each hexadecimal digit (0-9, A-F) to its 4-bit binary representation.
  • Start from the right.
  • Group binary digits into sets of four.
  • Replace each group with its hexadecimal equivalent.

Example: 1010101110012 to hexadecimal:

1010 1011 1001
10012 corresponds to 916
10112 corresponds to B16
10102 corresponds to A16

So, 1010101110012 = AB916