Generate cryptographically secure RSA keypairs using the browser SubtleCrypto engine. Outputs standard PKCS#8 private keys and SPKI public keys in PEM format for SSH, JWT signing, and SSL certificates.
Runs entirely in your browser
RSA keypairs underpin a lot of everyday security: SSH logins, signing JSON Web Tokens, and the certificates behind HTTPS. A keypair consists of a private key you keep secret and a public key you can share freely; data encrypted or verified with one relates mathematically to the other. This tool generates cryptographically secure RSA keypairs at 2048-bit or 4096-bit strength using the browser’s SubtleCrypto engine.
The output is in the standard PEM formats you will actually need — PKCS#8 for the private key and SPKI for the public key — so the keys drop straight into tools and libraries that expect them. Generating in the browser via SubtleCrypto means the keys are produced with a proper cryptographic random source and never sent to a server, which is essential for a private key.
On key size: 2048-bit is the common baseline and is widely considered adequate today, while 4096-bit offers a larger margin at the cost of slower operations. Whatever you choose, the private key’s security is only as good as how you store it — keep it out of shared locations and never paste a private key you intend to keep into an untrusted site.
TechToolsHQ is an independent, reader-supported tech platform. If this free tool saved you time, solved a problem, or helped your workflow, consider supporting our work. Your support helps us keep our utilities 100% free, private, and ad-free for everyone.