RSA Key Pair Generator

Generate a local RSA-OAEP 2048-bit key pair and export unencrypted PEM.

Your workspace

Processed in your browser

Enter your values or try the example.

This utility generates a fresh 2048-bit RSA-OAEP key pair directly in your browser. It uses the Web Crypto API to ensure that key generation happens locally, meaning your private keys are never transmitted over the network.

Generating your key pair

  1. Click the generate button to trigger the creation of a new RSA-OAEP 2048-bit key pair.
  2. Copy the resulting PEM blocks. The public key is provided in SPKI format, and the private key is provided in PKCS8 format.

Security and usage

The generated private key is exported in an unencrypted PKCS8 format. This is suitable for development, testing, or ephemeral environments. Because the keys are generated locally, they are not stored or managed by any server. Once you refresh the page, these keys are lost unless you have saved them elsewhere.

Typical output

Generate new key pair

-----BEGIN PUBLIC KEY-----\n...\n-----END PUBLIC KEY-----\n\n-----BEGIN PRIVATE KEY-----\n...\n-----END PRIVATE KEY-----

Questions about key generation

Are these keys secure for production?

While the keys are cryptographically strong (2048-bit RSA), the private key is exported unencrypted. For production, you should use a dedicated key management system or hardware security module (HSM) to protect your private keys.

Can I use these keys with OpenSSH?

No, this tool generates standard SPKI/PKCS8 PEM files. OpenSSH typically requires keys in its own specific format, which often requires a conversion step using tools like ssh-keygen.

Continue your workflow

Explore more tools in this category for your next step.