Binary / Decimal Converter

Binary / Decimal Converter

animation
electronics
binary
Try Start with Decimal value (0-255) at 37, then move the slider by one. Compare the highlighted binary places with the hexadecimal result.
Observe The default 37 appears as 00100101 and 0x25. The place-value sum underneath is 32 + 4 + 1 = 37.
Explain Decimal value (0-255) is converted to base two and padded to eight places. Each highlighted one contributes its column weight to the displayed sum.

Technical boundaries. The slider assumes an unsigned whole byte between 0 and 255. Its binary and hexadecimal displays are padded string conversions, with no signed or fractional representation.

Try It: Binary / Decimal Converter

Each binary place is worth twice the place to its right. Add the weights for the places marked one to get the number. Move the slider and check that sum against the decimal value.


Back to the chapter