Skip to main content
chain
⇄
Decimal to Binary
⌃⏎ run · ⎋ clear · / focus input
Decimal · base 10
Hexadecimal · base 16
Binary · base 2
send result to
no matches
Octal · base 8
Enter a decimal value above to convert it
// about this tool

Decimal to Binary Online

Updated 2026-10-24

Convert decimal to binary online for free. Type any base-10 number and SnapTools shows its binary representation instantly, in your browser. Nothing you enter is uploaded.

Binary is how numbers are actually stored in hardware, and converting a decimal value to base 2 shows exactly which bits are set: 10 becomes 1010, 255 becomes 11111111. This converter runs the repeated-division-by-2 for you and returns the natural binary value, ready to pad into a byte or drop into a bitmask. For every base at once, use the Number Base Converter.

// how to use

  1. 1 Type or paste a decimal (base-10) number into the input.
  2. 2 SnapTools converts it to binary as you type.
  3. 3 Copy the binary result, or open the Number Base Converter for all bases at once.

// examples

Small number
Input
10
Output
1010
Byte value
Input
255
Output
11111111

// common uses

Seeing how a number is stored as bits Learning base-2 positional notation Producing binary literals or bitmasks Checking a manual decimal-to-binary conversion

// faq

Who first connected binary digits to on/off electrical circuits?
Mathematician George Boole developed true/false logic in the 1850s, and in 1937 a 21-year-old Claude Shannon showed in his MIT thesis that electrical switches could carry out that logic directly, using 1 and 0 for the two states. That thesis is the reason digital circuits, not just abstract math, ended up built on binary.
How do I convert decimal to binary by hand?
Take the number and divide it by 2 over and over, noting whether each step leaves a remainder of 0 or 1, then read those remainders back in reverse order for the bit string. Running that process on 10 leaves remainders of 0, 1, 0, 1, which reversed reads as 1010.
Why do computers use binary?
Digital hardware has two stable states, on and off, so it represents everything in base 2, where each digit (bit) is 0 or 1. Converting a decimal number to binary shows how it is actually stored.
Does it pad the result to a fixed width?
No, it shows the natural binary value with no leading zeros. If you need a fixed 8-bit byte, pad the left with zeros yourself (for example 1010 as a byte is 00001010).
What is the largest number it handles?
It handles standard integer values comfortably; very large numbers follow normal integer precision limits.

Use this via API

Get a free API key →
curl -X POST https://thesnaptools.com/api/v1/tools/decimal-to-binary \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"number":"10"}'