Binary Converter
Convert whole numbers between decimal and binary in real time.
How this binary converter works
This tool converts whole numbers between the decimal (base-10) system we use every day and the binary (base-2) system computers use internally. Converting decimal to binary repeatedly divides the number by 2 and records the remainders; converting binary to decimal multiplies each binary digit by the matching power of 2 and adds the results together.
For example, the decimal number 10 is 1010 in binary, because 10 = (1×8) + (0×4) + (1×2) + (0×1). The calculator also shows the equivalent octal (base-8) value and the number of bits used.
Only the digits 0 and 1 are used when converting from binary to decimal; any other characters typed are ignored. This tool is intended for general learning and reference purposes.