Industrial automation & controls · Toronto · GTA

Number base conversion

Convert non-negative integers between bases 2, 8, 10 and 16, with logical shifts.

Inputs

Calculations run in your browser. Your input values are not submitted or saved.

Results

Base 2
11111111
Base 8
377
Base 10
255
Base 16
FF
After shift (decimal)
255

Up to 256 input digits; no decimals or negative signs. Fixed-word overflow is not simulated.

Formula & guidance

Integer base conversion; shift uses arbitrary-precision integer

Up to 256 input digits; no decimals or negative signs. Fixed-word overflow is not simulated.

Change the example inputs and check each field’s units. Use equipment datasheets and applicable project standards for final decisions. Results do not establish Canadian electrical-code compliance or certify a design.

Essential functionality — always available
Needed for security, accounts and requested services.