Binary to Hexadecimal Calculator

Convert a binary number into hexadecimal. Enter a string of 0s and 1s and this calculator groups the bits into fours (from the right) and turns each group into a single hex digit, 0–F.

Formula

hexadecimal = binary value converted from base-2 to base-16
  • The binary number is read as a base-2 value and rewritten in base-16.
  • A handy shortcut: group the bits into fours starting from the right, then convert each group to a single hex digit (0000–-1111 maps to 0–F).
  • Hex digits run 0–9 then A–F, where A = 10, B = 11, C = 12, D = 13, E = 14, and F = 15.
  • Enter only the digits 0 and 1. A leading '0b' prefix is accepted and ignored.
  • Hexadecimal is widely used in computing because one hex digit represents exactly four bits.

101101 in hexadecimal

Inputs
  • Binary Number: 101101

Grouped into fours from the right: 0010 1101. 0010 = 2 and 1101 = D, so 101101₂ = 2D in hexadecimal (decimal 45).

Frequently asked questions

How do I convert binary to hex by hand?
Group the bits into sets of four starting from the right (pad the left with zeros if needed), then convert each four-bit group to its single hex digit.
Why is binary so easy to convert to hex?
Because 16 is 2 to the fourth power, every group of four bits maps cleanly to exactly one hex digit — no awkward remainders.
What do the letters A–F mean?
They are the hex digits for the values 10 through 15: A = 10, B = 11, C = 12, D = 13, E = 14, F = 15.
What if my binary length is not a multiple of four?
Pad the left end with zeros until it is. For example, 101101 becomes 0010 1101 before grouping.
Can I enter a '0b' prefix?
Yes. A leading 0b is stripped automatically, so 0b101101 and 101101 give the same hex value.