esc
Calculators

Number base converter:
binary, octal, decimal, hex, base 2–36

Type a number, pick the base it is in and the base you want. The result appears with the same number in binary, octal, decimal, duodecimal, hex and base 36 below it.

In base 2 (binary)11111111.11255.75 in base 10
Decimal value
255.75
As a fraction
1,023/4
The same number in other bases
BaseNameValue
8Octal377.6
10Decimal255.75
12Duodecimal193.9
16HexadecimalFF.C
36Base 3673.R
  • Digits above 9 use letters: A = 10, B = 11 … Z = 35.

How to use Number base converter

  1. 01Type the numberWhole or with a point.
  2. 02Pick both bases2, 8, 10, 16 or any up to 36.
  3. 03Read the conversionAnd the other common bases.
File character arranging marked pages

Same number, other digits.

Every base works the same way: each place is worth the base times the place to its right. The whole part is converted by repeated division and the fraction part by repeated multiplication, using exact fractions, so 0.1 in decimal correctly becomes the never-ending binary 0.0(0011). Bases above 10 use letters for digits, from A = 10 up to Z = 35.

At a glance

Price
Free. No sign-up, no watermark.
Privacy
Your text stays in your browser. Nothing is uploaded.
Works in
Chrome, Edge, Firefox and Safari, on phones and computers

Questions

How do I convert 255.75 to binary?

The whole part 255 is 11111111. For the fraction, 0.75 × 2 = 1.5 (digit 1), then 0.5 × 2 = 1.0 (digit 1), so 0.75 = 0.11 and the answer is 11111111.11.

Why does 0.1 never end in binary?

0.1 is 1/10, and 10 has the prime factor 5, which 2 does not. Like 1/3 in decimal, it repeats: 0.000110011… This is why computers store 0.1 slightly inaccurately.

What is base 36 used for?

It uses all ten digits and 26 letters, so it writes big numbers in few characters. Short links and ID codes often use it.

Is what I type sent anywhere?

No. The calculation runs in your browser and nothing you type leaves your device.