Number Base Converter

Choose the input base, type an integer, and read binary, octal, decimal, and uppercase hex together. Hex may start with 0x. Invalid digits for the chosen base show an error instead of a fake conversion.

Updated 2026-08-25 · Math

Binary11111111
Octal377
Decimal255
HexFF

About this tool

This page replaces the old decimal-only hex and binary tools. Values parse as big integers so you are not limited to 32-bit JavaScript numbers. Negative values keep a leading minus in every base.

How to use

  1. Pick the input base: Choose binary, octal, decimal, or hex.
  2. Type the value: Enter an integer in that base, such as 255 or FF.
  3. Read all bases: Binary, octal, decimal, and hex update together when the input is valid.
  4. Fix invalid input: If you see an error, the digits do not belong to the selected base.

Common use cases

Tips

FAQ

Can I convert hex back to decimal?

Yes. Set Input base to Hex and type FF to see decimal 255 and the other bases.

Where did the binary converter go?

Binary is one of the four bases on this page. The old binary-converter URL redirects here.

Are fractions supported?

No. This tool converts integers only.

Is conversion done on a server?

No. The number is converted in your browser as you type.

Related keywords

Related tools