Modular exponentiation calculator
Compute (base ^ exponent) mod modulus — the building block of RSA, Diffie-Hellman and other public-key cryptography. The calculator uses the fast square-and-multiply algorithm, reducing modulo the modulus at every step, so it never forms the gigantic full power and handles enormous exponents instantly.
Enter three non-negative whole numbers and the result appears immediately. All arithmetic uses arbitrary-precision integers and runs locally in your browser.