Binary / Hex Converter

Convert between the four programmer bases at once: enter a value in binary, decimal, hex, or octal and all representations update instantly.

Updated November 13, 2026 ·

Binary / Hex formula

Each binary digit is a power of 2, counted from the right starting at 2⁰. Hexadecimal groups four bits into one digit 0–F.

Worked example

Binary 1011 = 8 + 0 + 2 + 1 = 11 in decimal, B in hexadecimal and 13 in octal.

Frequently asked questions

How do I convert binary to decimal?

Each binary digit is a power of 2 from the right: 1011 = 8 + 0 + 2 + 1 = 11. The converter also goes the other way and to hex/octal.

Why do programmers use hexadecimal?

One hex digit encodes exactly four binary bits, so a byte is exactly two hex characters (FF = 11111111) — far more readable than eight bits.

Is this binary / hex converter free and private?

Yes — completely free with no sign-up, and every calculation runs in your browser. Nothing you type is transmitted or stored.