DEVELOPER & CODE · LOCAL WORKBENCH

Base Converter

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.

02 · FOUR EVERYDAY BASESVALID VALUE
DECIMAL255
HEXADECIMAL0xFF
OCTAL0o377
BINARY · SIGN + MAGNITUDE0b11111111
32-BIT REGISTERFITS
00000000000000000000000011111111

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.

Back to the tool library ↗

Need a feature from the original version? Open the current ECECH tool

How this app works

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.