calculatory.app

Binary to Decimal Converter

Convert between binary, decimal, hexadecimal, and octal instantly. Enter any value in any base and all others update live.

Enter decimal number

Binary (base 2)
0b
Decimal (base 10)
Hexadecimal (base 16)
0x
Octal (base 8)
0o
Quick:

Number info

Decimal value
255
Bit length
8 bits
Byte length
1 byte
Is even
No
Is power of 2
No
Two's complement (8-bit)
11111111

Step-by-step (binary → decimal)

Common questions

How do you convert binary to decimal?

Each binary digit (bit) represents a power of 2, starting from the rightmost bit (2⁰). To convert, multiply each bit by its positional value and sum the results. Example: 1011₂ = (1×2³) + (0×2²) + (1×2¹) + (1×2⁰) = 8 + 0 + 2 + 1 = 11₁₀. This calculator shows the full step-by-step breakdown.

How do you convert decimal to hexadecimal?

Repeatedly divide the decimal number by 16 and record the remainders. Read the remainders bottom to top. Remainders 10–15 become A–F. Example: 255 ÷ 16 = 15 remainder 15 (F), then 15 ÷ 16 = 0 remainder 15 (F). So 255₁₀ = FF₁₆. Hex is used in web colors (#FF5733), memory addresses, and CSS.

What is hexadecimal and why do developers use it?

Hexadecimal (base 16) uses digits 0–9 and letters A–F. Developers use it because each hex digit exactly represents 4 binary bits (a nibble), so one byte (8 bits) is two hex digits. This makes hex compact and easy to read: FF₁₆ = 11111111₂ = 255₁₀. Hex is used for memory addresses, color codes, file signatures, and encoding.

What is octal?

Octal (base 8) uses digits 0–7. Each octal digit represents exactly 3 binary bits. Unix/Linux file permissions use octal — chmod 755 means rwxr-xr-x in binary (111 101 101). Octal was common in older computing systems before hex became dominant. It's still used in Unix permissions and some assembly languages.

What is two's complement?

Two's complement is the standard way computers represent negative integers in binary. To negate a number: invert all bits (one's complement) then add 1. Example: +5 = 0101₂, -5 = 1010 + 1 = 1011₂. This system has one representation of zero and makes arithmetic circuits simpler. Most modern CPUs use two's complement for signed integers.

What is the difference between bits and bytes?

A bit is a single binary digit (0 or 1). A byte is 8 bits. A nibble is 4 bits (half a byte). Modern computers process data in bytes. Memory is measured in bytes (KB, MB, GB). Network speed is measured in bits per second (Mbps, Gbps). So 100 Mbps internet = 100/8 ≈ 12.5 MB/s actual download speed.

Gaurav Yadav

Built by Gaurav Yadav

Designer, author, and the one person behind Calculatory. All conversions run in your browser using JavaScript's native parseInt and toString with radix — no server involved. More about the project.

Last updated: June 2026