Skip to content
alpaca.tools

Decimal to Binary and Binary to Decimal Conversion

Loading Decimal to Binary and Binary to Decimal Conversion...
5.01 rating54 uses
Your rating for Decimal to Binary and Binary to Decimal ConversionYour rating
Number Base Converter

About Decimal to Binary and Binary to Decimal Conversion

Convert decimal numbers to binary or binary numbers to decimal instantly. Switch directions and paste one value per line for batch conversion. Decimal input supports negative whole numbers, while binary input accepts 0b prefixes, spaces, and underscores. Values of any length are converted with exact arbitrary-precision math locally in your browser.

FAQ

Each bit is multiplied by a power of two from right to left and the results are summed, so 101010 equals 32 + 8 + 2 = 42.

Yes. Select Decimal to Binary, enter one or more decimal whole numbers, and the converter returns exact binary values in the same order.

Yes. Spaces and underscores inside a value are ignored, so 1010 1010 and 10101010 convert to the same decimal number.

No. Conversion uses arbitrary-precision integers, so bit strings longer than 64 bits convert exactly instead of rounding.