BroHelp.me

Decimal To Binary

Convert numbers from decimal (base 10) to binary (base 2).




NAN

Reverse Conversion

Binary to Decimal

How This Converter Works

Converts a signed whole-number decimal input to its base-2 representation.

Formula or rule

Validate as an optional sign followed by decimal digits, parse as a JavaScript integer, then format that integer in base 2.

Example

Input
42
Calculation
42 = 32 + 8 + 2; the corresponding binary place values are 101010.
Result
101010
© BroHelp.me 2026 - 2026 is provided without warranty of any kind.