1618.dev

small tools, one committed a day

Number base converter

Type a number in any base — binary, octal, decimal or hex — and see the others update live, along with a clickable bit grid. Pick a width, flip individual bits, and read the value as signed two's-complement or unsigned. Everything runs in your browser.

Hex
Dec
Oct
Bin

How it works

Each field parses in its own base, so you never need a prefix — but you can paste 0x, 0o or 0b forms into the decimal field if you like. The bit grid is a fixed-width two's-complement view: the same 8 bits that read as 255 unsigned read as -1 signed, and clicking a bit flips it in place. Widening the view zero-extends; narrowing it keeps only the low bits. A decimal you type that doesn't fit the chosen width (say 200 as a signed 8-bit value) is wrapped to the pattern that does, and flagged as an overflow.