Decimal to Binary
Enter a decimal number and convert it to binary, hexadecimal, and octal. Results appear instantly in your browser.
0-9 (integers)Decimal to Binary Converter
This tool converts decimal (base 10) numbers into their binary (base 2), hexadecimal (base 16), and octal (base 8) equivalents. It is useful when you need to understand how a number is represented in binary for programming, networking, or digital electronics.
The conversion runs entirely in your browser using JavaScript's BigNumber library for precision.
How to use
- Type or paste a decimal number into the input field (e.g.
255or1024). - Click Convert to see the binary, hexadecimal, and octal results.
- Use the Copy button to copy the binary result to your clipboard.
- Click Clear to reset all fields.
What is binary?
Binary is a base 2 number system that uses only the digits 0 and 1. It is the native language of digital computers, where each bit represents one of two states. Converting decimal to binary helps you see the underlying bit pattern of a number, which is essential for bitwise operations, subnet masks, flag values, and understanding how data is stored.
Example
Decimal: 255 Binary: 11111111 Hexadecimal: FF Octal: 377