ok.OK UtilityA LITTLE EVERYDAY MAGIC

Hex to Decimal

Hex to Decimal: Convert hexadecimal whole numbers to decimal without losing integer precision; the selectors also support the other listed bases.

Convert between units

How to use Hex to Decimal

Convert hexadecimal whole numbers to decimal without losing integer precision; the selectors also support the other listed bases.

  1. Choose the input base (initially 16) and enter digits valid for it.
  2. Choose the output base (initially 10); fractions and prefixed literals are not accepted.
  3. Convert and read the exact integer digits, retaining the selected base.

Example: Using Integer to convert = 101010; From base = Hexadecimal · 16; To base = Decimal · 10, the result is 1052688.

How it is calculated: Value = sum of each digit × input-base^(position from the right). Express that exact integer using the selected output base.

Understanding the result

The starting view reads base 16 and writes base 10. 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.

A calculation you can check

2A in base 16 represents decimal 42, which is 42 in base 10. In binary, 101010 = 32 + 8 + 2.

What to check before using the answer

  • Enter raw digits and an optional leading minus sign; do not add 0x, 0b, separators or decimal fractions.
  • Leading zeros may disappear because the output represents an integer, not a fixed-width binary register.
Can it convert negative or very large integers?

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

Are my inputs saved?

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.

Can I switch to a related tool?

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.

Search the complete directory ESC to close
Your everyday toolkit