Number Base Converter
Convert a number between binary, octal, decimal and hexadecimal in one go.
How to use Number Base Converter
- Choose the base your number is currently in — Binary, Octal, Decimal or Hexadecimal.
- Type the number.
- The equivalent value in all four bases appears automatically.
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.
Community
Loading...