Hex to Decimal
Hex to Decimal: Convert hexadecimal whole numbers to decimal without losing integer precision; the selectors also support the other listed bases.
Decimal to Hex: Convert decimal whole numbers to hexadecimal without losing integer precision; the selectors also support the other listed bases.
Convert decimal whole numbers to hexadecimal without losing integer precision; the selectors also support the other listed bases.
Example: Using Integer to convert = 101010; From base = Decimal · 10; To base = Hexadecimal · 16, the result is 18A92.
How it is calculated: Value = sum of each digit × input-base^(position from the right). Express that exact integer using the selected output base.
The starting view reads base 10 and writes base 16. The value stays the same; only the digit representation changes. Both base menus can be changed.
Positional digits represent powers of the selected base. Binary allows 0–1, octal 0–7, decimal 0–9 and hexadecimal 0–9 plus A–F. Exact BigInt arithmetic avoids ordinary floating-point integer rounding.
42 in base 10 represents decimal 42, which is 2A in base 16. In binary, 101010 = 32 + 8 + 2.
A leading minus is supported. Up to 4,096 input digits are accepted; signed values are mathematical integers, not two’s-complement bit patterns.
Guidance updated . Methods and corrections
Your calculation values and selected files are not stored. Recent and saved tools keep tool identifiers; your market preference keeps only its country code in this browser.
Use the grouped tool selector above the form. Each tool has its own URL, and your browser’s Back button returns to the previous tool.