Developer Tools

Binary arithmetic.

Add, subtract, multiply and divide binary numbers and see the working: carry and borrow rows, shift-and-add partial products, and long division with a remainder. Unsigned, exact for very large values, with an optional bit width and overflow flag. Runs in your browser.

Advertisement

Input

Digits 0 and 1 only. A leading 0b, spaces and underscores are ignored. Leave width blank for unlimited size.

Result

Enter two binary numbers, then press Calculate.

How it works

Sources: Wikipedia, Binary number: addition; multiplication; Wikipedia, Division algorithm: unsigned integer division with remainder. To convert text to bytes see the Binary Converter.

Advertisement
Advertisement
Listening…