Hex to Decimal Converter
Convert hexadecimal numbers into decimal instantly. This tool also shows binary, octal, ASCII preview, grouped hex, and a step-by-step digit breakdown so you can understand the result, not just copy it.
Convert Hexadecimal to Decimal
Enter a hex value such as FF, 1A3, 0x7B, or #FFFFFF. The result updates instantly.
Place Value Breakdown
Each hex digit is multiplied by a power of 16, then all values are added together.
| Hex digit | Decimal digit | Power | Place value | Contribution |
|---|
What Is a Hex to Decimal Converter?
A hex to decimal converter changes a number from hexadecimal, also called base 16, into decimal, also called base 10. Hexadecimal uses the digits 0 to 9 and the letters A to F. The letters represent values higher than 9, so A means 10 and F means 15.
This converter is useful for programmers, students, web designers, electronics learners, and anyone working with technical number systems. Hex values appear in color codes, memory addresses, error codes, network tools, file data, and low-level computing.
Why This CalcMora Converter Is More Useful
A basic converter only gives the decimal number. This tool gives more context. It cleans common prefixes like 0x and #, validates the input, converts the value to decimal, binary, and octal, shows the digit count and bit length, and builds a place-value table.
The breakdown table is the main learning feature. It shows how every hex digit contributes to the final decimal result. This helps users who want to understand the conversion method instead of only getting a final number.
How to Use This Hexadecimal to Decimal Calculator
Type or paste a hexadecimal number into the input box. You can enter values like FF, 7B, 1A3F, 0x2F, or #FFFFFF. The calculator removes common prefixes and spacing automatically, then checks whether the remaining characters are valid hexadecimal digits.
The main result shows the decimal value. The cards below it show the cleaned hex input, binary result, octal result, number of hex digits, bit length, and ASCII preview where possible. The table below the result explains the calculation by digit, power of 16, place value, and contribution.
Hex to Decimal Formula
The standard formula is:
Start from the rightmost digit. That digit is multiplied by 16โฐ. The next digit to the left is multiplied by 16ยน, then 16ยฒ, 16ยณ, and so on. After calculating each digit contribution, add all contributions together to get the decimal result.
For example, FF in hex means 15 ร 16ยน plus 15 ร 16โฐ. That becomes 240 + 15, which equals 255 in decimal.
Worked Examples
Example 1: FF to decimal
F equals 15. FF means 15 ร 16ยน + 15 ร 16โฐ. That is 240 + 15 = 255. So FFโโ equals 255โโ.
Example 2: 1A to decimal
A equals 10. 1A means 1 ร 16ยน + 10 ร 16โฐ. That is 16 + 10 = 26. So 1Aโโ equals 26โโ.
Example 3: 7B to decimal
B equals 11. 7B means 7 ร 16ยน + 11 ร 16โฐ. That is 112 + 11 = 123. So 7Bโโ equals 123โโ.
Example 4: FFFF to decimal
FFFF has four F digits. Its decimal value is 65,535. This value is common in computing because it is the maximum value of a 16-bit unsigned number.
Common Hex to Decimal Conversion Table
Use this quick table for common hexadecimal values. These examples are useful for programming, color values, byte ranges, and learning base 16.
| Hex | Decimal | Binary | Common use |
|---|---|---|---|
| 0A | 10 | 1010 | Hex digit A |
| 10 | 16 | 10000 | Base 16 place start |
| 1A | 26 | 11010 | Small hex example |
| 7B | 123 | 1111011 | ASCII character example |
| FF | 255 | 11111111 | One byte max |
| FFFF | 65,535 | 1111111111111111 | 16-bit unsigned max |
| FFFFFF | 16,777,215 | 111111111111111111111111 | RGB white color |
Where Hexadecimal Values Are Used
Hexadecimal is common because it is shorter than binary and easier for humans to read in technical work. A long binary value can often be written as a much shorter hex number. That is why developers use hex in debugging, memory addresses, machine-level values, byte data, and color codes.
In web design, color codes such as #FFFFFF and #000000 are hexadecimal values. In programming, a value like 0xFF often means 255 in decimal. In data work, hex values can represent bytes, flags, permissions, or encoded information.
Related CalcMora Tools
If you are checking numbers from a receipt or invoice, the Reverse Sales Tax Calculator can help separate tax from a final amount. For money conversion and exchange-rate planning, try the Currency Converter.
If you are working with measurement conversions instead of number systems, the Lbs to Stone Converter can help convert weight values between pounds, stones, kilograms, and ounces.
Hex to Decimal Converter FAQ
How do I convert hex to decimal?
Convert each hex digit into its decimal value, multiply it by the matching power of 16, and add all contributions together. The rightmost digit uses 16โฐ, the next uses 16ยน, then 16ยฒ, and so on.
What characters are valid in hexadecimal?
Valid hexadecimal characters are 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, and F. Lowercase letters are also accepted because a and A represent the same value.
Can I enter 0x or # before the number?
Yes. This converter accepts common formats such as 0xFF and #FFFFFF. It removes the prefix before calculating the decimal value, which makes it useful for programming and color-code examples.
What is FF in decimal?
FF in hexadecimal is 255 in decimal. Each F equals 15, so the calculation is 15 ร 16 plus 15. That gives 240 + 15, which equals 255.
Why do programmers use hexadecimal?
Programmers use hexadecimal because it is compact and maps neatly to binary. One hex digit represents four binary bits, so byte values, memory addresses, and color codes are easier to read in hex than in long binary strings.
Does this converter support very large hex numbers?
Yes, it uses JavaScript BigInt for whole-number conversion, so it can handle large integer hex values better than ordinary number math. It does not support fractional hexadecimal values in this version.