Binary, decimal and hex converter

Convert unsigned integers up to 128 bits between binary, decimal and hexadecimal without precision loss.

Enter values

Start with the example below, or enter your own values.

How it works

Prefix binary with 0b or hexadecimal with 0x; unprefixed digits are decimal. Exact integer arithmetic preserves large values.

Try an example

Unsigned integer: 0xFFFFFFFFFFFFFFFF. The form starts with these values; change them to explore your own case.

Example result: 18446744073709551615

  1. Parse as an exact integer.
  2. Convert to base 2 and base 16.

Learn more in Exact arithmetic and number theory tools.

Results are calculated locally. Floating-point tools provide numerical approximations, not formal proof certificates.