How to Convert Hexadecimal to Binary or Decimal: 6 Steps (2024)

  • Categories
  • Education and Communications
  • Studying
  • Mathematics
  • Conversion Aids

Download Article

Explore this Article

parts

1Converting Hexadecimal to Binary

2Converting Hexadecimal to Decimal

3Understanding Hexadecimal Basics

Calculator, Practice Problems, and Answers

+Show 1 more...

-Show less...

Other Sections

Video

Tips and Warnings

Related Articles

References

Article Summary

Reviewed byGrace Imson, MA

Last Updated: April 9, 2024Fact Checked

Download Article

How do you change those funny numbers and letters to something you or your computer can understand? Converting hexadecimal to binary is very easy, which is why hexadecimal has been adopted in some programming languages. Converting to decimal is a little more involved, but once you've got it it's easy to repeat for any number.

Part 1

Part 1 of 3:

Converting Hexadecimal to Binary

Download Article

  1. 1

    Convert each hexadecimal digit to four binary digits. Hexadecimal was adopted in the first place because it's so easy to convert between the two. Essentially, hexadecimal is used as a way to display binary information in a shorter string. This chart is all you need to convert from one to the other:[1]

    HexadecimalBinary
    0

    0000

    1

    0001

    2

    0010

    3

    0011

    4

    0100

    5

    0101

    6

    0110

    7

    0111

    8

    1000

    9

    1001

    A

    1010

    B

    1011

    C

    1100

    D

    1101

    E

    1110

    F

    1111

  2. 2

    Try it yourself. It really is as simple as changing the digit into the four equivalent binary digits. Here are a few hex numbers for you to convert. Highlight the invisible text to the right of the equal sign to check your work:[2]

    • A23 = 1010 0010 0011
    • BEE = 1011 1110 1110
    • 70C558 = 0111 0000 1100 0101 0101 1000

    Advertisem*nt

  3. 3

    Understand why this works. In the "base two" binary system, n binary digits can be used to represent 2n different numbers. For example, with four binary digits, you can represent 24 = 16 different numbers. Since hexadecimal is a base sixteen system, a one digit number can be used to represent 161 = 16 different numbers. This makes conversion between the two systems extremely easy.[3]

    • You can also think of this as the counting systems "flipping over" to another digit at the same time. Hexadecimal counts "...D, E, F, 10" at the same time binary counts "1101, 1110, 1111, 10000".
  4. Advertisem*nt

Part 2

Part 2 of 3:

Converting Hexadecimal to Decimal

Download Article

  1. 1

    Review how base ten works. You use decimal notation every day without having to stop and think about the meaning, but when you first learned it, your parent or teacher might have explained it to you in more detail. A quick review of how ordinary numbers are written will help you convert the number:[4]

    • Each digit in a decimal number is in a certain "place." Moving from right to left, there's the "ones place," "tens place," "hundreds place," and so on. The digit 3 just means 3 if it's in the ones place, but it represents 30 when located in the tens place, and 300 in the hundreds place.
    • To put it mathematically, the "places" represent 100, 101, 102, and so on. This is why this system is called "base ten," or "decimal" after the Latin word for "tenth."
  2. 2

    Write a decimal number as an addition problem. This will probably seem obvious, but it's the same process we'll use to convert a hexadecimal number, so it's a good starting point. Let's rewrite the number 480,13710. (Remember, the subscript 10 tells us the number is written in base ten.):[5]

    • Starting with the rightmost digit, 7 = 7 x 100, or 7 x 1
    • Moving left, 3 = 3 x 101, or 3 x 10
    • Repeating for all digits, we get 480,137 = 4x100,000 + 8x10,000 + 0x1,000 + 1x100 + 3x10 + 7x1.
  3. 3

    Write the place values next to a hexadecimal number. Since hexadecimal is base sixteen, the "place values" correspond to the powers of sixteen. To convert to decimal, multiply each place value by the corresponding power of sixteen. Start this process by writing the powers of sixteen next to the digits of a hexadecimal number. We'll do this for the hexadecimal number C92116. Start on the right with 160, and increase the exponent each time you move left to the next digit:[6]

    • 116 = 1 x 160 = 1 x 1 (All numbers are in decimal except where noted.)
    • 216 = 2 x 161 = 2 x 16
    • 916 = 9 x 162 = 9 x 256
    • C = C x 163 = C x 4096
  4. 4

    Convert alphabetic characters to decimal. Numerical digits are the same in decimal or hexadecimal, so you don't need to change them (for instance, 716 = 710). For alphabetic characters, refer to this list to change them to the decimal equivalent:[7]

    • A = 10
    • B = 11
    • C = 12 (We'll use this on our example from above.)
    • D = 13
    • E = 14
    • F = 15
  5. 5

    Perform the calculation. Now that everything is written in decimal, perform each multiplication problem and add the results together. A calculator will be handy for most hexadecimal numbers. Continuing our example from earlier, here's C921 rewritten as a decimal formula and solved:[8]

    • C92116 = (in decimal) (1 x 1) + (2 x 16) + (9 x 256) + (12 x 4096)
    • = 1 + 32 + 2,304 + 49,152.
    • = 51,48910. The decimal version will usually have more digits than the hexadecimal version, since hexadecimal can store more information per digit.
  6. 6

    Practice the conversion. Here are a few numbers to convert from hexadecimal into decimal. Once you've worked out the answer, highlight the invisible text to the right of the equal sign to check your work:

    • 3AB16 = 93910
    • A1A116 = 4137710
    • 500016 = 2048010
    • 500D16 = 2049310
    • 18A2F16 = 10091110
  7. Advertisem*nt

Part 3

Part 3 of 3:

Understanding Hexadecimal Basics

Download Article

  1. 1

    Know how to use hexadecimal. Our ordinary decimal counting system is base ten, using ten different symbols to display numbers. Hexadecimal is a base sixteen number system, meaning it uses sixteen characters to display numbers.You can check hexadecimal to decimal conversion for big numbers on online tools.[9]

    • Counting from zero upward:
      HexadecimalDecimalHexadecimalDecimal
      0

      10

      16

      1

      1

      11

      17

      2

      2

      12

      18

      3

      3

      13

      19

      4

      4

      14

      20

      5

      5

      15

      21

      6

      6

      16

      22

      7

      7

      17

      23

      8

      8

      18

      24

      9

      9

      19

      25

      A

      10

      1A

      26

      B

      11

      1B

      27

      C

      12

      1C

      28

      D

      13

      1D

      29

      E

      14

      1E

      30

      F

      15

      1F

      31

  2. 2

    Use subscript to show which system you're using. Whenever it might be unclear which system you're using, use a decimal subscript number to denote the base. For example, 1710 means "17 in base ten" (an ordinary decimal number). 1710 = 1116, or "11 in base sixteen" (hexadecimal). You can skip this if your number has an alphabetic character in it, such as B or E. No one will mistake that for a decimal number.

  3. Advertisem*nt

Calculator, Practice Problems, and Answers

Sample Converting Hexadecimal to Binary or Decimal Calculator

Sample Converting Hexadecimal to Binary or Decimal Practice Problems

Sample Converting Hexadecimal to Binary or Decimal Practice Answers

Community Q&A

Search

Add New Question

  • Question

    What is 480137 converted to a hexadecimal and then to a binary number?

    How to Convert Hexadecimal to Binary or Decimal: 6 Steps (19)

    Community Answer

    480137 converted to a hexadecimal is 75389, and the binary is 0111 0101 0011 1000 1001.

    Thanks! We're glad this was helpful.
    Thank you for your feedback.
    If wikiHow has helped you, please consider a small contribution to support us in helping more readers like you. We’re committed to providing the world with free how-to resources, and even $1 helps us in our mission.Support wikiHow

    YesNo

    Not Helpful 70Helpful 97

  • Question

    What is the decimal equivalent of the hex number 0x3F?

    How to Convert Hexadecimal to Binary or Decimal: 6 Steps (20)

    Community Answer

    63. You just need to convert the 3F part.

    Thanks! We're glad this was helpful.
    Thank you for your feedback.
    If wikiHow has helped you, please consider a small contribution to support us in helping more readers like you. We’re committed to providing the world with free how-to resources, and even $1 helps us in our mission.Support wikiHow

    YesNo

    Not Helpful 20Helpful 23

  • Question

    How many permutations are there when using the hexadecimal system?

    How to Convert Hexadecimal to Binary or Decimal: 6 Steps (21)

    Community Answer

    It depends on how many hexadecimal digits you are using. 1 digit hexadecimal has 16 permutations. 2 digits have 256 permutations, etc. Each hexadecimal digit is represented with 4 bits, so if you have x hexadecimal digits, there are 2 ^ (x * 4) possible permutations.

    Thanks! We're glad this was helpful.
    Thank you for your feedback.
    If wikiHow has helped you, please consider a small contribution to support us in helping more readers like you. We’re committed to providing the world with free how-to resources, and even $1 helps us in our mission.Support wikiHow

    YesNo

    Not Helpful 22Helpful 18

See more answers

Ask a Question

200 characters left

Include your email address to get a message when this question is answered.

Submit

      Advertisem*nt

      Video

      Tips

      • Long hexadecimal numbers may require an online calculator to convert to decimal. You can also skip the work and have an online converter do the work for you, although it's a good idea to understand how the process works.[10]

        Thanks

        Helpful0Not Helpful0

      • You can adapt the "hexadecimal to decimal" conversion to convert any other base x numbering system to decimal. Just replace the powers of sixteen with powers of x instead. Try learning the base-60 Babylonian counting system!

        Thanks

        Helpful0Not Helpful0

      Submit a Tip

      All tip submissions are carefully reviewed before being published

      Name

      Please provide your name and last initial

      Submit

      Thanks for submitting a tip for review!

      Advertisem*nt

      You Might Also Like

      How toConvert Binary to HexadecimalConvert from Decimal to Hexadecimal: A Quick Guide + Examples
      How toUnderstand HexadecimalHow toConvert from Decimal to Binary°C to °F Conversion: A Complete GuideConversion Factor for Grams to Kilograms (and Kilograms to Grams)How toConvert Milliliters (mL) to Grams (g)How toCalculate Volume in LitresHow toConvert Within Metric MeasurementsConvert Pounds to Kilograms with These Easy TricksHow toConvert Meters to YardsHow toConvert cm to mm

      Advertisem*nt

      More References (1)

      About This Article

      How to Convert Hexadecimal to Binary or Decimal: 6 Steps (37)

      Reviewed by:

      Grace Imson, MA

      Math Teacher

      This article was reviewed by Grace Imson, MA. Grace Imson is a math teacher with over 40 years of teaching experience. Grace is currently a math instructor at the City College of San Francisco and was previously in the Math Department at Saint Louis University. She has taught math at the elementary, middle, high school, and college levels. She has an MA in Education, specializing in Administration and Supervision from Saint Louis University. This article has been viewed 1,477,019 times.

      122 votes - 67%

      Co-authors: 53

      Updated: April 9, 2024

      Views:1,477,019

      Categories: Conversion Aids

      Article SummaryX

      To convert hexadecimal to binary, convert each hexadecimal digit to 4 binary digits. Each of the 16 hexadecimal digits are equal to 4 binary digits, so all you need to do is memorize the 16 conversions. For example, the hexadecimal 1 is equal to the binary 0001. To convert hexadecimal to decimal, multiply each place value in the hexadecimal number by the corresponding power of sixteen. Then, add all of the products together to get the decimal. If you want to learn how to label the systems you're using in subscripts, keep reading the article!

      Did this summary help you?

      In other languages

      Spanish

      Portuguese

      Russian

      French

      German

      Chinese

      Indonesian

      Dutch

      Korean

      Thai

      Arabic

      Hindi

      • Print
      • Send fan mail to authors

      Thanks to all authors for creating a page that has been read 1,477,019 times.

      Reader Success Stories

      • How to Convert Hexadecimal to Binary or Decimal: 6 Steps (38)

        Clarence Smith

        Dec 28, 2016

        "What helped me was the explanation of hexadecimal to binaries, and hex to decimals, and explaining the base ten vs..." more

      More reader storiesHide reader stories

      Did this article help you?

      Advertisem*nt

      How to Convert Hexadecimal to Binary or Decimal: 6 Steps (2024)
      Top Articles
      [PDF] Robo-Advisors: Investing Through Machines | Semantic Scholar
      Gen Z Financial Habits: Spending & Saving Stats 2022 | Self Financial
      Star Wars Mongol Heleer
      Tlc Africa Deaths 2021
      Cottonwood Vet Ottawa Ks
      Culver's Flavor Of The Day Wilson Nc
      Noaa Swell Forecast
      7543460065
      Soap2Day Autoplay
      Progressbook Brunswick
      Elle Daily Horoscope Virgo
      Sport Clip Hours
      Grasons Estate Sales Tucson
      I Touch and Day Spa II
      Michigan cannot fire coach Sherrone Moore for cause for known NCAA violations in sign-stealing case
      10-Day Weather Forecast for Santa Cruz, CA - The Weather Channel | weather.com
      Kiddle Encyclopedia
      St Maries Idaho Craigslist
      Sea To Dallas Google Flights
      Southland Goldendoodles
      Hannaford Weekly Flyer Manchester Nh
      Sand Dollar Restaurant Anna Maria Island
      Craigslist Dubuque Iowa Pets
      Narragansett Bay Cruising - A Complete Guide: Explore Newport, Providence & More
      Danielle Moodie-Mills Net Worth
      Fuse Box Diagram Honda Accord (2013-2017)
      27 Fantastic Things to do in Lynchburg, Virginia - Happy To Be Virginia
      Big Boobs Indian Photos
      Rush County Busted Newspaper
      Deleted app while troubleshooting recent outage, can I get my devices back?
      Drabcoplex Fishing Lure
      Rocketpult Infinite Fuel
      Enjoy4Fun Uno
      Chatropolis Call Me
      Dcilottery Login
      Sig Mlok Bayonet Mount
      Amc.santa Anita
      Courtney Roberson Rob Dyrdek
      Craigslist Central Il
      Dr Mayy Deadrick Paradise Valley
      Iupui Course Search
      Gary Vandenheuvel Net Worth
      Victoria Vesce Playboy
      Big Brother 23: Wiki, Vote, Cast, Release Date, Contestants, Winner, Elimination
      antelope valley for sale "lancaster ca" - craigslist
      Bama Rush Is Back! Here Are the 15 Most Outrageous Sorority Houses on the Row
      Julies Freebies Instant Win
      15:30 Est
      O.c Craigslist
      Equinox Great Neck Class Schedule
      Latest Posts
      Article information

      Author: Manual Maggio

      Last Updated:

      Views: 5921

      Rating: 4.9 / 5 (49 voted)

      Reviews: 88% of readers found this page helpful

      Author information

      Name: Manual Maggio

      Birthday: 1998-01-20

      Address: 359 Kelvin Stream, Lake Eldonview, MT 33517-1242

      Phone: +577037762465

      Job: Product Hospitality Supervisor

      Hobby: Gardening, Web surfing, Video gaming, Amateur radio, Flag Football, Reading, Table tennis

      Introduction: My name is Manual Maggio, I am a thankful, tender, adventurous, delightful, fantastic, proud, graceful person who loves writing and wants to share my knowledge and understanding with you.