Hexadecimal Numbers Conversions

The hexadecimal number can be easily converted to various other numbers such as, Binary Numbers, Octal Numbers, Decimal Numbers and vice-versa. Now let’s learn about them in detail.

Hexadecimal to Decimal Conversion

Converting hexadecimal to decimal follows a similar process as before, where each digit is multiplied by the respective power of 16.

Example: Convert (A7B)16 to decimal.

(A7B)16 = A × 163 + 7 × 162 + B × 161

⇒ (A7B)16 = 10 × 4096 + 7 × 256 + 11 × 16 (convert symbols A and B to their decimal equivalents; A = 10, B = 11)

⇒ (A7B)16 = 40960 + 1792 + 176

⇒ (A7B)16 = 42828

Therefore, the decimal equivalent of (A7B)16 is (42828)10.

Decimal to Hexadecimal Conversion

To convert a decimal number to hexadecimal, we use the base number 16. The process involves dividing the number by 16 repeatedly until the quotient becomes zero. The decimal to hexadecimal number system is shown in the image added below,

Example: Convert (92)10 to hexadecimal.

Solution:

Divide 92 by 16

Quotient: 5, Remainder: 12 (C in Hexadecimal)

Divide 5 by 16

Quotient: 0, Remainder: 5

Write the remainders from bottom to top

Therefore, (92)10 is equivalent to (5C)16 in hexadecimal.

Hexadecimal to Octal Conversion

To convert a hexadecimal number to octal, we follow a two-step process: first, convert the hexadecimal number to decimal, and then convert the decimal number to octal.

Example: Convert (1F7)16 to Octal.

Solution:

Step 1: Convert (1F7)16 to decimal using the powers of 16:

(1F7)16 = 1 × 162 + 15 × 161 + 7 × 160

⇒ (1F7)16 = 1 × 256 + 15 × 16 + 7 × 1

⇒ (1F7)16 = 256 + 240 + 7

⇒ (1F7)16 = (503)10

Step 2: Convert the decimal number (503)10 to octal by dividing it by 8 until the quotient is 0

503 ÷ 8 = 62 with a remainder of 7

62 ÷ 8 = 7 with a remainder of 6

7 ÷ 8 = 0 with a remainder of 7

Arrange the remainder from bottom to top

Therefore, (1F7)16 is equivalent to (767)8 in octal

Octal to Hexadecimal Conversion

There is a two step process to convert an octal number into hexadecimal:

Step 1: Convert Octal to Binary

For each octal digit, replace it with its three-digit binary equivalent.

Example: Convert (345)8 to binary.

Solution:

Step 1: Convert Octal to Binary

3 in octal is 011 in binary

4 in octal is 100 in binary

5 in octal is 101 in binary

Combine these binary equivalents: (345)8 = (011100101)2

Step 2: Convert Binary to Hexadecimal

Group the binary digits into sets of four, starting from the right, and convert each set to its hexadecimal equivalent.

Example 2: Convert (011100101)2 to hexadecimal.

Solution:

0111 in binary is 7 in hexadecimal

0010 in binary is 2 in hexadecimal

1101 in binary is D in hexadecimal

Combine these hexadecimal equivalents: (011100101)2 = (72D)16

Therefore, (345)8 is equivalent to (72D)16 in hexadecimal.

Hexadecimal to Binary Conversion

Converting hexadecimal to binary involves two methods: one with a conversion table and the other without a conversion table.

Method 1: Convert Hexadecimal to Binary with Conversion Table

To convert a hexadecimal number to binary using a conversion table, we follow these steps:

Example: Convert hexadecimal (4D)16 to binary.

Solution:

Look up Decimal Equivalent of each digit in the conversion table.

4 in decimal is (4)10, and D in decimal is (13)10

Convert each decimal number to binary.

(4)10 is (0100)2, and (13)10 is (1101)2

Combine the binary numbers

(4D)16 is (01001101)2

Method 2: Convert Hexadecimal to Binary without Conversion Table

This method involves multiplying each digit by 16(n-1) to obtain the decimal number, and then dividing by 2 until the quotient is zero.

Example: Convert hexadecimal (A2)16 to binary.

Solution:

Convert (A2)16 to decimal

(A)₁₆ is (10)10, and (2)16 is (2)10

⇒ (A2)16 is 10 × 161 + 2 × 160 = 160 + 2 = 16210

Convert the decimal number (162)10 to binary

Divide 162 by 2: Quotient = 81, Remainder = 0

Divide 81 by 2: Quotient = 40, Remainder = 1

Continue dividing until the quotient is zero: (10100010)2

Therefore, (A2)16 is (10100010)₂ in binary

Binary to Hexadecimal Conversion

To change binary to hexadecimal, we refer to a conversion table from the previous section.

Example: Convert (10111010101)2 to hexadecimal.

Solution:

In hexadecimal, every 4 binary digits represent one digit

Group the binary number accordingly, and find their Hexadecimal equivalent using the hexadecimal table added above.

0010 = 2, 1011 = B, 1010 = A

Combine these hexadecimal digits to get the final number.

Therefore, (10111010101)2 is equal to (2BA)16

Hexadecimal Number System

Hexadecimal Number System is a base-16 numeral system used in diverse fields, especially in computing and digital electronics. It consists of 16 symbols, including numbers 0 to 9 and letters A to F, offering a compact way to represent binary-coded values. The hexadecimal number system is sometimes also represented as, ‘hex’.

Number Systems are various ways to use numbers to represent large numbers and information. The hexadecimal number system is introduced to students in class 9. In this article, we will learn about, the Hexadecimal Number System, Hexadecimal Number System Table, Hexadecimal Number System Examples, and Others in detail.

Before starting with the Hexadecimal Number System we first learn about the Number System.

Table of Content

  • What is Number System?
  • What is Hexadecimal Number System?
  • Hexadecimal Number System Table
  • Hexadecimal Numbers Conversions
  • Place Value of Digits in Hexadecimal Number System
  • Solved Examples
  • Practice Questions on Hexadecimal Number System

Similar Reads

What is Number System?

Number System is a method of representing Numbers and there are various types of the number systems in mathematics that are defined as,...

What is Hexadecimal Number System?

Hexadecimal is a number system combining “hexa” for 6 and “deci” for 10. It uses 16 digits: 0 to 9 and A to F, where A stands for 10, B for 11, and so on. Similar to the regular decimal system, it counts up to F instead of stopping at 9. Each digit in hexadecimal has a weight 16 times greater than the previous one, following a positional number system....

Hexadecimal Number System Table

Following table represents the relationship between hexadecimal number system with decimal as well as binary number system....

Hexadecimal Numbers Conversions

The hexadecimal number can be easily converted to various other numbers such as, Binary Numbers, Octal Numbers, Decimal Numbers and vice-versa. Now let’s learn about them in detail....

Place Value of Digits in Hexadecimal Number System

The numbers in the hexadecimal number system has weightage in powers of 16. The power of 16 increases as the digit is shift towards the left of the number. This is explained by the example as,...

Solved Examples on Hexadecimal Number System

Example 1: Convert Hexadecimal 1A5 to Decimal...

Practice Questions on Hexadecimal Number System

Problem 1: Convert the hexadecimal number 2A to binary....

Hexadecimal Number System – FAQs

What is a Hexadecimal Number System?...