tools.maxhogan.dev

Base Converter

Binary, octal, decimal and hex with a bitwise visualiser.

Input
What it does

Converts integers between binary, octal, decimal, hexadecimal and base 36, using arbitrary-precision arithmetic so numbers of any size (not just 32 or 64 bit) round-trip exactly. Recognizes 0x, 0b and 0o prefixes automatically, or you can force a specific input base. Every result also shows a nibble-grouped bit pattern, the bit length, and the raw hex bytes for values that fit in 64 bits.

How to use it

Type or paste a number (with or without a base prefix like 0xFF, 0b1010 or 0o17) and every base updates at once. Pick an input base from the dropdown if your number is unprefixed and not decimal. Negative numbers are supported; each output row has its own copy button.

Why this one

Most base converters cap out at 32-bit integers and silently overflow on anything larger. This one uses BigInt throughout, so a 128-bit or 256-bit value converts exactly, with no ads and nothing sent off your device.

FAQ
Does it handle numbers bigger than 64 bits?
Yes, conversion uses BigInt, so values of arbitrary size (128-bit, 256-bit, or larger) convert exactly. The "Bytes" row only appears for values that fit in 64 bits, since it exists for quick byte-level inspection.
How are negative numbers represented?
As a sign followed by the magnitude in the target base (e.g. -0xff), not two's complement. The "Bits" row is the bit length of the magnitude alone.
What happens if I paste an invalid digit for the selected base?
You get an error naming the exact character and its position in your input, such as an "8" in a binary number, so you can fix it immediately.