Decimal to Binary Converter_
Convert decimal numbers to base-2. Runs entirely in your browser — nothing you paste here is uploaded or logged.
100% client-side — nothing you enter leaves your browser. Free, no signup, no tracking.
How to use
- 01Enter a whole decimal number (grouping spaces or underscores allowed).
- 02The binary number conversion appears live below.
- 03Toggle 4-bit grouping or a
0bprefix, then copy the result.
About this decimal to binary converter
The classic formula for how to compute decimal to binary: divide by 2, keep the remainder, repeat until zero, then read the remainders bottom-up. 100 in decimal to binary is 1100100; 32 is 100000. This converter applies the same conversion with exact big-integer arithmetic, so arbitrarily large whole numbers convert without floating-point rounding.
Two things it deliberately does not do: fractions (there is no finite binary form for most decimal fractions — 0.1 in binary repeats forever) and two’s-complement encoding for negatives, which is a fixed-width representation rather than a pure base conversion; negative input keeps its minus sign. Everything runs locally in your browser.