| Source | Result |
|---|
Convert Decimal integers to Binary with exact arbitrary-precision arithmetic. Signed values, long integers, common source prefixes, spaces, and underscore separators are accepted, and the result updates as the input changes.
Repeatedly divide the decimal integer by the target base and record each remainder. Reading the remainders from last to first gives the converted value.
255 in base 10 equals 11111111 in base 2. The converter supports values much larger than JavaScript's ordinary safe integer range because it uses integer arithmetic rather than floating-point numbers.
Common conversions: Binary to Decimal · Decimal to Binary · Binary to Hex · Hex to Binary · Decimal to Hex · Hex to Decimal · Binary to Octal · Octal to Binary