Number Base Converter

Convert numbers between Binary, Octal, Decimal, and Hex.

Ad Slot
Ad Slot

Frequently asked questions

What happens if I type a digit that's invalid for the selected base, like a 9 in binary?

It won't show an error — the parser reads only up to the first invalid digit and converts whatever came before it. So typing "129" with Binary selected silently converts just the leading "1" rather than flagging the whole input as invalid.

How are negative numbers shown in the other bases?

As a minus sign plus the magnitude in that base — e.g. -5 in decimal becomes "-101" in binary — not as two's-complement bit patterns, which is how negative binary values are usually represented in computing.

Which bases can I convert between?

Binary, octal, decimal, and hexadecimal — pick which base your input is currently in, and all four are shown side by side.

We use cookies for analytics and to show ads that keep this site free. No personal data is sold.