3 Ways to Understand Hexadecimal - wikiHow (2024)

  • Categories
  • Education and Communications
  • Studying
  • Mathematics

Download Article

Explore this Article

methods

1Understanding the Concept of Hexadecimal

2Understanding Hexadecimal Color Systems

3Thinking in Hexadecimal

Other Sections

Video

Tips and Warnings

Related Articles

References

Article Summary

Reviewed byGrace Imson, MA

Last Updated: August 8, 2024Fact Checked

Download Article

Hexadecimal notation (base sixteen) is used throughout the Web and computer systems to indicate values. One good example is the notation for color in HTML pages. Reading and using hexadecimal takes some practice, but the basic concept is no more difficult to understand than the ordinary decimal (base ten) system you've been using all your life.

Method 1

Method 1 of 3:

Understanding the Concept of Hexadecimal

Download Article

  1. 1

    Learn what hexadecimal is. Just like the

    decimal

    number system uses

    ten

    different symbols to denote values from Zero to Nine, the

    hexadecimal

    number system uses

    sixteen

    different symbols to denote values from Zero to Fifteen. Any number can be written in either system.[1] Here's how to start counting in hexadecimal:

    • zero through fifteen: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F
    • sixteen through thirty-two: 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 1A, 1B, 1C, 1D, 1E, 1F, 20
  2. 2

    Learn how to write bases. The ten symbols used in the decimal number system form the base of the decimal number system.[2] Similarly, the sixteen symbols used in the hexadecimal number system form the base of the hexadecimal number system. Whenever it's unclear which base is being used, subscript numbers are added to show the base. For example, 10010 is "100 in base 10" and 10016 is "100 in base 16" (which equals 25610).

    • Another term for "base" is "radix" (pluralized "radixes" or "radices").

    Advertisem*nt

  3. 3

    Understand place values in decimal. We can understand long numbers written in base 10 without even pausing to think, but that's only because we've had a lot of practice.[3] We know automatically that "583410" means 5x103 + 8x102 + 3x101 + 4x100. Each digit in a multi-digit number has its own place value. Here are the place values in decimal, from right to left:

    • 10010 = 1
    • 10110 = 1010
    • 102 = 10x10 = 100
    • 103 = 10x10x10 = 1000
    • 104 = 10x10x10x10 = 10000
    • 105 = 10x10x10x10x10 = 100000 & so on.
  4. 4

    Learn the hexadecimal place values. Since hexadecimal is base sixteen, the place values are based on powers of sixteen, not powers of ten. Here are the powers of sixteen, written in decimal.[4]

    • 16010 = 1
    • 16110 = 1610
    • 162=16x16=256
    • 163=16x16x16=4096
    • 164=16x16x16x16=65536
    • 165=16x16x16x16x16=1048576 & so on.
    • If we write these in hexadecimal, these would instead be written as 1016, 100, 1000, etc.
  5. 5

    Convert from hexadecimal to decimal. Converting between two bases is a good way to become familiar with how each system works. Here's how to convert from any number in hexadecimal to the same number written in decimal:[5]

    • Write out your hexadecimal number: 15B3016
    • Write each digit out as a decimal multiplication problem, using the place value in the chart above: 15B30 = (1 x 6553610) + (5 x 409610) + (B x 25610) + (3 x 1610) + (0 x 1)
    • Convert non-decimal symbols into decimal numbers. In our example, B = 1110, so that digit can be converted to 1110 x 25610
    • Solve the problem. Use a calculator or work it out by hand, and you'll get the answer in decimal. 15B30 = 65536 + 20480 + 2816 + 48 + 0 = 8888010
  6. Advertisem*nt

Method 2

Method 2 of 3:

Understanding Hexadecimal Color Systems

Download Article

  1. 1

    Understand how colors on a computer screen are determined. All colors on a computer screen are determined by three values: red, green, and blue. All colors of light can be created by combining these three types of light in different proportions. On a computer screen, red, green, and blue can each be assigned any value from 0 to 255 (for a total of 256 possible values).[6]

    • This doesn't match the "primary" colors you learned in school, because that color system is based on physical pigment (like paint), not light. The paint system is sometimes called "subtractive color system" and the light system (the RGB system described here) "additive."
  2. 2

    Learn why hexadecimal is used for colors. HTML uses hexadecimal to describe colors. This is convenient, since a two-digit hexadecimal number can communicate exactly 25610 possible values. This isn't a coincidence; the number 25610 is due to limitations of old hardware, which could only handle 1000000002 colors, or 25610. Because 24 = 1610, any binary system can be easily converted to a hexadecimal system with ¼ as many digits.

    • The subscript numbers tell you which base the numbers is written in. Base2 is binary, base10 is ordinary decimal, and base16 is hexadecimal.
  3. 3

    Understand how the system works. The hexadecimal color system is easy to understand, once you know how it works. The first two digits are the red value, the next two are the green value, and the last two are the blue value.[7] Here are some examples:

    • #FFFFFF is white, while #000000 is black.
    • Any color with equal r, g, and b values (besides black and white) is a shade of grey, such as #121212, #5A5A5A, or #C0C0C0
    • #003000 is a very dark green. #003F00 is barely any lighter (you've only added F, or 1610 green), but #00FF00 is the brightest possible green (adding an additional C0, or 19210).
    • More complex colors are created by using all three types of light. Try to guess #7FFFD4, #8A2BE2, or #A0522D.
  4. Advertisem*nt

Method 3

Method 3 of 3:

Thinking in Hexadecimal

Download Article

  1. 1

    Teach yourself to read hexadecimal intuitively. Use the examples below as "milestones" to help you estimate the size of a hexadecimal number. This will give you a more intuitive understanding of hexadecimal, and let you read hexadecimal numbers without laboriously converting to decimal every time. As you'll see, one advantage to hexadecimal is that the number of digits doesn't increase nearly as fast as it does in decimal:

    • Humans have A fingers, or 1416 if you count the toes too. (Remember, the subscript 16 means a number is written in base sixteen.)
    • In a residential area, drive below 1916 miles per hour (or 2816 kilometers per hour).
    • A typical highway driving speed is 3C mph (or 6416 kph).
    • Water boils at D4 ºFahrenheit (6416 º Celsius).
    • The median U.S. income is roughly C350 dollars a year.
    • The population of the world is over 1A0,000,000.
  2. 2

    Learn hexadecimal addition. You can do hexadecimal addition problems without ever converting to another system. It does take some mental effort and practice to remember the new rules. Here are a few methods and tips:[8]

    • Count up one by one, using hexadecimal digits. For instance to solve 7+5 in hex, count 7, 8, 9, A, B, C.
    • Carry the one when needed. If your addition gets you past F, you "carry the one" as you would in a normal addition problem. For example, A+5 = F, A+6 = 1016, A+7 = 1116, and so on. Similarly, 3A+6 = 4016, 3A+7 = 4116, etc.
  3. 3

    Learn hexadecimal multiplication. Just like regular multiplication, the best way to become competent at hexadecimal multiplication is to memorize the multiplication tables. Here's the hex "6 times table" as an example (all numbers are hexadecimal):[9]

    • 6 x 1 = 6
    • 6 x 2 = C
    • 6 x 3 = 12
    • 6 x 4 = 18
    • 6 x 5 = 1E
    • 6 x 6 = 24
    • 6 x 7 = 2A
    • 6 x 8 = 30
    • 6 x 9 = 36
    • 6 x A = 3C
    • 6 x B = 42
    • 6 x C = 48
    • 6 x D = 4E
    • 6 x E = 54
    • 6 x F = 5A
  4. Advertisem*nt

Community Q&A

Search

Add New Question

  • Question

    How did this work in the movie The Martian as satellite communication?

    3 Ways to Understand Hexadecimal - wikiHow (17)

    Community Answer

    ASCII was used; it is the American Standard Code for Information Interchange. For example, 6E was the lowercase letter "n" and 6F was the lowercase letter "o." Combining these gives us 6E6F for "no."

    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

  • Question

    Convert the decimal number 64 to hexadecimal.

    3 Ways to Understand Hexadecimal - wikiHow (18)

    Donagan

    Top Answerer

    It's 40, which indicates 4 sixteens and zero ones.

    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 5Helpful 15

Ask a Question

200 characters left

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

Submit

      Advertisem*nt

      Tips

      • Any binary number can be easily represented in hexadecimal. Divide the binary number into four-digit sections (adding initial 0s if necessary), then replace each section with the equivalent hexadecimal digit. For example, 00002 = 016, 00012 = 116... all the way up to 11112 = F16.[10]

        Thanks

        Helpful0Not Helpful0

      • You can use an online base conversion calculator to convert between binary, decimal, and hexadecimal.

        Thanks

        Helpful0Not Helpful1

      • Computers actually use the "complement" method to add and subtract numbers (in hexadecimal or any other base), not the "carrying" method we're used to. The complement method is not a very useful method for humans, but if you program calculating software, you should learn it to make your program more efficient.

        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

      Video

      You Might Also Like

      How toConvert Hexadecimal to Binary or DecimalConvert from Decimal to Hexadecimal: A Quick Guide + Examples
      How toConvert Binary to HexadecimalSimple Ways to Find the Hex Code of Any Color on Your ComputerHow toCalculate PercentagesHow toUse an AbacusHow toFind the Domain of a FunctionHow toMeasure CentimetersHow toWrite Numbers in WordsHow toCalculate RatiosHow toFind the Y InterceptThe Trachtenberg Method: Learn to Calculate Multi-Digit Numbers Quickly How toFind the Domain and Range of a FunctionHow toSubtract Fractions from Whole Numbers

      Advertisem*nt

      More References (1)

      About This Article

      3 Ways to Understand Hexadecimal - wikiHow (34)

      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 297,249 times.

      31 votes - 48%

      Co-authors: 35

      Updated: August 8, 2024

      Views:297,249

      Categories: Mathematics

      Article SummaryX

      To understand hexadecimal, first learn that in this number system there are 16 different symbols used to denote values from 0 to 15. The 16 symbols used in the hexadecimal number system form the base. Since hexadecimal is based on 16, the place values are based on powers of 16. To convert from hexadecimal to decimal, write out the hexadecimal number, convert non-decimal symbols into decimal numbers, and solve the problem. To learn how to understand the hexadecimal color system, keep reading!

      Did this summary help you?

      In other languages

      Spanish

      Russian

      German

      French

      Indonesian

      • Print
      • Send fan mail to authors

      Thanks to all authors for creating a page that has been read 297,249 times.

      Reader Success Stories

      • 3 Ways to Understand Hexadecimal - wikiHow (35)

        Anonymous

        Aug 4, 2023

        "Clear and concise. Really helpful for someone completely unfamiliar with different number systems."

      More reader storiesHide reader stories

      Did this article help you?

      Advertisem*nt

      3 Ways to Understand Hexadecimal - wikiHow (2024)

      FAQs

      How do you understand hexadecimal? ›

      The hexadecimal number system is a type of number system, that has a base value equal to 16. It is also pronounced sometimes as 'hex'. Hexadecimal numbers are represented by only 16 symbols. These symbols or values are 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E and F.

      What are the 4 main uses of hexadecimal? ›

      There are many uses of hexadecimal in computers:
      • Memory addresses and other hardware related values.
      • Representation of colour values.
      • Error messages.
      • Memory dump.
      • Debugging.
      • IP addresses.
      • ASCII / Unicode.
      • Assembly language.

      Is hexadecimal easier to understand? ›

      Hex is useful because large numbers can be represented using fewer digits. For example, colour values and MAC addresses are often represented in hex. Additionally, hex is easier to understand than binary. Programmers often use hex to represent binary values as they are simpler to write and check than when using binary.

      How to convert hexadecimal to decimal wikihow? ›

      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.

      How to decipher hexadecimal code? ›

      Start with the right-most digit of your hex value. Multiply it by 160, that is: multiply by 1. In other words, leave it be, but keep that value off to the side. Remember to convert alphabetic hex values (A, B, C, D, E, and F) to their decimal equivalent (10, 11, 12, 13, 14, and 15).

      How is hexadecimal used in everyday life? ›

      For example, hexadecimal is used to denote colors in the “hex” scheme. For memory readouts, values are also often in hexadecimal. Even braille is coded in hexadecimal. There are a couple obvious reasons why hexadecimal is preferable to the standard binary that computers store at the low level.

      What are 2 benefits of using hexadecimal? ›

      Hex numbers are compact and use less memory, so more numbers can be stored in computer systems. Their small size also makes input-output handling easier compared to other numbering formats. Because it's easy to convert hexadecimal to binary and vice versa, the system is widely used in computer programming.

      Do computers understand hexadecimal? ›

      Computers only understand digital logic, normally represented by the binary numeral system. hex is just for humans, as it's easy to map 1 hex digit into 4 bits.

      How to understand hex color codes? ›

      A HEX is a 6 digit sequence. The first 2 digits tell us how much Red is used, the next two digits tell us how much Green there is, and you guessed it, the last 2 digits relate to how much Blue is in the mix.

      What are the rules for hexadecimal? ›

      Unlike the decimal system representing numbers using ten symbols, hexadecimal uses sixteen distinct symbols, most often the symbols "0"–"9" to represent values 0 to 9 and "A"–"F" (or "a"–"f") to represent values from ten to fifteen.

      Should I memorize hexadecimal? ›

      Binary and Hex are both closely related, since one digit in hexadecimal represents 4 digits in binary. This is why they're so prevalent in programming and computer science. Don't worry too much if it takes you a while to pick up though, since you're essentially learning to count from scratch again.

      What is the trick to convert hex to decimal? ›

      To use this formula:
      1. Change the characters to digits by using the conversion table if necessary.
      2. Then multiply the digits by the exponents of 16, i.e., 160, 161, 162, 163, ... by starting with the rightmost digit in order.
      3. Add all the products and sum gives the decimal equivalent of the given hexadecimal number.

      How to read hex data? ›

      The first two letters/numbers refer to red, the next two refer to green, and the last two refer to blue. The color values are defined in values between 00 and FF (instead of from 0 to 255 in RGB). Numbers are used when the value is 1-9. Letters are used when the value is higher than 9.

      How many bits are in a hex? ›

      For binary numbers, each hexadecimal number represents four bits. Therefore, an 8-bit binary number is represented by two hexadecimal numbers, a 16-bit binary is represented by four hexadecimal numbers, and so on.

      How do you explain hex code? ›

      Hex color codes are values that tell the display how much of a color to show. The values are a special code that represents color values from 0 to 255. If red, green, and blue are all at the minimum 0 (represented as “00” in the code), the color expressed is the color black.

      How do you interpret hex values? ›

      The first nine numbers (0 to 9) are the same ones commonly used in the decimal system. The next six two-digit numbers (10 to 15) are represented by the letters A through F. This is how the hex system uses the numbers from 0 to 9 and the capital letters A to F to represent the equivalent decimal number.

      How to solve the hexadecimal? ›

      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 understand a hex file? ›

      hex file is in Intel Hex32 format. This means it can support 32 bit wide address memory devices. But the format is broken up into an upper 16 bits and a lower 16 bits. The upper 16 bits are known as the extended address.

      Top Articles
      Top Technical Indicators for Rookie Traders
      What Is Energy Saver Mode on My AC?
      NOAA: National Oceanic & Atmospheric Administration hiring NOAA Commissioned Officer: Inter-Service Transfer in Spokane Valley, WA | LinkedIn
      Knoxville Tennessee White Pages
      Valley Fair Tickets Costco
      Hocus Pocus Showtimes Near Harkins Theatres Yuma Palms 14
      Summit County Juvenile Court
      Google Sites Classroom 6X
      Kansas Craigslist Free Stuff
      Tv Guide Bay Area No Cable
      Truist Park Section 135
      7543460065
      FIX: Spacebar, Enter, or Backspace Not Working
      Seafood Bucket Cajun Style Seafood Restaurant in South Salt Lake - Restaurant menu and reviews
      Help with Choosing Parts
      Belly Dump Trailers For Sale On Craigslist
      Playgirl Magazine Cover Template Free
      iOS 18 Hadir, Tapi Mana Fitur AI Apple?
      Payment and Ticket Options | Greyhound
      Sam's Club La Habra Gas Prices
      Daylight Matt And Kim Lyrics
      Weepinbell Gen 3 Learnset
      Pickswise Review 2024: Is Pickswise a Trusted Tipster?
      Aldi Bruce B Downs
      Fsga Golf
      Noaa Duluth Mn
      Village
      Essence Healthcare Otc 2023 Catalog
      Parkeren Emmen | Reserveren vanaf €9,25 per dag | Q-Park
      Craigslist Panama City Beach Fl Pets
      4 Times Rihanna Showed Solidarity for Social Movements Around the World
      Claio Rotisserie Menu
      Keshi with Mac Ayres and Starfall (Rescheduled from 11/1/2024) (POSTPONED) Tickets Thu, Nov 1, 2029 8:00 pm at Pechanga Arena - San Diego in San Diego, CA
      Mawal Gameroom Download
      Dairy Queen Lobby Hours
      Police Academy Butler Tech
      Otter Bustr
      How are you feeling? Vocabulary & expressions to answer this common question!
      Tiny Pains When Giving Blood Nyt Crossword
      Oxford House Peoria Il
      Sam's Club Gas Prices Deptford Nj
      R/Moissanite
      San Bernardino Pick A Part Inventory
      Www Usps Com Passport Scheduler
      Hazel Moore Boobpedia
      Sour OG is a chill recreational strain -- just have healthy snacks nearby (cannabis review)
      FedEx Authorized ShipCenter - Edouard Pack And Ship at Cape Coral, FL - 2301 Del Prado Blvd Ste 690 33990
      How the Color Pink Influences Mood and Emotions: A Psychological Perspective
      Greatpeople.me Login Schedule
      Grace Family Church Land O Lakes
      How to Choose Where to Study Abroad
      Latest Posts
      Article information

      Author: Ray Christiansen

      Last Updated:

      Views: 6715

      Rating: 4.9 / 5 (49 voted)

      Reviews: 88% of readers found this page helpful

      Author information

      Name: Ray Christiansen

      Birthday: 1998-05-04

      Address: Apt. 814 34339 Sauer Islands, Hirtheville, GA 02446-8771

      Phone: +337636892828

      Job: Lead Hospitality Designer

      Hobby: Urban exploration, Tai chi, Lockpicking, Fashion, Gunsmithing, Pottery, Geocaching

      Introduction: My name is Ray Christiansen, I am a fair, good, cute, gentle, vast, glamorous, excited person who loves writing and wants to share my knowledge and understanding with you.