Calculators.Solutions ⬇︎ Click to open the menus
Simple online calculators
Dark
Found a bug? Have a suggestion? Contact me
Loading the template
Calculators Solutions : Decimal, binary and hexadecimal numbers
Decimal ➧Dec. ➧
Binary ➧Bin. ➧
Hexadecimal ➧Hex. ➧
Approximate value: result truncated to 64 binary digits (16 hexadecimal digits) after the point.
Results history (All cells are editable)
Decimal Binary Hexadecimal Note
{y}
Please wait a moment

Convert a Decimal Number to Binary and Hexadecimal (and Back)

This converter transforms a decimal number into a binary number and a hexadecimal number. You can also convert a binary number or a hexadecimal number into a decimal number. Of course, converting a binary number to a hexadecimal number works too.

What is a decimal number?

It is a number with or without a decimal point. It is the most widely used form in our world. It allows arithmetic operations. The numbers are base 10 and made up of 0, 1, 2, 3, 4, 5, 6, 7, 8, 9.

What is a binary number?

It is a numbering system using base 2. It is used in electronics and computing. Since a computer is a machine (made of electronic components), it only understands binary language and stores information in a bit that can only take two values. Binary numbers are made up of 0s and 1s.

What is a hexadecimal number?

The hexadecimal system is made up of 16 basic values: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E and F. It is therefore a numbering system using base 16. This system is used in computing and makes it possible, among other things, to compress binary code. For example, color codes are often written in hexadecimal (blue = 0002ff).

Converting a number with a decimal point

The converter accepts numbers with a fractional part in all three boxes, written with a point: 12.5 is written 1100.1 in binary and C.8 in hexadecimal. Spaces are ignored, which lets you group the digits (1100 0011 is the same as 11000011), and commas used as thousands separators in the decimal box are ignored too (1,000 is read as 1000).

From binary or hexadecimal to decimal, the result is always exact. The other way round is not always possible: 0.1 has no finite form in binary (0.000110011…, where 0011 repeats endlessly). The result is then truncated to 64 binary digits and 16 hexadecimal digits after the point, and a message says so.

Why it's useful

Using this tool to convert numbers can be very useful for students and IT professionals.

Saved results

You can record the decimal, binary and hexadecimal numbers in a table by pressing the Save button. If you wish, you can also export it in CSV or PDF format.