Decimal to Binary Converter

Enter any decimal number and this Decimal to Binary Converter will instantly show you its binary representation, along with the hexadecimal and octal equivalents. You also get a step-by-step division table showing exactly how the conversion was performed.

Enter a non-negative integer to convert to binary.

Results

Binary (Base 2)

--

Octal (Base 8)

--

Hexadecimal (Base 16)

--

Number of Bits

--

Bit Value Breakdown (Power of 2)

Results Table

Frequently Asked Questions

How do you convert a decimal number to binary?

To convert decimal to binary, repeatedly divide the number by 2 and record the remainder at each step. The remainders, read from bottom to top, form the binary number. For example, 13 ÷ 2 gives remainders 1, 0, 1, 1 — so 13 in binary is 1101.

What is the binary number system?

Binary is a base-2 numeral system that uses only two digits: 0 and 1. Each digit (bit) represents a power of 2. It is the fundamental language of computers and digital electronics because electronic circuits can easily represent two states — on (1) and off (0).

What is the decimal number system?

The decimal system is a base-10 numeral system, the most commonly used in everyday life. It uses ten symbols (0–9), and each digit position represents a power of 10. For example, 653 = 6×10² + 5×10¹ + 3×10⁰.

How many bits does a decimal number need in binary?

The number of bits required is ⌊log₂(n)⌋ + 1 for any positive integer n. For example, the decimal number 255 requires 8 bits (11111111 in binary), while 256 requires 9 bits (100000000).

What is digit grouping in binary?

Grouping binary digits makes long binary strings easier to read. Grouping by 4 bits is called a nibble, and grouping by 8 bits is called a byte. For example, the binary number 11010110 can be grouped as 1101 0110 in nibble notation.

Can I convert negative decimal numbers to binary?

Negative numbers in binary are typically represented using two's complement notation in computing. This converter handles non-negative integers. For negative numbers, the two's complement is computed by inverting all bits of the positive binary value and adding 1.

What is the difference between binary, octal, and hexadecimal?

Binary (base 2), octal (base 8), and hexadecimal (base 16) are all positional numeral systems used in computing. Octal groups binary digits by 3, and hexadecimal groups them by 4, making large binary numbers more compact and readable. All three can exactly represent the same values as decimal.

Why is binary used in computers?

Computers use binary because transistors — the basic building blocks of processors — have two states: on and off, naturally mapping to 1 and 0. All data, instructions, and programs in a computer are ultimately stored and processed as sequences of binary digits (bits).

More Math Tools