🔐

RSA Key Generator

Securely generate RSA public and private key pairs with various lengths and purposes, fully local processing.

Generates RSA-OAEP keys for encryption workflows.

The current output uses RSA-OAEP and is intended for public-key encryption.

What is RSA?

RSA is an asymmetric cryptographic algorithm widely used for encryption, key exchange, and digital signatures. It relies on a public key and a private key with different security roles.

Common uses of RSA Key Pairs:

  • Data Encryption: Encrypt data with the public key; only the private key can decrypt it.
  • Digital Signatures: Sign messages with the private key to verify authenticity and integrity using the public key.
  • Certificates, JWT, and OpenSSL workflows: standard PEM key material that some tools may require you to convert first.

Note: This tool uses the browser Web Crypto API to generate keys locally. Your private key is never uploaded to any server. The output is standard PEM, not an OpenSSH-specific key, so verify format requirements before using it with other tools.

About This Tool

The RSA Key Generator is a secure and reliable online tool for generating RSA public and private key pairs. It uses the browser's Web Crypto API for local computation, ensuring your private key never leaves your device. Supports 2048, 3072, and 4096-bit key lengths with RSA-OAEP (encrypt/decrypt) or RSA-PSS (sign/verify) purpose options. The generated keys are standard PEM (PKCS#8 private key and SPKI public key), suitable for OpenSSL, Web Crypto, and other workflows that may require format conversion.

Features

  • 🔐 Secure Generation: Based on Web Crypto API, fully local
  • 📏 Multiple Lengths: Supports 2048, 3072, 4096 bit keys
  • 🎯 Purpose Options: Supports encryption (RSA-OAEP) or signing (RSA-PSS)
  • 📄 Standard Format: Output in PEM format (PKCS#8/SPKI)
  • 📋 One-click Copy: Easily copy public and private keys
  • 🚫 No Upload: Private keys stay locally, never sent to server