Decimal to Binary
Convert decimal numbers to binary, hexadecimal, and octal.
Binary (base 2)
1010
Hexadecimal (base 16)
A
Octal (base 8)
12
Related Tools
FAQ
- How does decimal to binary conversion work?
- Repeatedly divide the decimal number by 2 and record the remainders. Reading the remainders from bottom to top gives the binary representation. For example: 13 ÷ 2 = 6 R1, 6 ÷ 2 = 3 R0, 3 ÷ 2 = 1 R1, 1 ÷ 2 = 0 R1 → binary: 1101.
- Can negative numbers be converted?
- This converter handles non-negative integers. Negative numbers in binary are typically represented using two's complement, which is architecture-dependent and beyond the scope of this simple converter.
- What is the relationship between binary and hexadecimal?
- Each hexadecimal digit represents exactly 4 binary bits (a nibble). This makes hex a convenient shorthand for binary: 0xF = 1111, 0xA = 1010, etc. Programmers frequently switch between binary and hex.
The Decimal to Binary converter takes a decimal (base-10) integer and outputs its binary (base-2), hexadecimal (base-16), and octal (base-8) equivalents. Results are displayed in a clean card grid with one-click copy buttons for each format.