Decimal to Binary

Tool processing runs in your browser — your pastes/files are not uploaded to our servers for processing. Ads (if shown) load separately and do not receive your tool inputs.Advertising · Details

Quick answer

To convert decimal to binary, divide by 2 repeatedly and read the remainders from last to first — for example 10 → 1010. TryDevSnip's converter does it instantly and exactly, even for large numbers, all in your browser.

Decimal to binary chart

DecimalBinary
210
4100
81000
101010
1610000
32100000
641000000
1001100100
12810000000
25511111111

Reverse or related: binary to decimal · decimal to hex · hex to decimal · all bases

Worked example: 42

Every positional number system works the same way — each digit is multiplied by the base raised to its position, counting from zero on the right. For 42 in decimal:

DigitPlaceWeightContribution
41011040
210012
Total (decimal)42

Written in binary that is 0b101010.

Quick reference

Decimaldecimalbinary
111
2210
44100
881000
10101010
161610000
3232100000
64641000000
1001001100100
12812810000000
25525511111111
256256100000000

Things that trip people up

Frequently asked questions

How do I convert decimal to binary?

Divide the number by 2 repeatedly, writing down the remainders (0 or 1) from last to first. For example 10 → 1010. Or paste it into the converter and read the binary instantly.

What is 255 in binary?

255 (decimal) is 11111111 in binary — eight 1-bits, exactly one full byte.

Does it work for large numbers?

Yes. The converter uses BigInt, so large decimals convert to exact binary strings without losing bits.

Is my input uploaded?

No. TryDevSnip converts locally in your browser. Nothing you type is uploaded to our servers for processing.

TryDevSnip