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.
| Decimal | Binary | Hex |
|---|---|---|
| 5 | 101 | 5 |
| 10 | 1010 | A |
| 202 | 11001010 | CA |
| 255 | 11111111 | FF |
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
Hex to Decimal
Convert hexadecimal values to decimal, binary and octal. Accepts 0x prefixes and both upper and lower case digits.
Open toolPercentage Calculator
Work out percentages, increases, decreases and percentage differences with the formula shown for each answer.
Open toolAspect Ratio Calculator
Enter an original size and a new width or height — the other side is calculated to preserve the ratio.
Open toolRandom Number Generator
Pick numbers between a minimum and maximum using the browser's cryptographic random source.
Open toolDice Roller
Roll up to 100 dice of any standard type, add a modifier and see each face plus the total.
Open toolStandard Deviation
Paste a list of numbers to get mean, median, both standard deviations and variance.
Open tool