All tools · Developer

Number base converter (binary, hex)

Enter a number and its base to see it in bases 2, 8, 10, 16 and any other base.

A 0x, 0b or 0o prefix overrides the input base.

Binary—
Octal—
Decimal—
Hexadecimal—
—

How to use

  1. Enter a number and choose its base.
  2. Bases 2, 8, 10 and 16 appear at once; pick any other base in the last row.
  3. Turn off digit grouping to copy without spaces.

Questions

How large can numbers be?

Any size: integers are handled with BigInt.

Fractions?

Integers only for now.

How are negatives shown?

With a minus sign (-ff), not as two's complement.

Is my input saved or sent?

No. It is processed in your browser only.

Related tools

All tools