Binary, hexadecimal & big integer arithmetic

Binary, hexadecimal & big integer arithmetic: use first integer, second integer, input number base. Review the formula, worked example and calculation steps.

Inputs

Use the units shown
RESULT
—

Enter your values and select Calculate.

Formula & explanation
Parse whole numbers in the chosen base; use exact integer arithmetic; format in the output base

Variables & units

First integer
Text input
Second integer
Text input
Input number base
Select an option
Operation
Select an option
Output number base
Select an option

Worked example

Hexadecimal FF + 1 = 100; decimal 255 + 1 = 256.

Assumptions

Up to 250 digits per input. No fractional digits or prefixes such as 0x. Integer division truncates toward zero; results retain exact BigInt precision.

Formula version 1.0.0. JavaScript floating-point arithmetic applies. Results display up to 6 decimal places; stored values retain available precision. Use the units shown.

Calculated on your device. Your latest 100 calculations stay in this browser.