Number Base

Convert binary, octal, decimal and hex with bit widths and bitwise ops.

Loading tool…

About this tool

Edit any of the binary, octal, decimal or hexadecimal fields and the others follow. Choose a bit width of 8, 16, 32 or 64 and a signed or unsigned interpretation to see how the same bits read as different values, and toggle individual bits in the bit grid to watch every field update.

All arithmetic uses BigInt, so 64-bit values are exact — ordinary JavaScript numbers lose precision above 2^53, which is where many online converters quietly produce wrong digits. A bitwise section covers AND, OR, XOR, NOT and shifts.