F

Decimal to Binary Converter

Convert a base-10 integer to binary, showing the bit pattern and sometimes minimum bit width.

Number base converter

Converting from Decimal (base 10) to Binary (base 2).

Converted value

101010

Steps

  1. Input (base 10): 42
  2. Convert via decimal: parse in base 10, then express in base 2.
  3. Result (base 2): 101010

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

  1. Enter a non-negative decimal integer (signed mode if available).
  2. Read the binary output.
  3. 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.

Related tools

More free utilities you may need next — also listed in Text, Writing & Developer Tools and the All Tools directory.

View full category →