Skip to content

Binary, decimal & hexadecimal converter

Convert integers between binary, octal, decimal and hexadecimal, including very large and negative values.

AvailableIn your browserInput: Text

How to use: Binary, decimal & hexadecimal converter

  1. Type a number.
  2. Say which base it is in (binary, octal, decimal or hexadecimal).
  3. Copy its value in the other bases.

What it accepts and what you get

Input
Integers, including very large ones.
Output
The number in binary, octal, decimal and hexadecimal.
Where your data is processed
Your data is processed in your browser and is not sent to our servers.

Limitations and notes

  • Exact arithmetic (BigInt) is used, so large numbers keep their precision.
  • Integers only: fractions are not converted.

Frequently asked questions

How do I convert a number from binary to decimal or hexadecimal?

Enter the number, say which base it is in (binary, octal, decimal or hexadecimal) and copy its value in the others.

Does it support very large numbers or decimals?

Very large ones yes, because it uses exact arithmetic (BigInt) and loses no precision. Decimals no: only integers are converted.

What are binary and hexadecimal?

Binary uses only 0 and 1, the basis of computers. Hexadecimal uses 16 symbols (0-9 and A-F) and shortens binary a lot: 255 is 11111111 in binary and FF in hexadecimal.

Does it accept negative numbers?

Yes, the tool works with signed integers and with very large numbers without losing precision. Decimals are not converted.

When to use it

  • When you study or code and need to move a value between binary, octal, decimal and hexadecimal.
  • To read a colour or memory address written in hexadecimal.
  • When you have to turn a colour or a network mask into another base.

Examples

255 in every base
Type 255 in decimal and get 11111111 in binary, 377 in octal and FF in hexadecimal.
Very large numbers
Exact arithmetic is used, so a huge number keeps every digit.
A colour in hexadecimal
The value FF (hexadecimal) is 255 in decimal and 11111111 in binary: the maximum of a colour channel.

Common mistakes

  • Choosing the wrong source base: “10” is 2, 8, 10 or 16 depending on the base you pick.
  • Trying to convert fractions: only integers are converted.
  • Typing a number with letters, like “FF”, with the base set to decimal: choose the right source base first.