Skip to content
Calculated in the browser

Number bases

One field converts a number from one base to another.

How it is calculated

The letters A–Z stand for the digits from 10 to 35. Letter case does not matter. A fractional part and a minus sign are not converted here.

A digit cannot be greater than or equal to the base

Where the numbers come from

  • Number
  • From base
  • To base

Example

255 from decimal to hexadecimal is FF. In binary it is 11111111.

Questions

Why not 0x at the start?

You do not need a prefix. For a hexadecimal number, FF is enough.

Will base 2 accept the digit 2?

No. Binary uses only 0 and 1.

Long numbers?

While the value still fits in an exact integer. The calculator rejects strings that are too long.