Decimal to Binary

Enter a decimal number and convert it to binary, hexadecimal, and octal. Results appear instantly in your browser.

Decimal
Valid: 0-9 (integers)
Binary (Base 2)
Result will appear here
Hexadecimal (Base 16)
Octal (Base 8)
Quick Reference
00
11
210
4100
81000
1610000
32100000
641000000
12810000000
25511111111
256100000000

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

  1. Type or paste a decimal number into the input field (e.g. 255 or 1024).
  2. Click Convert to see the binary, hexadecimal, and octal results.
  3. Use the Copy button to copy the binary result to your clipboard.
  4. 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