๐Ÿ—๏ธ

RSA Key Generator

Generate RSA key pairs (2048/3072/4096 bit) in PEM format. Download public and private keys. Free online RSA key generator.

Free Developer
Key Length

Frequently Asked Questions

What is RSA encryption?

RSA is an asymmetric cryptographic algorithm that uses a pair of keys: a public key for encryption and a private key for decryption. It's widely used for secure data transmission, digital signatures, and SSL/TLS certificates.

What key length should I use?

2048-bit is the current standard and sufficient for most applications. 3072-bit provides additional security margin. 4096-bit offers the highest security but is slower to generate and use. For new systems, 2048 or 3072 is recommended.

What is PEM format?

PEM (Privacy Enhanced Mail) is a Base64-encoded format for storing cryptographic keys and certificates. PEM files start with "-----BEGIN PUBLIC KEY-----" or "-----BEGIN PRIVATE KEY-----" headers. It's the most widely supported key format.

How do I use the generated keys?

Share the public key openly โ€” anyone can use it to encrypt data or verify signatures. Keep the private key secret โ€” only you use it to decrypt data or create signatures. Never share your private key. Common use cases include SSH authentication, JWT signing (RS256), and SSL certificates.

Is this tool secure?

Yes, RSA key pairs are generated entirely in your browser using the Web Crypto API. The keys never leave your device. No data is uploaded to any server. The private key is generated locally and stays in your browser until you download it.

What's the difference between RSA and AES?

RSA is asymmetric โ€” uses two different keys (public/private pair), slower, suitable for small data and key exchange. AES is symmetric โ€” uses one shared key, much faster, suitable for large data. In practice, RSA is used to encrypt an AES key, and AES encrypts the actual data.