ALERT

[FREE DEMO] Deploy Your Enterprise Cloud in Minutes

Binary To Hexadecimal (B2X)

Definition - What does Binary To Hexadecimal (B2X) mean?

Binary to hexadecimal (B2X) is a conversion process involving the two aforementioned number systems. The original number is in binary format, base 2, and is converted to hexadecimal format, base 16.

The conversion can be done by converting each group of 4 binary bits into its decimal counterpart, and the hexadecimal equivalent of that decimal value is the hexadecimal equivalent of those 4 bits. For example, the binary value 1010 is 10 in decimal and subsequently "A" in hexadecimal.

Techopedia explains Binary To Hexadecimal (B2X)

Binary is the language used by computers, but it is often too long and confusing to display, so it is often presented to the user as hexadecimal values. Hexadecimal is often used to shorten binary values because each hexadecimal value is equivalent to four binary values or bits. There are 16 values in hexadecimal: 0 to 9 and A to F, or 0 to 15 in decimal, while there are only two values for binary: 1 and 0. Binary is often arranged in groups of 4 bits, which totals 15 when the place values of 8, 4, 2 and 1 are added.

To convert a binary value to hexadecimal, the decimal equivalent of each 4-bit group must be taken by adding the place values where 1s appear. In a 4-bit binary code, we add all the place values with a 1 on it, or multiply 8421 with its aligned value. So the binary code 1010 is equal to 8 + 0 + 2 + 0, which is decimal "10" or hexadecimal "A".

For example, the binary value "1100 0101 1110 0110" is converted to hexadecimal:

    1100 = 8 + 4 + 0 + 0 = 12 = [C]
    0101 = 0 + 4 + 0 + 1 = 5 = [5]
    1110 = 8 + 4 + 2 + 0 = 14 = [E]
    0110 = 0 + 4 + 2 + 0 = 6 = [6]
    1100 0101 1110 0110 = C5E6

Hexadecimal is significantly shorter than binary, so binary values which are the actual language used by computers are often presented to the user as hexadecimal values.

Techopedia Deals

Connect with us

Techopedia on Linkedin
Techopedia on Linkedin
Tweat cdn.techopedia.com
"Techopedia" on Twitter


'@Techopedia'
Sign up for Techopedia's Free Newsletter!

Email Newsletter

Join thousands of others with our weekly newsletter

Resources
The 4th Era of IT Infrastructure: Superconverged Systems
The 4th Era of IT Infrastructure: Superconverged Systems:
Learn the benefits and limitations of the 3 generations of IT infrastructure – siloed, converged and hyperconverged – and discover how the 4th...
Approaches and Benefits of Network Virtualization
Approaches and Benefits of Network Virtualization:
Businesses today aspire to achieve a software-defined datacenter (SDDC) to enhance business agility and reduce operational complexity. However, the...
Free E-Book: Public Cloud Guide
Free E-Book: Public Cloud Guide:
This white paper is for leaders of Operations, Engineering, or Infrastructure teams who are creating or executing an IT roadmap.
Free Tool: Virtual Health Monitor
Free Tool: Virtual Health Monitor:
Virtual Health Monitor is a free virtualization monitoring and reporting tool for VMware, Hyper-V, RHEV, and XenServer environments.
Free 30 Day Trial – Turbonomic
Free 30 Day Trial – Turbonomic:
Turbonomic delivers an autonomic platform where virtual and cloud environments self-manage in real-time to assure application performance.