Decimal to Hexadecimal Converter | Calculator (2024)

Decimal to Hexadecimal Calculator is a free online tool prepared by GeekforGeeks that converts the given value of the decimal number into the value of the hexadecimal number. It is a fast and easy-to-use tool that helps students solve various problems.

Table of Content

  • How to use Decimal to Hexadecimal Calculator?
  • What is Decimal to Hexadecimal Conversion?
  • Convert Decimal to Hexadecimal
  • Decimal to Hexadecimal Table
  • Decimal to Hexadecimal Conversion Solved Examples
  • Practice Questions
  • FAQs

How to use Decimal to Hexadecimal Calculator?

We can easily use the decimal to hexadecimal converter by following the steps discussed below,

Step 1: Enter the given value in the decimal input field.

Step 2: Click on the convert button to convert the decimal value into the hexadecimal value.

Step 3: The value shown as the result is the required value in the hexadecimal form.

What is Decimal to Hexadecimal Conversion?

Decimal to hexadecimal conversion is the process of converting a decimal number to a hexadecimal number. The decimal numeral system has a base value of 10 (0 to 9) and the hexadecimal has a base value of 16 (0 to 9 and A to F for 10-15).

There are different ways to convert Decimal to Hex numbers. They are as follows:

Converting Numbers with the Integer part

Step 1: Take the decimal number as dividend and 16 as the divisor (hexadecimal number will have 16 as a base)

Step 2: Divide the dividend with the divisor and store the remainder in an array

Step 3: Now divide the quotient obtained from the above step by 16 and store the remainder in the array.

Step 4: Repeat the third step until the number is greater than zero.

Step 5: The final hexadecimal value will be the reverse order of the array.

Example 1: Let’s consider a decimal number 450. We need to convert this decimal number to a hexadecimal number.

Solution:

Given: Decimal number = 450(10)

Step 1: 450/16 gives Q1 = 28 and R1 = 2

Step 2: 28/16 gives Q2 = 1 and R2 = 12 = C

Step 3: 1/16 gives Q3 = 0 and R3 = 1

Step 4: 0/16 gives Q4 = 0 and R4 = 0

Therefore, the hexadecimal value is 01C2(16)

Converting Numbers with Fractional Parts

Step 1: Take the decimal fractional number and multiply it with 16 (hexadecimal number will have 16 as a base)

Step 2: Store the remainder in an array i.e. the integer part

Step 3: Repeat the above two steps until the number is zero.

Step 4: The final hexadecimal value will be the elements of the array.

Example 1: Convert 0.0645(10) to _______(16)

Solution:

Given: Decimal number = 0.0645(10)

Step 1: 0.0645 x 16 = 1.032 and R1 = 1

Step 2: 0.032 x 16 = 0.512 and R2 = 0

Step 3: 0.512 x 16 = 8.192 and R3 = 8

Step 4: 0.192 x 16 = 3.072 and R3 = 3

Step 5: 0.072 x 16 = 1.152 and R3 = 1

The fractional part is still not zero so it continues, now we can take up to 5 remainders

Therefore, the hexadecimal value is 0.10831…(16)

Converting Numbers with Both Integer and Fractional parts

Steps of both the integer part and fractional part are to be followed.

Example 1: Convert 256.00390625(10) to _________(16)

Solution:

Given: Decimal number = 256.00390625(10)

Let’s perform the conversion on integer part:

Integer value = 256(10)

Step 1: 256/16 gives Q1 = 16 and R1 = 0

Step 2: 16/16 gives Q2 = 1 and R2 = 0

Step 3: 1/16 gives Q3 = 0 and R3 = 1

Let’s perform the conversion on fractional part:

Fractional value = 0.00390625(10)

Step 1: 0.00390625 x 16 = 0.0625 and R1 = 0

Step 2: 0.0625 x 16 = 1.0 and R2 = 1

Step 3: 0.0 x 16 = 0 and R3 = 0

Therefore, the hexadecimal value is 100.010(16)

Indirect Conversion

In this type of conversion, we will convert the decimal number to a binary number or octal number and further convert it to a hexadecimal number by grouping digits.

Example 1: Convert 66(10) to _______(16)

Solution:

Given: Decimal Number = 345(10)

Convert the given decimal number to its binary form:

Decimal to Hexadecimal Converter | Calculator (1)

Binary Number = 1000010(2)

Now, Group 4 binary digits as one group and write its hexadecimal value

i.e. 0100 0010

Therefore, Hexadecimal Number = 42(16)

Convert Decimal to Hexadecimal

Converting decimal to hexadecimal is simple using a conversion table. Memorize the table for easy conversion of numbers 1 to 15. To convert larger numbers, divide by 16 and use the remainder as the hexadecimal digit. Check the table for values 0 to 15 for reference.

Decimal to Hexadecimal Table

The following table shows the representation of Hexadecimal, decimal and binary values:

Decimal DigitHexadecimal DigitBinary Form
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

Also Check:

  • Decimal To Binary
  • Number System and Base Conversions
  • Convert Decimal to Octal

Decimal to Hexadecimal Conversion Solved Examples

Example 1: Convert 20 in decimal to hexadecimal

Solution:

We know that to convert a number from decimal to hexadecimal we need to divide the number by 16 and then successively divide the quotient by 16 until quotient is zero

20 ÷ 16 gives Q1 = 1, R1 = 4

1 ÷ 16 gives Q2 = 0, R2 = 1

Hence, 20 in decimal is equal to 14 in hexadecimal

Example 2: Convert (678)10 to Hexadecimal

Solution:

678 ÷ 16 gives Q1 = 42, R1 = 6

42 ÷ 16 gives Q2 = 2, R2 = 10 = A

2 ÷ 16 gives Q3 = 0, R3 = 2

Hence, (678)10 = 2A6 in Hexadecimal

Example 3: Convert (1429)10 into Hexadecimal

Solution:

1429 ÷ 16 gives Q1 = 89 and R1 = 5

89 ÷ 16 gives Q2 = 5 and R2 = 9

5 ÷ 16 gives Q3 = 0 and R3 = 5

Hence (1429)10 = 595 in Hexadecimal

Example 4: Convert 0.125 in Hexadcimal

Solution:

To convert a fractional number we multiply the fractional part by 16 and then again multiply the fractional part of the product by 16 till the number becomes zero and then write the result from the first product and not from the last as we do normally.

0.125 ⨯ 16 = 2.0

0 ⨯ 16 = 0

Hence, (.125)10 = 0.2

Practice Questions on Decimal to Hexadecimal Conversion

Q1: 234

Q2: 4573

Q3: 0.1345

Q4: 675434

Q5: 567

FAQs on Decimal to Hexadecimal Conversion

1. How to convert Decimal to Hex?

  1. Divide the number by 16.
  2. Get the integer quotient for the next iteration.
  3. Get the remainder for the hex digit.
  4. Repeat the steps until the quotient is equal to 0.

2. In the conversion from Decimal to Hexadecimal, what is the change in bases?

The base from 10 (decimal) changes to 16(hexadecimal).

3. What does 0 mean in hexadecimal?

The Decimal Number 0 is also equal to 0 in Hexadecimal Form.

4. What is Decimal to Hexadecimal Conversion?

Decimal to hex conversion is the process of converting a decimal number with a base of 10 to a hexadecimal number with a base of 16.

5. What is conversion of decimal into hexadecimal?

The conversion of decimal numbers into hexadecimal involves representing decimal values using the base-16 numbering system. In this system, digits from 0 to 9 are represented as usual, and digits from 10 to 15 are represented as A, B, C, D, E, and F, respectively. The process includes dividing the decimal number by 16 repeatedly and noting the remainders to obtain the hexadecimal equivalent. This method allows for easy representation of values in computers, as hexadecimal is commonly used in programming and computing.



S

sharanyatriveni

Decimal to Hexadecimal Converter | Calculator (2)

Improve

Previous Article

Gallons to Liters Converter

Next Article

Decimal to Binary Converter

Please Login to comment...

Decimal to Hexadecimal Converter | Calculator (2024)

FAQs

How do I convert decimal to hexadecimal? ›

Method for Decimal to Hexadecimal Number System Conversion:

Step-1: First, divide the given number by 16. Step-2: The remainder left here, will produce the hex value. Step-3: Take the quotient from above and repeat steps 1-3 till quotient becomes 0. Step-4: Write all the remainders in reverse order.

How to convert decimal to hexadecimal calculator with steps? ›

Converting from decimal to hexadecimal involves dividing the decimal number by 16 and recording the remainder. This process is repeated with the quotient until the quotient is zero. The hex number is then read from the last remainder to the first.

How to write 20 in hexadecimal? ›

So, the hex value for 20 is 14 (and you say it as ONE–FOUR).

What is the decimal number 12 in hex? ›

c 00001100

What is the fastest way to convert hexadecimal to decimal? ›

To convert a hexadecimal number into decimal, multiply each digit with the corresponding power of 16 (starting from the rightmost digit multiplied by 160). Finally add up the products.

How do you convert hexadecimal to decimal without a calculator? ›

Conversion From Hex to Decimal

To convert hex to a decimal manually, you should first start multiplying the hex numbers by 16. Then, you raise it to a power of 0 and increase that power each time by 1 according to the hexadecimal equivalent system.

How do you convert hexadecimal manually? ›

The conversion formula for hexadecimal to decimal is: d n-1d3 d2 d1 d0 (hexadecimal number) = d n-1 × 16n-1+ … + d3 × 163 + d2 × 162 + d1 × 161 + d0 × 160 (decimal number).

What is the formula for hexadecimal conversion? ›

Write down the hexadecimal number. Assign decimal values to each hex digit (0-9 remain the same, and A=10, B=11, C=12, D=13, E=14, F=15). Start from the rightmost digit (the least significant digit). Multiply the value of the digit by 16 raised to the power of its position (starting from 0 for the rightmost digit).

What is 75 decimal to hexadecimal? ›

When you convert 75 in twofold code it would seem that 0100 1011, Hexadecimal of this esteem is 4B.

What is an example of a hexadecimal conversion? ›

Examples on Hexadecimal Number System

Example 1: Convert (1101100011)2 to Hexadecimal. Therefore, (1101100011)2 = (363)16 . Example 2: What is decimal equivalent is (78DE)16 ( 78 D E ) 16 . Therefore, the decimal equivalent of (78DE)16 ( 78 D E ) 16 = (30942)10 ( 30942 ) 10 .

How to write numbers in hexadecimal? ›

Digits in hexadecimal use the standard symbols 0, 1, 2, 3, 4, 5, 6, 7, 8, and 9 to represent the corresponding value, and use the first six letters of the alphabet to represent the values 10 through 15 (E.G: A, B, C, D, E, F).

How to convert decimal to hexadecimal easy way? ›

How to Convert Decimal to Hexadecimal?
  1. Step 1: Divide the given decimal number system value by 16 and note the remainder.
  2. Step 2: Divide the quotient by 16. ...
  3. Step 3: Use the characters A, B, C, D, E, F in place of 10, 11, 12, 13, 14, 15 in the remainders respectively, wherever needed.

How to calculate hex code? ›

Summary – Reading HEX Color Codes

We always multiply the first number of each pair by 16, then add the two numbers together to get our R, G, or B value. The closer that number is to 255, the brighter and more saturated it is. The closer these values are to 0, the darker and less colorful it is.

What is f in hexadecimal? ›

Use the decimal value for each hexadecimal digit. For 0-9, it is the same, but A = 10, B = 11, C = 12, D = 13, E = 14, and F = 15.

What is 512.45 in decimal to hexadecimal? ›

Answer: 512.45 from decimal to hexadecimal is 200.7333333333.

What is 89392 decimal to hexadecimal? ›

Answer: 89392 from decimal to hexadecimal is 15D30.

What is the formula for hex to decimal? ›

The hexadecimal digit is expanded to multiply each digit with the power of 16. The power starts at 0 from the right moving forward towards the right with the increase in power. For the conversion to complete, the multiplied numbers are added. Decimal Number = dn-1 × 16r-1+....

What is 960 decimal to hexadecimal? ›

Therefore, 960 in decimal is equivalent to 3C0 in hexadecimal.

Top Articles
Dog Insurance Plans from Nationwide® | Find Dog Health Insurance
Helpful Facts on Car Liability Insurance Coverage
No Hard Feelings Showtimes Near Metropolitan Fiesta 5 Theatre
Euro (EUR), aktuální kurzy měn
Obor Guide Osrs
Prosper TX Visitors Guide - Dallas Fort Worth Guide
Otterbrook Goldens
St Als Elm Clinic
Gabrielle Abbate Obituary
Erskine Plus Portal
Noaa Swell Forecast
Kostenlose Games: Die besten Free to play Spiele 2024 - Update mit einem legendären Shooter
Cube Combination Wiki Roblox
Florida (FL) Powerball - Winning Numbers & Results
4156303136
Caroline Cps.powerschool.com
Goldsboro Daily News Obituaries
Alaska: Lockruf der Wildnis
Craigslist Pets Sac
Rainfall Map Oklahoma
Mills and Main Street Tour
Unlv Mid Semester Classes
Cpt 90677 Reimbursem*nt 2023
Wal-Mart 140 Supercenter Products
Der Megatrend Urbanisierung
NBA 2k23 MyTEAM guide: Every Trophy Case Agenda for all 30 teams
Allybearloves
Laveen Modern Dentistry And Orthodontics Laveen Village Az
Why do rebates take so long to process?
Encore Atlanta Cheer Competition
The EyeDoctors Optometrists, 1835 NW Topeka Blvd, Topeka, KS 66608, US - MapQuest
Dtlr Duke St
PCM.daily - Discussion Forum: Classique du Grand Duché
Haunted Mansion Showtimes Near Epic Theatres Of West Volusia
Manuela Qm Only
Milwaukee Nickname Crossword Clue
Why Are The French So Google Feud Answers
Acuity Eye Group - La Quinta Photos
Claim loopt uit op pr-drama voor Hohenzollern
Culver's of Whitewater, WI - W Main St
Japanese Big Natural Boobs
Pro-Ject’s T2 Super Phono Turntable Is a Super Performer, and It’s a Super Bargain Too
Pgecom
Swsnj Warehousing Inc
Phmc.myloancare.com
Amateur Lesbian Spanking
Bismarck Mandan Mugshots
60 Second Burger Run Unblocked
All Obituaries | Roberts Funeral Home | Logan OH funeral home and cremation
Cbs Scores Mlb
Latest Posts
Article information

Author: Amb. Frankie Simonis

Last Updated:

Views: 6199

Rating: 4.6 / 5 (56 voted)

Reviews: 95% of readers found this page helpful

Author information

Name: Amb. Frankie Simonis

Birthday: 1998-02-19

Address: 64841 Delmar Isle, North Wiley, OR 74073

Phone: +17844167847676

Job: Forward IT Agent

Hobby: LARPing, Kitesurfing, Sewing, Digital arts, Sand art, Gardening, Dance

Introduction: My name is Amb. Frankie Simonis, I am a hilarious, enchanting, energetic, cooperative, innocent, cute, joyous person who loves writing and wants to share my knowledge and understanding with you.