To use Hexadecimal Calculator, enter the values in the input boxes below and click on the Calculate button.
The hexadecimal variety machine (hex) features truly identically to the decimal and binary systems. As opposed to the use of a base of 10 or 2 respectively, it makes use of a base of sixteen. Hex uses 16 digits along with 0-9, simply because the decimal device does, however also makes use of the letters a, b, c, d, e, and f (equal to a, b, c, d, e, f) to symbolize the numbers 10-15. Each hex digit represents 4 binary digits, referred to as nibbles, which makes representing big binary numbers less complicated. As an example, the binary cost of 1010101010 may be represented as 2aa in hex. This facilitates computers to compress large binary values in a way that may be without difficulty converted among the 2 systems.
Hex/Decimal Conversion
Hex | Binary | Decimal |
0 | 0 | 0 |
1 | 1 | 1 |
2 | 10 | 2 |
3 | 11 | 3 |
4 | 100 | 4 |
5 | 101 | 5 |
6 | 110 | 6 |
7 | 111 | 7 |
8 | 1000 | 8 |
9 | 1001 | 9 |
A | 1010 | 10 |
B | 1011 | 11 |
C | 1100 | 12 |
D | 1101 | 13 |
E | 1110 | 14 |
F | 1111 | 15 |
14 | 10100 | 20 |
3F | 111111 | 63 |
Converting among decimal and hex entails knowledge the area values of the one-of-a-kind wide variety structures. A more in-depth dialogue is available on the binary calculator page. Observe that changing between decimal and hex is pretty just like changing among decimal and binary. The potential to carry out the conversion of either have to make the other notably simple. As previously noted, hex functions the usage of the base of 16. This means that for the value 2aa, every region cost represents a energy of 16. Starting from the proper, the first "a" represents the "ones" location, or a hundred and sixty. The second one "a" from the proper represents 161, and the two represents 162. Take into account that "a" in hex is equivalent to 10 in decimal. Knowing this data, it is then possible to convert from hex to decimal, as shown under:
Ex: 2aa = (2 × 162) + (a × 161) + (a × 160)
= (2 × 256) + (10 × 16) + (10 × 1)
= 512 + 160 + 10 = 682
Changing from decimal to hex is barely greater involved, however seotoolkitplus makes use of the same concepts. Seek advice from the steps and examples below. It is essential to work via the instance provided in conjunction with the indexed steps as a way to apprehend the method:
locate the most important electricity of 16 that is much less than or same to the range to be converted, in an effort to be known as x.
Determine how many times the power of sixteen determined in step 1 is going into x, and be aware of that variety.
Multiply the wide variety observed in step 2 through the electricity of sixteen and subtract this cost from x. This new price can be referred to as y.
Be aware that the variety determined in step 2 will be the cost written in the region value for the power of 16 that become discovered. If, for example, the largest electricity of sixteen become observed to be 164, and the range in step 2 turned into discovered to be 3, the hex cost would have the wide variety 3 in its 164 area value: 3qrst, in which qrst represents the one hundred sixty through three location values.
Repeat steps 1-3 the use of y as the brand new beginning price. Hold the process until sixteen is bigger than the closing cost, and assign the the rest to the a hundred and sixty vicinity price.
Assign every of the values found in each iteration of step 2 to its respective vicinity cost to determine the hex value.
Ex: convert decimal 1500 to hex
(1) largest electricity = 162 = 256
(2) 256 × 5 = 1280, so (5 × 162)
(3) 1500 - 1280 = 220
(4) 16 × 13 = 208, so (13 × 161)
(5) 220 - 208 = 12
(6) 16 is bigger than 12, so 12 is the price within the 160 region cost
(7) 1500 = (5 × 162) + (13 × 161) + (12 × one hundred sixty)
(8) remember that 10-15 have letter numerals in hex: 13 = d, and 12 = c
(9) consequently the hex cost of 1500 is: 5dc
Changing from hex to decimal makes use of the equal concepts, but is arguably less difficult. Multiply every digit in the hex cost by way of its corresponding vicinity price, and locate the sum of every result. The system is the same no matter whether or not the hex fee consists of letter numerals or no longer.
Ex: convert hex 1024 to decimal
(1) (1 × 163) + (0 × 162) + (2 × 161) + (4 × 160)
(2) 4096 + 0 + 32 + 4 = 4132