Decimal to Binary Converter - Free Online Calculator with Steps

ZixTool December 03, 2026 1 min read

Convert decimal to binary and see the working. Type one number, or paste a list with one number per line.

Digits 0 to 9, an optional minus sign and one decimal point. Spaces, commas and underscores are ignored.

Try an example

Options: negative numbers, width, grouping
Your result will appear here as you type.

Reference: small values and common numbers

Decimal 0 to 15

Numbers that come up often

The math runs in your browser with exact big-integer arithmetic, and nothing is sent anywhere. Limits: 4096 bits per number and 200 lines per batch.

A decimal to binary converter that shows its working

Type 45 and you get 101101, plus the reason why. Under each whole-number answer the page lists the division steps, the powers of two that add up to it, and the same value at 8, 16, 32 and 64 bits. Paste a list to convert many numbers in one go.

How do I convert decimal to binary by hand?

Divide by 2, write down the remainder, then repeat with the quotient until you reach 0. Read the remainders from last to first. For 45 they come out as 1, 0, 1, 1, 0, 1 from the first division to the last, so the bottom-to-top reading is 101101. The table the page prints is exactly this, which makes it handy for checking homework.

Is there a quicker way for small numbers?

Yes. Take away the biggest power of two that fits, mark a 1, and carry on with what's left. 45 holds 32 (13 left), then 8 (5 left), then 4 (1 left), then 1. Those places are 1 and the rest are 0, giving 101101 again. The same idea answers "how do I convert 5 to binary": 5 is 4 + 1, so 101. To double-check an answer, run it backwards with a binary to decimal converter.

What is 255 in binary, and what about 11111111?

255 is 11111111, eight 1s in a row, the biggest value one byte can hold when every bit counts as positive. Searchers often type 11111111 as if it were a decimal number, though. Entered here as a decimal, it becomes 101010011000101011000111, while the same digits read as binary mean 255. If you'd rather see base 16, a decimal to hex converter gives 255 as FF. This page shows hex and octal beside every whole number as well.

Can it handle negative numbers and fractions?

Both. Open Options, pick two's complement and a width, and -45 comes out as 11010011 in 8 bits. For the invert-and-add-one steps in detail, use the two's complement calculator.

Fractions work with a point: 10.625 becomes 1010.101. Some decimals never end in binary, and 0.1 is the famous one. The page stops at the number of bits you choose and says plainly that the result is cut off and not exact.

What else can I do with the result?

Tap any bit under the answer to flip it and watch the decimal value change. Group the bits in 4s or 8s, add a 0b prefix, or copy a link that rebuilds your exact conversion later. The link keeps its data in the address bar only. Turning words into binary is a different job, handled by an ASCII to binary converter.

How big a number can it take?

Up to 4,096 bits per number, which is around 1,200 decimal digits, and 200 lines per batch. The arithmetic is exact, with no rounding, and nothing leaves your browser because the page loads no outside script.

Comments