Search EverydayTab Tools

Type a tool name, tag, or category to quickly open any tool instantly.

EverydayTab
EverydayTab

RSA Key Generator

Generate RSA public and private keys

Key Settings

2048-bit is standard. 4096-bit is ultra-secure but slower to generate.

Security Note

Keys are generated using the node-forge library entirely in your browser. No data ever leaves your computer.

No Keys Generated

Select a key size and click "Generate New Keys" to create your RSA pair.

About the RSA Key Generator

Create an RSA key pair — a private key and its matching public key — in standard PEM format, ready to paste into a JWT library, an API's signing configuration, a test certificate workflow or an encryption example. Choose 2048-bit for everyday use or 4096-bit for extra margin. Generation runs entirely in your browser using the Web Crypto-backed node-forge library, so the private key is never transmitted.

How RSA key pairs work

RSA is an asymmetric cipher: the two keys are mathematically linked, but knowing the public key does not reveal the private one. Anything encrypted with the public key can only be decrypted with the private key — that is how TLS bootstraps a secure session — and anything signed with the private key can be verified with the public key, which is how JWTs (RS256), code signing and SSH authentication prove identity. The security rests on the difficulty of factoring the product of two very large primes; key size is the length of that product in bits.

Which key size to choose

  • 2048-bit — the current industry standard; recommended by NIST through at least 2030 and required as a minimum by most CAs, cloud providers and JWT libraries.
  • 4096-bit — roughly 8× slower for private-key operations, but future-proof for long-lived keys such as root CAs, SSH keys or code-signing identities.
  • 1024-bit — deprecated. Considered breakable by well-resourced attackers; use only to reproduce legacy behaviour in tests.

What to do with the keys

  • JWT signing (RS256/RS384/RS512): the private key signs tokens on your server; the public key is published (often via JWKS) so clients can verify them. Test with the JWT Generator.
  • SSH: convert the PEM private key with ssh-keygen -y to derive the OpenSSH public key format, or generate directly with ssh-keygen for production.
  • TLS and certificates: use the private key to create a CSR with OpenSSL, then have a CA sign it.
  • Encryption: encrypt small payloads (or a symmetric key) with the public key; for bulk data use AES and protect the AES key with RSA.
  • Webhook signature verification and license-file signing.

Handling private keys safely

Store the private key in a secrets manager or an encrypted file with restrictive permissions (chmod 600), never in a git repository, chat message or ticket. Rotate keys periodically and revoke any key that may have been exposed. For production systems that demand hardware-backed keys or auditing, generate the pair inside an HSM or cloud KMS instead of a browser.

How to use the RSA Key Generator

  1. 1Choose the key size. Select 2048 bits (recommended) or 4096 bits.
  2. 2Generate. Click Generate. Large keys take a few seconds because prime search runs on your device.
  3. 3Copy the keys. Copy the public and private PEM blocks separately.
  4. 4Store securely. Save the private key somewhere protected; share only the public key.

Frequently asked questions

Is it safe to generate private keys in a browser?
The keys are generated on your device with cryptographically secure randomness and are never sent to a server. For development, testing and most application keys this is fine; for high-value production identities prefer generation inside an HSM or KMS.
Which PEM format are the keys in?
The private key is PKCS#1 (-----BEGIN RSA PRIVATE KEY-----) and the public key is SubjectPublicKeyInfo (-----BEGIN PUBLIC KEY-----), the formats accepted by OpenSSL, Node's crypto module, Java, .NET and every major JWT library.
Why does 4096-bit generation take so long?
Finding two 2048-bit primes requires many probabilistic primality tests; it can take 10–30 seconds on a laptop and longer on a phone.
Should I use RSA or an elliptic-curve key?
Ed25519 and ECDSA P-256 offer equivalent security with much smaller, faster keys and are preferred for SSH and new JWT deployments (EdDSA/ES256). Choose RSA when the consuming system only supports RS256 or RSA certificates.
All Security