Modular Arithmetic Calculator
Calculate sums, differences, products, powers and inverses modulo m, with the extended Euclidean table and a Chinese remainder solver.
Open toolConvert whole numbers and fractions between any bases from 2 to 36, with repeating digits and two’s-complement views.
Type a number in any base from 2 to 36 and see it in binary, octal, decimal, hexadecimal and the target base of your choice. Whole numbers of any length convert exactly. Fractions are converted exactly too: if the expansion repeats, the repeating block is shown in brackets (0.1 in decimal is 0.0(0011) in binary); otherwise it stops after the number of digits you choose and is marked with “…”.
For whole numbers, a fixed-width table shows the signed two’s-complement bit pattern for 8, 16, 32 and 64 bits and whether the value fits as an unsigned integer — handy for programming and digital electronics. Invalid digits for the chosen base are pointed out. Everything is calculated in your browser; nothing you enter is uploaded.
Your details
Bases 2–36, 0b / 0o / 0x prefixes
Processed in this browser
Instant, in-browser. Nothing is uploaded.
Your result
Shown instantly, ready to copy or export
Type the number and choose the base it is written in.
Pick a target base, or read binary, octal, decimal and hex directly.
Copy any result; check the two’s-complement table for whole numbers.
Zero-upload architecture
Free, with no sign-up or watermark · Your details stay on your device
Launch the app. There is nothing to install and no account to create.
Pick a target base, or read binary, octal, decimal and hex directly.
Copy any result; check the two’s-complement table for whole numbers.
Calculate sums, differences, products, powers and inverses modulo m, with the extended Euclidean table and a Chinese remainder solver.
Open toolCalculate logarithms in any base, ln, log₁₀ and log₂, with change-of-base steps — or the antilog bʸ.
Open toolA full scientific calculator with trig in degrees or radians, logs, powers, roots, factorials, memory and history.
Open toolCalculate mean, median, mode, variance, standard deviation, quartiles, outliers and skewness, with a box plot and frequency table.
Open tool