Programmer binary, hex & bitwise calculator
Convert integers across decimal, hexadecimal, octal, and binary with 8-bit, 16-bit, and 32-bit two’s-complement signed inspection plus bitwise operators.
Decimal (Signed / Unsigned)
255
Unsigned: 255
Hexadecimal
0x000000FF
Octal
0o377
32-bit Binary
0000 0000 0000 0000 0000 0000 1111 1111
Bitwise Operation (A op B)
Processing runs inside your browser without accounts or server uploads. Modular TypeScript domain logic tested locally.
Report a problem with this toolSigned two’s-complement masking
Hardware bit-width simulation: Switch between 8-bit, 16-bit, and 32-bit registers to inspect overflow wrap-around and negative sign bits.
Frequently asked questions
- Why does 0xFF show -1 in 8-bit mode?
- In signed two’s-complement 8-bit representation, the most significant bit is negative (−128 + 127 = −1).
- What is the difference between >> and >>>?
- Arithmetic right shift (>>) preserves the sign bit, while logical shift (>>>) shifts in zero bits.
Related tools
Browse all toolsMath & statistics
Prime factors, GCD/LCM & nCr
Factorize integers into prime powers, compute Euler totient φ(n), multi-number GCD/LCM, and exact BigInt combinations nCr.
Networking & protocols
IPv4 subnet & CIDR calculator
Compute network, broadcast, usable host bounds, host count, wildcard mask, and RFC scope from any IPv4 CIDR or dotted mask.
Developer tools
UNIX chmod calculator
Calculate POSIX octal file modes (644, 755, 600, 1777) and symbolic rwxr-xr-x permission strings with visual bit toggles.