Rates TodayNIFTY25,698.9+0.20%SENSEX83,796.9+0.52%Gold 24K ₹12,037.23/g down2.69Silver ₹147.02/g down0.03
InsightforGeeks

Binary, Decimal & Hex Converter

Type a number in binary, octal, decimal or hexadecimal and see it in all four bases at once. It handles very large values exactly and accepts prefixes such as 0x, 0b and 0o.

Binary (base 2)

11111111

Octal (base 8)

377

Decimal (base 10)

255

Hexadecimal (base 16)

FF

How to use it

  1. Type your number.
  2. Choose the base it is written in.
  3. Read the result in binary, octal, decimal and hexadecimal.

Frequently asked questions

How do I convert binary to decimal?

Add up the powers of two for each 1 bit, from the right. 1011 is 8 + 2 + 1 = 11.

How do I convert decimal to hexadecimal?

Divide by 16 repeatedly and read the remainders from the bottom, using A to F for 10 to 15. 255 is FF.

Can it handle big numbers?

Yes. It uses arbitrary precision integers, so long values stay exact.

Does it support negative numbers or fractions?

No. It converts non-negative whole numbers.

Related tools

These tools run entirely in your browser and are provided free, without warranty. Check important results before using them in production.