Skip to main content
Math & statisticsLocal in browser — nothing is uploaded

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)

A = 255
= 15 (0xF)

Processing runs inside your browser without accounts or server uploads. Modular TypeScript domain logic tested locally.

Report a problem with this tool

Signed 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.