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. This free online tool is useful for RSA key pair generator, RSA public private key generator, RSA 2048 key. Common use cases include public-key development, certificates, encryption testing, and API security. It is designed for quick browser-based hashing, encoding, decoding, encryption testing, checksum comparison, identifier generation, and cryptography education. For production security, follow the algorithm's current standards, key-management requirements, and application-specific security guidance.

How to Use This RSA Key Pair Generator

  1. 1
    Prepare the key materialPaste or generate the RSA key required by the operation.
  2. 2
    Enter the dataProvide plaintext for encryption or ciphertext for decryption.
  3. 3
    Run the operationThe browser performs RSA-OAEP processing locally.
  4. 4
    Review the resultCheck the generated Base64 ciphertext or recovered plaintext.
  5. 5
    Use safelyKeep private keys secret and use hybrid encryption for large data in production systems.

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.