How it works
Divide the number by 2, record remainders from bottom to top, or subtract highest powers of two — both yield the same bit string.
How to use Decimal to Binary Converter
- Enter a non-negative decimal integer (signed mode if available).
- Read the binary output.
- Pad to 8/16/32 bits if the UI offers width options.
Worked examples
Concrete numbers and cases you can check against the tool above.
Decimal 13
13 → 1101 (8+4+1).
When to use Decimal to Binary Converter
Repeated division by 2 is error-prone on long exams. Programmers need binary for masks and low-level constants.
Common use cases
- Express 255 as 11111111 for an byte mask.
- Prepare answers for digital logic worksheets.
- Cross-check the binary-to-decimal tool.
Inputs and outputs
- Decimal integers
- Optional fixed bit width
Privacy
This tool runs entirely in your browser. Your data never leaves your device — nothing is uploaded to our servers.
Frequently asked questions
- Negative decimals?
- Unsigned mode may disallow them; signed two’s complement needs a dedicated mode.
- Very large numbers?
- JavaScript safe integer limits may cap input; huge values need big-int tools.
- Fractional decimals?
- Integer converter truncates or rejects fractions; fractional binary is a different algorithm.