ToolPuma Logo

RSA Key Pair Generator

Generate an RSA public/private key pair (PEM).

Note: The key pair is generated locally with the Web Crypto API and never leaves your device. Use the public key with the RSA Encrypt tool and the private key with the RSA Decrypt tool. Store the private key securely — anyone with it can decrypt your messages.

What Is a RSA Key Pair Generator?

The RSA Key Pair Generator creates a 2048-bit RSA-OAEP public/private key pair entirely in your browser using the Web Crypto API. Both keys are exported in PEM format for use with the other RSA tools.

How to Use This RSA Key Pair Generator

  1. 1
    GenerateClick 'Generate RSA Key Pair' to create a fresh pair.
  2. 2
    Save KeysCopy or download both the public and private keys.
  3. 3
    UseShare the public key for encryption and keep the private key secret for decryption.

Frequently Asked Questions

No. Generation happens locally with crypto.subtle. The keys never leave your device.
2048-bit RSA is the recommended minimum for security today. It balances strength with speed and is supported by all modern systems.