Convert binary, octal, decimal and hexadecimal together; inspect two’s-complement bits at your chosen width, register fit, and JavaScript’s 32-bit boundary.
DEVELOPER & CODE · LOCAL WORKBENCH · BROWSER WORKSPACE
Every base at once. See the bits, too.
Convert binary, octal, decimal and hexadecimal together; inspect two’s-complement bits at your chosen width, register fit, and JavaScript’s 32-bit boundary.
◈
01 · NUMBER INPUTCONVERTS AS YOU TYPE
TRY A CASE
−5 · WIDTH CHANGES THE STORED BITS
8-bit11111011
32-bit11111111111111111111111111111011
A negative number has no single binary form. Register width is part of the value’s representation.
Most significant bit is 0; a leading one reads as negative in a signed register.
03 · EXPLORE OTHER BASES2 THROUGH 36
Base 211111111
Base 3100110
Base 8377
Base 12193
Base 16FF
Base 327V
Base 3673
Each hexadecimal digit represents exactly four bits. Hex FF makes the set bits visible at a glance.
◎
Runs in this browser. Results are estimates or editing cues. Review the assumptions and source-specific limits before using them in a consequential decision.
Convert binary, octal, decimal and hexadecimal together; inspect two’s-complement bits at your chosen width, register fit, and JavaScript’s 32-bit boundary. Results update as you adjust inputs and stay in this browser.