Time & Math

Number, bitwise & unit converter tools

Debugging a bitmask, converting an IP address between notations, checking why a floating point value doesn't print the number you expected, or converting between bytes and gigabytes for a storage estimate — these are small, precise number problems that are easy to get wrong by hand. These tools cover base conversion, bitwise operations, IP and data size conversion, and inspecting the exact bits behind integers and floats.

Number base converter handles bases 2 through 36 without rounding large integers, which plain calculator apps often do silently. Bitwise calculator runs AND, OR, XOR, NOT and shifts on 8 to 64-bit values, and two's complement calculator reads the same 64-bit word as signed or unsigned so you can see why a value looks negative. IEEE 754 converter shows the exact decimal value behind 32 and 64-bit floating point bits, which explains most "why isn't this the number I typed" bugs.

7 tools

Numbers, Bitwise & Units tools FAQ

Why does converting a large number between bases give me a rounded or wrong result?

Many calculators convert through a floating-point or fixed-size integer internally, which loses precision on very large values. Number base converter is built to handle bases 2 through 36 without that rounding, so a large integer converts to the same exact value in the target base.

Why doesn't a floating point number print the exact decimal value I entered?

Most decimal fractions can't be represented exactly in binary floating point, so 0.1 is actually stored as the closest representable 64-bit value, which is very slightly off. IEEE 754 converter shows the exact decimal value behind the stored bits for both 32-bit and 64-bit floats, so you can see precisely where the rounding happens.

How do I read a negative number's two's complement bit pattern?

two's complement calculator reads a 64-bit word as either signed or unsigned, so you can see the same bit pattern interpreted both ways side by side. That's the fastest way to check why a value that looks like a large unsigned number is actually meant to represent a small negative one.