Tested tool guide
Tested browser tools
Checked August 16, 2026
What RSA Key Pair Generator does, with a checked example
This tool generates an RSA public/private key pair from a key size you choose, using the browser's Web Crypto API rather than a server, so nothing is uploaded and nothing can be intercepted in transit. The primes and exponents come from the browser's own secure random machinery. What surprises most people: generation is deliberately random, so every click produces a different pair, and the private key exists only in the page. Close the tab before saving it and it is gone permanently. The tool creates keys only - it does not encrypt, sign, or issue certificates.
Worked example
A concrete input and expected output from the current implementation.
Input
Key size: 2048 bits
->
Expected output
-----BEGIN PUBLIC KEY-----
(392 base64 characters encoding the 294-byte SPKI structure; different every run)
-----END PUBLIC KEY-----
-----BEGIN PRIVATE KEY-----
(PKCS#8 encoding of the private key; different every run)
-----END PRIVATE KEY-----
RSA key generation is random by design, so the base64 bodies cannot be predicted and differ on every click; only the envelope is deterministic. Web Crypto exports private keys as PKCS#8 and public keys as SPKI, which is why the headers read PRIVATE KEY and PUBLIC KEY rather than the older PKCS#1 RSA PRIVATE KEY.