Number-base Converter

Use this calculator

A positional numeral system uses a base to determine the value of each digit position. The current Number-base Converter has three modes: Convert integer, Binary arithmetic and Hex arithmetic. All three use exact integer arithmetic through BigInt.

Convert integer between supported bases

N=\sum_{i=0}^{k} d_i b^i
N = integer value; b = selected source base (2 to 36); dᵢ = digit value at position i, counting from the right; k = highest occupied position. The app parses exactly with BigInt and renders the destination base.

The governing equation

ModeInputsPrimary output
Convert integerValue; From base; To baseConverted value in the selected destination base
Binary arithmeticFirst integer; Operation; Second integerBinary result
Hex arithmeticFirst integer; Operation; Second integerHex result

Convert integer offers Binary (2), Octal (8), Decimal (10), Hexadecimal (16) and Base 36 choices. Enter a valid integer string for the selected source base. The converter parses the integer exactly and renders it in the selected destination base.

Read the common representations

In Convert integer mode, the converted value is primary. Supporting output includes Decimal, Hexadecimal, Octal and Binary representations when produced by the programmer conversion engine. Invalid digits for the selected source base are rejected.

One integer, four common bases. FF₁₆, 255₁₀, 377₈ and 11111111₂ have equal value.

The hexadecimal number 2A equals 2 × 16 + 10 = 42. Binary 1010 equals 8 + 2 = 10. Place weights matter more than digit appearance.

Binary and hexadecimal arithmetic

Binary arithmetic interprets both entered integers as base 2. Hex arithmetic interprets both as base 16. Choose Add, Subtract, Multiply, Integer divide or Remainder. Division and remainder reject a zero second operand.

OperationMeaning
AddFirst + Second
SubtractFirst − Second
MultiplyFirst × Second
Integer divideInteger quotient First ÷ Second
RemainderRemainder after integer division

Arithmetic mode reports the result in its working base as the primary output and also shows Decimal, Binary and Hexadecimal representations. Both operands and the arithmetic result are handled as integers; integer division does not return a fractional quotient.

Exactness and signed values

BigInt avoids floating-point rounding for these integer workflows. Signed integer strings are supported by the parser when they are valid for the selected radix.

Binary positional weights. Each bit position has a power-of-two weight.

Binary maps directly to bit patterns; hexadecimal groups four binary bits per digit; octal groups three bits; decimal is conventional for ordinary counting.

Quick answers

Which bases can Convert integer select?

The current selectors provide Binary (2), Octal (8), Decimal (10), Hexadecimal (16), and Base 36.

What operations are available in Binary arithmetic and Hex arithmetic?

Add, Subtract, Multiply, Integer divide and Remainder.

Are large integers rounded?

No. The integer workflows use BigInt for exact parsing and arithmetic.

Why can integer division differ from ordinary calculator division?

This mode returns the integer quotient; use Remainder separately when you need the leftover part.