RSA Key Generator

Generate RSA public/private key pairs using the browser's WebCrypto API (RSASSA-PKCS1-v1_5 or RSA-OAEP). Choose 2048 or 4096-bit key size. Export both keys in PEM format (PKCS#8 private, SPKI public) or as base64 DER. Keys are generated locally and never leave your browser.

Loading tool...Loading tool...

Common Use Cases

  • Generate SSH key pairs for testing
  • Create JWT signing key pairs
  • Test RSA encryption in applications
  • Generate test certificates

Frequently Asked Questions

What is the difference between 2048 and 4096 bit keys?

4096-bit RSA is significantly more resistant to brute-force attacks but takes ~4x longer to generate and sign/verify. For most web applications, 2048-bit is sufficient through 2030+. Use 4096-bit for long-lived certificates or high-security environments.

Related Tools

Tool Info

CategorysecurityAI EnhancementNoData StorageZero retention