Generate secure RSA key pairs in seconds

Browser-based RSA key generator for developers, security teams, and DevOps. Create 2048 and 4096-bit RSA key pairs, manage them in a private dashboard, and export keys in PEM format.

No software to install. OpenSSL-backed, HTTPS‑only.

Try it now

  1. Create a free account
  2. Pick your key size (2048 or 4096‑bit)
  3. Copy or download your keys

Generate RSA keys without an account

Use this free tool to generate a one‑off RSA key pair. Keys are generated server‑side with OpenSSL and are not stored on our servers for guest users.

Why use our RSA key generator?

Secure by design

Keys are generated on a secure backend with OpenSSL and delivered over HTTPS. No third‑party sharing.

Developer‑friendly

PEM‑encoded public and private keys that work with OpenSSL, JWT libraries, and most crypto toolkits.

Key history

Recent keys remain available in your dashboard so you can re‑download them when needed.

Responsive interface

Optimized for desktop, tablet, and mobile so you can generate RSA keys from anywhere.

How it works

When you create a new RSA key pair, our service uses the OpenSSL extension in PHP to generate a high‑entropy private key and derive its matching public key. Both keys are stored in PEM format, associated with your account, and can be copied directly into your configuration files or code.

Frequently Asked Questions

What is an RSA key pair?

An RSA key pair consists of a Public Key (shared openly to encrypt data or verify signatures) and a Private Key (kept secret to decrypt data or create signatures). They are mathematically linked; data encrypted with one can only be decrypted by the other. Their security relies on the extreme computational difficulty of factoring the product of two very large prime numbers. Real-World applications include securing internet traffic (SSL/TLS), secure remote access (SSH), VPN secure connection and authentication, digital certificates, and email encryption.

Can I generate keys without registering?

Yes. You can generate a one-time RSA key pair as a guest without creating an account. Guest keys are not stored on the server.

Which key size should I use?

2048-bit RSA is the recommended default for most new uses. 4096-bit is stronger but slower, and 1024-bit is legacy and only suitable for testing or older systems.

Can I download my saved keys?

Yes. Registered users can view, copy, and download their stored public and private keys from the dashboard.

Are my private keys safe?

Private keys should always be handled carefully. Guest keys are not stored, and registered users should keep their private keys secure and only download them on trusted devices.

How to generate RSA keys manually using ssh-keygen utility

If you prefer generating keys on your own computer, you can use the utility  ssh-keygen  from the command line. The example below creates a 2048-bit RSA private key and public key.

  1. Open a terminal or command prompt:
    • For Windows: Press the Windows Key, type "cmd", and open the application.
    • For macOS: Press Command + Space, type "Terminal", and hit Enter.
    • For Linux: Press Ctrl + Alt + T simultaneously.
  2. Run the generation command: Type the following command and press Enter. The  -b 2048  flag specifies a 2048-bit key length:
ssh-keygen -t rsa -b 2048
  1. Specify a save location: You'll be prompted to "Enter file in which to save the key". You can press Enter to accept the default location, or type a custom path and file name.
  2. Create a passphrase (Optional but Recommended): You will be prompted to "Enter passphrase". Entering a passphrase adds an extra layer of security; you will need to enter this password every time you use the private key. If you want to use the key without a password, just press Enter, and press Enter again to confirm.
  3. Verify the keys: The command output will confirm that your keys have been generated. You can navigate to the save location to find the private and public key files.

 ssh-keygen  is included in Windows 10 systems (build 1803) or newer. For older versions you can use PuTTYgen.


To create a 1024 or 4096-bit RSA keys just replace the  -b  flag:

ssh-keygen -t rsa -b 1024

Or:

ssh-keygen -t rsa -b 4096

You can inspect the files afterward to confirm they contain the expected PEM headers: BEGIN RSA PRIVATE KEY for the private key and BEGIN PUBLIC KEY for the public key.