Hexadecimal-to-Decimal Converter

Easy to use Hexadecimal-to-Decimal converter for accurate and fast hex-to-decimal conversion. We use the algorithm trusted by millions.

Hexadecimal to Decimal Conversion

What is a hexadecimal?

Hexadecimal refers to the base-16 number system, that represents numbers using a radix (base) of 16. The numerals 0–9 are used to represent their usual values and the letters A–F (or a–f) represent the values 10–15. For example, the decimal number 13 is represented as D (or d) in the hexadecimal numbering system.

Hexadecimal numerals are widely used by computer system designers and programmers as it can represent every byte (8 bits) as two consecutive hexadecimal digits. In this way hexadecimal numerals provide a human-friendly representation of binary-coded values.

How to convert hexadecimal to decimal (or hex to dec)?

One of the most well-know formula for converting a hexadecimal number to decimal is the “Division-remainder in source base” algorithm. [1]https://en.wikipedia.org/wiki/Hexadecimal#Conversion This is a simple algorithm for converting a representation of a number to hexadecimal by doing integer division and remainder operations in the source base. In theory, this is possible from any base, but for most humans only decimal and for most computers only binary can be easily handled with this method.

Let d be the number to represent in hexadecimal, and the series hihi−1…h2h1 be the hexadecimal digits representing the number.

  1. i ← 1
  2. hi ← d mod 16
  3. d ← (d − hi) / 16
  4. If d = 0 (return series hi) else increment i and go to step 2

“16” may be replaced with any other base that may be desired.

More Numeral Converters

References

References
1 https://en.wikipedia.org/wiki/Hexadecimal#Conversion
❤️ If you've found this useful, share it with others ❤️