🔧 Development mode (localhost)

RSA Key Generator

Generate RSA public and private key pairs in PEM format

RSA Key Generator Online — Free PEM Key Pair Generator

How It Works
  1. Select the key size: 2048 bit (recommended) or 4096 bit (higher security)
  2. Choose the use case: Encryption or Signing
  3. Click Generate Keys — generation takes 1–5 seconds for 4096 bit
  4. Copy or download the Public Key and Private Key in PEM format
Frequently Asked Questions
What is the difference between 2048 and 4096 bit?

Both are considered secure today. 2048-bit is the standard and is fast to generate. 4096-bit provides a larger security margin but takes longer to generate and slightly slower to use in operations.

Is my private key safe?

Yes. All key generation happens locally in your browser using the Web Crypto API. No data is sent to our servers. Your private key never leaves your device.

What is PEM format?

PEM (Privacy Enhanced Mail) is the standard text format for cryptographic keys. It encodes binary key data in Base64 with a header (-----BEGIN PUBLIC KEY-----) and footer. It is compatible with OpenSSL, SSH, TLS certificates and most programming languages.

What is the difference between encryption and signing keys?

Encryption keys (RSA-OAEP) are used to encrypt and decrypt data. Signing keys (RSASSA-PKCS1-v1_5) are used to create and verify digital signatures. The underlying RSA math is the same, but the key usage flag differs, so they are not interchangeable.

Related Tools

© 2026 DailyHub. All rights reserved.

We use cookies to improve your experience. Essential cookies are always active, while analytics help us enhance our service.