How To Convert Between Binary, Decimal & Hexadecimal
--
Binary: base-2 numeric system which uses two digits: 0, 1
Decimal: base-10 numeric system which use ten digits: 0–9
Hexadecimal: base-16 numeric system which uses sixteen digits: 0–9, A-F
Binary → Decimal
As binary is base-2, write powers of 2 (starting from zero) against the binary number and add up the values which have a ‘1’ in their place.
Decimal → Binary
Start from the left hand side and add up powers of 2 until you get to the decimal number.
Hexadecimal → Decimal
Start from the left hand side and add up powers of 16 until you get to the decimal number. In hexadecimal, numbers greater than 9 are represented by letters (i.e. A = 10, B = 11…).
Decimal → Hexadecimal
Start from the left hand side and add up powers of 16 until you get to the decimal number.
Binary → Hexadecimal
Split the 8-bit binary number into two nibbles (cute word for 4 bits), calculate the individual hexadecimal value and place them together.
Hexadecimal → Binary
Calculate the individual binary value for each nibble (4 bits) and place them together.