Binary to Decimal Converter

Convert numbers between binary, decimal and hexadecimal — the three bases every programmer works in.
Decimal
Binary
Hexadecimal
Octal
✉ Email me this result
</> Embed this calculator

Paste this into any website or blog post. It is free — the small "powered by" link must stay visible.

How it works

Each binary digit is a power of 2; hex digits are powers of 16

Frequently Asked Questions

How do I convert binary to decimal?
Each digit is a power of 2, right to left: 1011 = 8+0+2+1 = 11. The calculator converts in every direction between binary, decimal and hex instantly.
How do I convert decimal to binary?
Repeatedly divide by 2 and read the remainders bottom-up, or just enter the decimal number here and read off the binary. 11 becomes 1011.
What is hexadecimal used for?
Base-16 (digits 0–9 then A–F) compactly represents binary — each hex digit is exactly 4 bits. It's everywhere in programming: color codes (#FF0000), memory addresses, and byte values.