Binary Converter tool

Binary Converter

A binary converter translates a decimal (base-10) number into binary (base-2), octal (base-8), and hexadecimal (base-16) representations.

What is a binary converter?

A binary converter takes a decimal (base-10) whole number and shows the same value in binary, octal, and hexadecimal. Computers store integers in binary; programmers often read hex because each hex digit maps to four bits. Enter one decimal value and all three bases update together. Octal still appears in Unix file permission codes such as chmod 755.

How to use the Binary Converter

  1. Enter a non-negative decimal integer in the input box.
  2. Stay within 0 to 4,294,967,295 (32-bit max).
  3. Read binary, octal, and hex in the three result cards.
  4. For values 0–255, study the 8-bit position grid.
  5. Use the quick reference table for powers of two.

About this calculator

A binary converter translates a decimal (base-10) number into binary (base-2), octal (base-8), and hexadecimal (base-16) representations. Different number bases are the backbone of computer science and digital electronics.

Binary is the native language of computers (all data is stored as 0s and 1s). Hexadecimal is commonly used in programming, memory addresses, and color codes. Octal appears in Unix/Linux file permissions.

How the math works

d=∑i=0nbi×2id = \sum_{i=0}^{n} b_i \times 2^i
  • dd: Decimal value
  • bib_i: Binary digit at position i (0 or 1)
  • 2i2^i: Place value at position i

Binary example: decimal 42 in all bases

Enter 42. Binary is 101010 because 32 + 8 + 2 = 42 (bits at positions 32, 8, and 2 are on). Octal groups bits in threes: 52₈. Hex groups bits in fours: 2A₁₆ (2×16 + 10 = 42).

On the 8-bit grid, ones appear at 32, 8, and 2 while 64, 16, 4, and 1 stay off. That matches what you would write in a Class 12 computer science number-systems problem.

Try 255 next: binary becomes 11111111, octal 377, hex FF. Values above 255 still convert but skip the 8-bit grid and show the full bit string instead.

Common uses

  • Convert decimal numbers for computer science coursework
  • Understand binary representations of integers
  • Convert memory addresses between hexadecimal and decimal
  • Verify binary arithmetic results

Frequently asked questions

How do you convert decimal to binary?

Repeatedly divide the decimal number by 2 and record the remainders. The binary number is the remainders read from bottom to top. Example: 13 ÷ 2 = 6 R1; 6 ÷ 2 = 3 R0; 3 ÷ 2 = 1 R1; 1 ÷ 2 = 0 R1. Binary = 1101.

What is 255 in binary and hex?

255 is the largest byte value: binary 11111111 and hex FF. All eight bit positions are 1, so the sum is 128+64+32+16+8+4+2+1 = 255.

How do I convert decimal 13 to binary by hand?

Divide by 2 and read remainders bottom to top: 13÷2→6 R1, 6÷2→3 R0, 3÷2→1 R1, 1÷2→0 R1. Binary is 1101. Enter 13 here to match octal 15 and hex D.

Why does the calculator reject negative decimals?

This tool targets unsigned integer bases used in memory addresses and flags. Negative integers need two's complement with a fixed bit width, which is a different conversion mode.

What is decimal 100 in binary and hex?

100 decimal is 1100100 in binary and 64 in hex. Enter 100 to see octal 144 as well. The bit breakdown helps when you map register values in embedded labs.

How many bits does decimal 1000 need in binary?

1000 decimal is 1111101000 in binary, ten bits long. The converter shows the full string above 255 without the 8-bit grid. Hex is 3E8 and octal is 1750.

Related calculators

Maintained by J Jaya Prakash · Last updated: October 2026