Free tools, no sign-up — everything runs in your browser.
ToolHub 1000Free online tools

Base Converter

Convert a number between binary, octal, decimal and hexadecimal.

Quick answer: enter your details below and click Convert — your result appears instantly, right here in your browser. Nothing you enter is uploaded or stored.
B
Developer

Enter your details below.

How to use

  1. Enter the number to convert.
  2. Pick the base it is currently in and the base you want.
  3. Press Convert to see the result.

About this tool

Different bases count the same value with different digits: binary uses only 0 and 1, octal uses 0 to 7, decimal uses 0 to 9, and hexadecimal adds letters A to F. This tool converts a whole number from any of those bases to any other, and rejects digits that do not belong in the chosen base. It handles whole numbers only, not fractions, and very large numbers may lose precision because of how JavaScript stores numbers.

Frequently asked questions

What digits can I use in hexadecimal?

Digits 0 to 9 plus letters A to F, in either upper or lower case. Letters beyond F are not valid hex digits.

Can I convert fractions like 10.5?

No. This tool converts whole numbers only. Fractions need a separate fractional conversion, since the part after the point works differently.

Related tools

All tools · Read the guide: Base Converter