By LearnAllStudents Editorial Team. Source check dates are listed below.
Use place values
For binary 101101, the place values from right to left are 1, 2, 4, 8, 16 and 32. Add the values with a 1: 32 + 8 + 4 + 1 = 45. For hexadecimal 2D, D represents 13, so 2×16 + 13 = 45. The same value has different written representations.
Convert binary to hexadecimal in groups
Work from the right and group four bits at a time. Pad the leftmost group with leading zeros when needed: 101101 becomes 0010 1101. The groups are 2 and 13, giving 2D. Leading zeros do not change an unsigned integer’s value, but fixed bit width can matter in a particular representation.
Try it yourself
- Convert binary 1111 to denary and hexadecimal.
- Convert hexadecimal AE to an eight-bit binary value.
- Is binary 10 equal to denary ten?
Answers: denary 15 and hexadecimal F; AE is 1010 1110; no, binary 10 equals denary 2. For AE, 10×16 + 14 = 174, which provides an independent decimal check.
Signed and fractional values need a stated representation
This guide’s examples are non-negative integers. A bit pattern such as 11111111 can mean 255 as an unsigned eight-bit integer or −1 in eight-bit two’s complement. Neither interpretation follows from the bits alone. The linked converter handles integer base conversion; it is not a complete floating-point encoding or signed-width interpretation tool.
How a tutor would approach this
Bring the base, width and signed/unsigned convention. Check the place values before entering a converter.
Frequently asked questions
What decimal value does hex A represent?
10.
How many bits correspond to one hex digit?
Four.
Do leading zeros change an unsigned integer’s value?
No, but width can matter to the representation’s interpretation.
Can I infer signed meaning from a bit pattern alone?
No. State the representation and bit width.
Keep exploring your course
Continue in the Computer Science library
Choose another explanation and check your reasoning with its practice answers.
Official sources
- North Carolina State University: binary and hexadecimal (checked 2026-11-23)
Related pages
Try a free 30-minute demo
Work through a question with a tutor. No payment needed.
Request a free 30-minute demo