# Binary to Hexadecimal and Hex to Binary Conversion

As we are going through the basics of the digital electronics the first and very important part is understanding the different types of number system. As we have already discussed about the properties of various number system and interrelation among some of them, now this is the time to interrelate binary and hexadecimal number system. The conversion from one number system is quite easy and we will discuss both the cases in the following articles i.e. from

3DC16 is the hexadecimal number which we want to convert into binary. We know D and C are equivalent to 13 and 12 respectively in decimal number system.

Now converting each digit into its binary equivalent number we get

0011|1101|1100

Now merging all these groups binary numbers to make the final binary number we get 1111011100

**binary to hexadecimal**and from**hexadecimal to binary conversion**.## Binary to hexadecimal Conversion

To convert a**binary number to hexadecimal number**first we have to divide the digits of the binary number into groups of four taking from the right most side of the number and in the last group the number of digits is made four by putting zeroes in the left most side.After that the groups are converted into decimal numbers individually and written side by side in the same order as they were previously, now we have got the desired equivalent hexadecimal number of the binary number, an example will make it all clear for us.

We take any binary number suppose 100010100101_{2}

Breaking it into groups of 4 we get

1000|1010|0101

Now converting all the groups into decimal numbers individually we get

8 | 10 | 5

So the desired hexadecimal equivalent of the binary number 100010100101_{2} is 8A5_{16}

## Hexadecimal to Binary Conversion

Similarly the vice versa operation is also possible, i.e. we can convert any hexadecimal number into its equivalent binary number directly without any intermediate steps. The method is pretty easy, first of all we have to convert every digit of the hexadecimal number into its equivalent binary numbers (making every group a group of four by adding 0s to the left of the number). After all the digits are converted into binary numbers they are merged according to their positions to make the final binary number which is equivalent to the hexadecimal number is obtained. Now we will try to understand the method with the help of an example.3DC16 is the hexadecimal number which we want to convert into binary. We know D and C are equivalent to 13 and 12 respectively in decimal number system.

Now converting each digit into its binary equivalent number we get

0011|1101|1100

Now merging all these groups binary numbers to make the final binary number we get 1111011100

_{2}which is the binary equivalence of the hexadecimal number 3DC_{16}### Binary to Hexadecimal and Hex to Binary Conversion

**Comments/Feedbacks**

Closely Related Articles Binary Number System | Binary to Decimal and Decimal to Binary ConversionBinary to Decimal and Decimal to Binary ConversionBCD or Binary Coded Decimal | BCD Conversion Addition SubtractionBinary to Octal and Octal to Binary ConversionOctal to Decimal and Decimal to Octal ConversionHexadecimal to Decimal and Decimal to Hexadecimal ConversionGray Code | Binary to Gray Code and that to Binary ConversionOctal Number SystemDigital Logic Gates2′s Complement1′s ComplementASCII CodeHamming Code2s Complement ArithmeticError Detection and Correction Codes9s complement and 10s complement | SubtractionSome Common Applications of Logic GatesKeyboard EncoderAlphanumeric codes | ASCII code | EBCDIC code | UNICODEMore Related Articles Digital ElectronicsBoolean Algebra Theorems and Laws of Boolean AlgebraDe Morgan Theorem and Demorgans LawsTruth Tables for Digital LogicBinary Arithmetic Binary AdditionBinary SubtractionSimplifying Boolean Expression using K MapBinary DivisionExcess 3 Code Addition and SubtractionK Map or Karnaugh MapSwitching Algebra or Boolean AlgebraBinary MultiplicationParallel SubtractorBinary Adder Half and Full AdderBinary SubstractorSeven Segment DisplayBinary to Gray Code Converter and Grey to Binary Code ConverterBinary to BCD Code ConverterAnalog to Digital ConverterDigital Encoder or Binary EncoderBinary DecoderBasic Digital CounterDigital ComparatorBCD to Seven Segment DecoderParallel AdderParallel Adder or SubtractorMultiplexerDemultiplexer555 Timer and 555 Timer WorkingLook Ahead Carry AdderOR Operation | Logical OR OperationAND Operation | Logical AND OperationLogical OR GateLogical AND GateNOT GateUniversal Gate | NAND and NOR Gate as Universal GateNAND GateDiode and Transistor NAND Gate or DTL NAND Gate and NAND Gate ICsX OR Gate and X NOR GateTransistor Transistor Logic or TTLNOR GateFan out of Logic GatesINHIBIT GateNMOS Logic and PMOS LogicSchmitt GatesLogic Families Significance and Types of Logic FamiliesLatches and Flip FlopsS R Flip Flop S R LatchActive Low S R Latch and Flip FlopGated S R Latches or Clocked S R Flip FlopsD Flip Flop or D LatchJ K Flip FlopMaster Slave Flip FlopRead Only Memory | ROMProgrammable Logic DevicesProgrammable Array LogicApplication of Flip FlopsShift RegistersBuffer Register and Controlled Buffer RegisterData Transfer in Shift RegistersSerial In Serial Out (SISO) Shift RegisterSerial in Parallel Out (SIPO) Shift RegisterParallel in Serial Out (PISO) Shift RegisterParallel in Parallel Out (PIPO) Shift RegisterUniversal Shift RegistersBidirectional Shift RegisterDynamic Shift RegisterApplications of Shift RegistersUninterruptible Power Supply | UPSConversion of Flip FlopsJohnson CounterSequence GeneratorRing CounterNew Articles Principle of Water Content Test of Insulating OilCollecting Oil Sample from Oil Immersed Electrical EquipmentCauses of Insulating Oil DeteriorationAcidity Test of Transformer Insulating OilMagnetic Flux