Hexadecimal Number System is a base-16 number 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'.
Hexadecimal Number System TableWhat is Number System?
A number system is a system for expressing numbers; it's a mathematical notation for representing numbers of a given set, using digits or other symbols in a consistent manner.
The four common types of Number System are:

Now let's learn about, Hexadecimal Number in detail.
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.
When converting to another system, we multiply each digit by the power of 16 based on its position. For example, in the number 7B3, 7 is multiplied by 16 squared, B by 16 to the power of 1, and 3 by 16 to the power of 0.
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.
Hexadecimal | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | A | B | C | D | E | F |
|---|
Decimal | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 |
|---|
Example: Convert (A7B)16 to decimal.
(A7B)16 = A Ã 162 + 7 Ã 161 + B Ã 160
â (A7B)16 = 10 Ã 256 + 7 Ã 16 + 11 Ã 1 (convert symbols A and B to their decimal equivalents; A = 10, B = 11)
â (A7B)16 = 2560 + 112+ 11
â (A7B)16 = 2683
Therefore, the decimal equivalent of (A7B)16 is (2683)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.
The following chart shows the equivalent octal values for each hexadecimal digit.
Hexadecimal | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | A | B | C | D | E | F |
|---|
Octal | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 |
|---|
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:
Convert Octal to Binary
To convert a number from octal number system to binary number system take each octal digit and 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:
Hexadecimal | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | A | B | C | D | E | F |
|---|
Decimal | 0000 | 0001 | 0010 | 0011 | 0100 | 0101 | 0110 | 0111 | 1000 | 1001 | 1010 | 1011 | 1100 | 1101 | 1110 | 1111 |
|---|
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
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,
Example, (AB12)16
Place value of each digit in (AB12)16 is,
= AÃ163 + BÃ162 + 1Ã161 + 2Ã160
Read More,
Facts About Hexadecimal Numbers
- Hexadecimal is a number system with a base value of 16.
- Hexadecimal numbers use 16 symbols or digital values: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F.
- A, B, C, D, E, and F represent 10, 11, 12, 13, 14, and 15 in single-bit form.
- If you see an "0x" as Prefix, it indicates the number is in Hexadecimal. For example, 0x3A
- The position of each digit in a Hexadecimal number has a weight of 16 to the power of its position.
Solved Examples on Hexadecimal Number System
Example 1: Convert Hexadecimal 1A5 to Decimal
Solution:
Multiply First Digit (1) by 16 squared (256)
1Ã162 = 256
Multiply Second Digit (A, which is 10 in decimal) by 16 to the power of 1 (16)
10Ã161 = 160
Multiply Third Digit (5) by 16 to the power of 0 (1)
5Ã160 = 5
Adding the results,
1A5 = 1Ã162 + AÃ161 + 5Ã160
â 1A5 = 1Ã162 + 10Ã161 + 5Ã160
â 1A5 = 256 + 160 + 5 = 421
Decimal Equivalent of Hexadecimal number 1A5 is 421
Example 2: Convert Decimal 315 to Hexadecimal.
Solution:
Divide Decimal Number by 16
315÷16 = 19 with Remainder 11
The remainder (11) is represented as B in hexadecimal
Repeat the division with the quotient (19)
19÷16 = 1 with Remainder of 3
The remainder (3) is represented as 3 in hexadecimal
Hexadecimal Equivalent of Decimal Number 315 is 13B
Practice Questions on Hexadecimal Number System
Problem 1: Convert the hexadecimal number 2A to binary.
Problem 2: Convert the binary number 110110 to hexadecimal.
Problem 3: Add the hexadecimal numbers 1F and A3. Provide the result in hexadecimal.
Problem 4: Subtract the hexadecimal number B6 from D9. Provide the result in hexadecimal.
Problem 5: Multiply the hexadecimal number 7E by 3. Provide the result in hexadecimal.
Hexadecimal Number System - FAQs
What is a Hexadecimal Number System?
The hexadecimal number system is a method of counting using 16 digits combining
- Numbers (0-9)
- Letters (A-F)
What are 16 Digits of Hexadecimal Number System?
The 16 digits of the hexadecimal number system are 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, and the letters A, B, C, D, E, F.
How to write 16 in hexadecimal ?
In hexadecimal number system 16 is written as 10. (16 = 1Ã161 + 0Ã160)
What is the Use of Hexadecimal Number System?
Hexadecimal is handy in computers for expressing binary data more easily. It's also used in colors on computers, making it simpler to show a wide range of shades.
What is 20 Called in Hexadecimal?
In hexadecimal, 16 is represented as 14.
What is 8 in Hexadecimal Number System?
8 in Hexadecimal Number System is also, called 8.
How Many Digits are Used in the Hexadecimal Number System?
The hexadecimal system uses sixteen distinct digits: 0-9 for values zero to nine, and the letters A-F for values ten to fifteen.
Where are Hexadecimal Numbers Used by Programmers?
Hexadecimal numbers are commonly used by programmers to define locations in memory units of computers because they can represent large numbers in a more compact form than binary or decimal systems.
How Do You Convert a Hexadecimal Number to Binary?
To convert a hexadecimal number to binary, replace each hexadecimal digit with its corresponding 4-bit binary sequence. For example, the hexadecimal number 2A converts to the binary number 00101010.
How Do You Convert Binary to Hexadecimal?
To convert binary to hexadecimal, group the binary digits into sets of four (starting from the right), and then replace each set with the corresponding hexadecimal digit. For example, the binary number 1101011011 converts to the hexadecimal number 2D6.
Similar Reads
Hexadecimal Number System
Hexadecimal Number System is a base-16 number 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 al
10 min read
What is Hexadecimal Numbering ?
Hexadecimal numbering is a basic and important concept in computing and digital electronics. The hexadecimal numbering system which is often abbreviated as "hex", is a much more condensed view than binary or decimal. This article will take you through the basics of the Hexadecimal numbering System -
7 min read
Number System in Maths
Number System is a method of representing numbers on the number line with the help of a set of Symbols and rules. These symbols range from 0-9 and are termed as digits. Let's learn about the number system in detail, including its types, and conversion. Number System in MathsNumber system in Maths is
13 min read
Binary Number System
Binary Number System uses two digits, 0 and 1, and is the foundation for all modern computing. The word binary is derived from the word "bi" which means two. But what makes it so essential, and how does it work? In this article, we will dive deep into binary numbers, binary decimal number conversion
7 min read
What is a Number System?
A Number system is a method of showing numbers by writing, which is a mathematical way of representing the numbers of a given set, by mathematically using the numbers or symbols. Table of Content Number System Types of Number SystemsConversion of Number SystemsConversion from Decimal to Other Number
15 min read
Are decimals whole numbers?
No, decimals are not whole numbers. Whole numbers are non-negative integers (0, 1, 2, 3, etc.) that do not have any fractional or decimal parts. Decimals represent parts of a whole and can have digits after the decimal point, such as 0.5, 3.14, or 7.89, making them different from whole numbers. In t
5 min read
Difference Between Decimal and Binary Number System
Decimal Number is defined by the number which has a whole number and the fractional part separated by a decimal point. While Binary Number is defined by a number which is expressed as in the base-2 numeral system. It is always written in the form of 0 and 1. In math, a system that is used to represe
7 min read
Octal Number System
Octal Number System is a number system with base 8 as it uses eight symbols (or digits) namely 0, 1, 2, 3, 4, 5, 6, and 7. For example, 228, 138, 178, etc. are octal numbers. This number system is mainly used in computer programming as it is a compact way of representing binary numbers with each oct
10 min read
Number System Conversion in C
Number system conversion is a fundamental concept in computer science and programming. It involves changing the representation of a number from one base to another, such as converting a decimal number to binary or a hexadecimal number to binary. In this article, we will create a console program in t
7 min read
What is the biggest 3 digit number in decimal system?
The method to represent and work with numbers is known as the number system. A number system is a system of writing to represent numbers. It is the mathematical notation used to represent numbers of a given set by using digits or other symbols. It allows us to operate arithmetic operations such as d
5 min read
Is a decimal bigger than a whole number?
Number plays an important role in our life. People use numbers everywhere like counting or doing some calculations. People also use numbers for measurements. There is infinite use of numbers. Talking about a formal definition of Numbers. A number is a mathematical value used for counting or measurin
5 min read
Decimal Expansion of Real Numbers
The combination of a set of rational and irrational numbers is called real numbers. All the real numbers can be expressed on the number line. The numbers other than real numbers that cannot be represented on the number line are called imaginary numbers (unreal numbers). They are used to represent co
6 min read
How many types of number systems are there?
As Numbers are not only the mere symbols on a page but there is much more significance of numbers. In the study of mathematics, numerous number systems exist, each with its own significance and applications. From the familiar decimal system we use daily to the intriguing worlds of binary, octal, and
9 min read
Are negative decimals rational numbers?
Rational numbers are the numbers that can be expressed as the ratio of two integers. It includes all the integers and can be expressed in terms of fractions or decimals. It is denoted by âQâ. Example: -4, -6, -14, 0, 1, 2, 5, -0.4, 2.10, -2.12, -5.55 etc. When a rational number is divided, the outpu
5 min read
What are Numbers?
Numbers are symbols we use to count, measure, and describe things. They are everywhere in our daily lives and help us understand and organize the world. Numbers are like tools that help us:Count how many things there are (e.g., 1 apple, 3 pencils).Measure things (e.g., 5 meters, 10 kilograms).Show o
15+ min read
How to Teach Numbers System to Kids
Knowledge of the number system is one of the primary components of mathematics which serves as the foundation for most mathematical concepts. The early foundation for future mathematics progress is created through the education of this system to the kids. The number system also consists of different
6 min read
What is a real number system in mathematics?
The number system includes different types of numbers for example prime numbers, odd numbers, even numbers, rational numbers, whole numbers, etc. These numbers can be expressed in the form of figures as well as words accordingly. For example, the numbers like 40 and 65 expressed in the form of figur
4 min read
How to convert a whole number into a decimal?
The number system is defined as the system to represent different numbers. It is a mathematical representation of the given set of numbers by using digits or different numbers in a fixed manner. It helps to represent every number uniquely and shows the arithmetic structure of the figures. A number i
5 min read
Perl | Number and its Types
A Number in Perl is a mathematical object used to count, measure, and perform various mathematical operations. A notational symbol that represents a number is termed as a numeral. These numerals, in addition to their use in mathematical operations, are also used for ordering(in the form of serial nu
4 min read
Convert Decimal to Quinary
The numeral procedure applies distinct types of numerals such as prime numerals, odd numerals, even numerals, rational numerals, whole numerals, etc. These numerals can be represented in the state of realities as well as terms properly. For instance, the integers like 20 and 25 illustrated in the fo
8 min read