About the Binary, Hex, Octal & Decimal Converter with Bit Shift
Convert a number between decimal, hexadecimal, octal and binary for 8, 16 or 32-bit words, with its signed two's complement value. Click any bit to flip it, and shift the word left or right to see the result.
Type values with 0x, 0b or 0o prefixes.
Frequently asked questions
How do I convert decimal to hex?
Divide by 16 repeatedly and read the remainders backwards, or type the number here. 165 is 0xA5.
What does a left bit shift do?
It multiplies by 2 for each place shifted, dropping bits that fall off the top of the word. 0xA5 shifted left 2 in 8 bits is 0x94.
What is two's complement?
The usual way to store signed integers: values with the top bit set are negative, equal to the unsigned value minus 2ⁿ.
Related calculators
- Resistor Color Code CalculatorMini tools
- SMD Resistor Code CalculatorMini tools
- Capacitor Code CalculatorMini tools
- Voltage Divider Calculator with LoadMini tools
- Current Divider CalculatorMini tools
- RC & RL Low Pass / High Pass Filter CalculatorMini tools
- 555 Timer CalculatorMini tools
- Battery Life CalculatorMini tools
- RC Time Constant & Capacitor Discharge CalculatorMini tools
- Three Phase Power CalculatorMini tools