Number base and bit operations
Calculate, convert and check circuit values in your browser.
Inputs
Results
- Decimal
- 255
- Hexadecimal
- FF
- Octal
- 377
- Binary
- 00000000000000000000000011111111
Calculate, convert and check circuit values in your browser.
Convert unsigned 32-bit binary, hexadecimal, octal and decimal values. Toggle bits and compare logical shifts with signed integer interpretation.
Content updated:
Use value = Σ digit × base^position. Convert unsigned 32-bit binary, hexadecimal, octal and decimal values. Toggle bits and compare logical shifts with signed integer interpretation.
Sources: developer.mozilla.org [1]
255 (decimal) = 377 (octal) = 11111111 (binary). This is a calculated example under the model stated above; it is not a measured component specification.
base 2, 8, 10, 16; 0…4294967295. Convert prefixes before substituting values; keep the input and output units attached to every number.
Sources: developer.mozilla.org [1]
Unsigned 32-bit FFFFFFFF is 4294967295. The same bits represent −1 only under signed two’s-complement interpretation.
Sources: developer.mozilla.org [1]
Not within the selected base. Binary 00101 equals 101. Choose the base explicitly; prefixes must match it.
Sources: developer.mozilla.org [1]
Bits beyond 32 positions are discarded. Logical right shift fills with zeros. This is not an arbitrary-precision integer calculator.
Sources: developer.mozilla.org [1]
Answers use the stated model and units. Examples are calculated values, not measurements or component ratings.