Decimal to Binary

Enter a whole number and see all three representations, plus the bit length.

How Decimal to Binary works

Convert a decimal number to binary, hexadecimal and octal. Enter a whole number and see all three representations, plus the bit length. Everything happens inside this page: the tool reads your input, runs the calculation or conversion locally, and hands the result back to you. Nothing is transmitted, because there is no backend to transmit it to.

That design choice is deliberate. Most free tool sites upload your files to a server, process them there, and quietly keep a copy. Toolcin cannot do that — the site is a set of static files. If your connection dropped the moment the page finished loading, every tool would still work.

Divide by two, keep the remainders

Repeatedly divide the number by 2, note the remainder each time, and read the remainders bottom to top. 202 becomes 11001010: eight bits, because that is how many divisions it took.

The tool also shows the hexadecimal and octal forms, which are the practical ways to read binary without counting positions.

Width is a choice

The same number has no fixed length in binary. 5 is 101, but a byte-oriented system expects 00000101. If a protocol or a colour channel requires eight bits, pad on the left.

DecimalBinaryHex
51015
101010A
20211001010CA
25511111111FF

Fractions and negatives

This converter handles non-negative integers. Negative numbers in binary need a defined width and two's complement, and fractions need a radix point — both are conventions the input would have to specify.

Good to know

  • Works offline once loaded, including on flights and in locked-down networks.
  • No file size limit beyond your device's own memory.
  • Free to use, with no account and no usage counter.
  • Results are produced locally, so they are not logged or shared with anyone.

Questions

Is anything uploaded when I use Decimal to Binary?

No. The calculation runs in your browser with JavaScript, so the values you enter never leave your device.

What should I check before relying on the result?

Enter a whole number and see all three representations, plus the bit length. Treat the output as an estimate and verify anything critical independently.

Does it pad to eight bits?

No, the output is the shortest correct form.

Can I convert binary back?

Yes, with the binary to decimal page.

Keep going

More math tools