Mini tools

Binary, Hex, Octal & Decimal Converter with Bit Shift

Free number base converter: decimal to hex, binary and octal, two's complement, clickable bits and left or right bit shift for 8, 16 and 32-bit words.

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

PCB WorkbenchFree, visual PCB design and electronics calculators.
Designed and built by Ciarán McDermott
© 2026 Ciarán McDermott. All rights reserved.

Results are engineering estimates from published formulas and standards. Check critical designs with your fabricator or a field solver before production.