Decimal to Binary Converter
Convert decimal numbers to binary instantly, with no size limit.
Converts live as you type, entirely in your browser using arbitrary-precision math — no size limit and nothing is sent anywhere.
Need the opposite? Binary to Decimal Converter
What is Decimal to Binary Converter?
A Decimal to Binary Converter takes a base-10 (decimal) number, the counting system people use every day, and converts it into base-2 (binary), the counting system computers use internally to represent everything from integers to memory addresses. Decimal uses ten digits (0-9) and place values that are powers of 10 (1, 10, 100, 1000...). Binary uses only two digits (0 and 1) and place values that are powers of 2 (1, 2, 4, 8, 16...). Every decimal number has an exact binary equivalent; the conversion doesn't lose any information, it's just a different way of writing the same quantity. This is useful for computer science coursework, debugging bitwise logic, understanding how data is stored at the hardware level, or simple curiosity about how a specific number looks in binary. Bytelify's converter runs entirely in your browser as you type, using JavaScript's BigInt arithmetic rather than a fixed-width 32-bit integer, so it stays accurate on numbers far larger than a standard integer type would allow, with no size limit and no server round-trip.
Decimal to Binary Chart (0-15)
| Decimal | Binary |
|---|---|
| 0 | 0000 |
| 1 | 0001 |
| 2 | 0010 |
| 3 | 0011 |
| 4 | 0100 |
| 5 | 0101 |
| 6 | 0110 |
| 7 | 0111 |
| 8 | 1000 |
| 9 | 1001 |
| 10 | 1010 |
| 11 | 1011 |
| 12 | 1100 |
| 13 | 1101 |
| 14 | 1110 |
| 15 | 1111 |
How to Use the Decimal to Binary Converter
- 1
Enter a Decimal Number: Type any non-negative whole number into the input field, for example 45 or 255.
- 2
Read the Binary Result Instantly: The binary equivalent appears automatically as you type, with no button to click and no page reload.
- 3
Copy the Result: Use the copy button next to the output to copy the binary value for use in code, documentation, or a homework answer.
How Decimal Converts to Binary
Binary place values (1, 2, 4, 8, 16, 32, ...) double at each position moving left, versus decimal's powers of 10. The standard manual method for converting a decimal number into binary is repeated division by 2: divide the number by 2, note the remainder (always 0 or 1), divide the resulting quotient by 2 again, and keep going until the quotient reaches 0. The binary result is the remainders read in reverse order, from the last one computed back to the first.
Worked Example: Converting 45
45 ÷ 2 = 22 remainder 1 22 ÷ 2 = 11 remainder 0 11 ÷ 2 = 5 remainder 1 5 ÷ 2 = 2 remainder 1 2 ÷ 2 = 1 remainder 0 1 ÷ 2 = 0 remainder 1 Reading the remainders from the last one computed back to the first gives 101101, which is 45 in binary. You can check this by adding the place values it represents: 32 + 8 + 4 + 1 = 45.
Examples
15 → 1111
255 → 11111111
32 → 100000
1024 → 10000000000Why Computers Use Binary
Computer hardware is built from transistors and logic gates that are most reliably built as two-state (on/off) switches, so representing data with two digits (0 and 1) maps directly onto the physical hardware. Every type of data a computer stores, including text, images, and program instructions, is ultimately represented as binary at the lowest level, even though higher-level programming languages let developers work with decimal numbers, strings, and other familiar formats.
Frequently Asked Questions
Common questions about Decimal to Binary Converter.