Number Base Converter

Convert between binary, octal, decimal and hexadecimal.

Enter a number in any base (binary, octal, decimal or hex) and instantly see it represented in all four. Invalid digits for the chosen base are flagged.

How to use the Number Base Converter

  1. Type your value.
  2. Select which base you entered it in.
  3. Read it in binary, octal, decimal and hex.

Frequently asked questions

Can it convert hex like FF or 0xFF?

Yes. Pick Hex as the input base and enter FF (the optional 0x prefix is handled too) to get 255 in decimal.

Why is my input flagged invalid?

It contains a digit that doesn't exist in the chosen base β€” e.g. the digit 2 isn't valid in binary, and G isn't valid in hex.