Big Number Calculator

Big Integer Bitwise Calculator

Calculate bitwise AND, OR, XOR, and shifts on large integers. Enter hexadecimal, binary, octal, or decimal values.

1 digits
Operation
2 digits

How this calculation works

AND retains bits set in both inputs; OR retains bits set in either; XOR retains bits set in exactly one. Left shifts move bits toward higher positions, and right shifts use arithmetic sign extension for negative values.

Inputs and accuracy

Inputs must be whole numbers. Hexadecimal uses 0x, binary uses 0b, and octal uses 0o. For shifts, enter a non-negative shift count as the second input. Negative integers follow unbounded two’s-complement semantics, not a fixed-width mask.

When to use it

Inspect flags and masks, compare integer bit patterns, or test operations beyond 32-bit JavaScript bitwise limits. Use the binary or hex result view to inspect the representation.

Worked examples

0xFF XOR 35

= 220

XOR compares a hexadecimal mask against a decimal input.

0xFF AND 0x0F

= 15

AND retains only the low four set bits.

1 << 100

= 1267650600228229401496703205376

A left shift by 100 yields an exact power of two.

Related calculators

Large Number Addition Calculator

Add large integers and exact decimals without floating-point rounding. See every digit of the sum and copy the result in words.

Large Number Subtraction Calculator

Subtract huge numbers exactly, including negative and decimal values. Find precise differences and inspect every digit.

Large Number Multiplication Calculator

Multiply very large integers and exact decimals. View the full integer product or exact fraction without floating-point conversion.

Large Number Division Calculator

Divide large numbers with exact quotients, remainders, and reduced fractions. Inspect rounded decimals separately.

Large Number Power Calculator

Calculate exact large powers with whole-number exponents, including decimal bases and scientific-notation inputs.

Large Factorial Calculator

Compute exact factorials from 0 to 50,000. View full integer results, digit counts, and downloadable text.

Greatest Common Divisor Calculator

Find the exact GCD of two large integers. Simplify ratios and test common factors without rounding.

Least Common Multiple Calculator

Calculate the exact LCM of large whole numbers. Find common multiples and repeating cycle lengths.

Large Integer Square Root Calculator

Find the exact integer square root of a large non-negative whole number, rounded down without floating-point errors.

Large Number Combinations Calculator (nCr)

Calculate exact nCr combinations for large whole numbers. Count selections where order does not matter.

Large Number Permutations Calculator (nPr)

Compute exact nPr permutations. Count ordered selections from distinct items without replacement.

Exact Decimal Calculator

Add, subtract, multiply, and divide decimals using exact fractions. Avoid floating-point errors such as 0.1 + 0.2.

Scientific Notation Calculator

Calculate with scientific-notation input such as 3.5e19. Parse large and tiny decimal values exactly as written, without floating-point conversion.