All tools Developer

RSA Key Pair Generator

Generate an RSA key pair as PEM files. Keys are created on your device.

Select a key size, then click Generate.

Security: your private key is generated locally with the Web Crypto API and never leaves this browser — nothing is uploaded or stored.

Runs in your browser. Nothing you open or type here is uploaded.

How to use

  1. Select a key size: 2048, 3072 or 4096 bits.
  2. Click Generate key pair and wait for the keys to appear.
  3. Copy the public and private keys, or download each one as a .pem file.
  4. Store the private key somewhere safe before closing the page.

Details

This tool generates an RSA key pair with the Web Crypto API and exports the private key as PKCS#8 PEM and the public key as SPKI PEM — the formats read by OpenSSL, web servers and most TLS tooling. A SHA-256 fingerprint of the public key is shown, so the pair can be verified later. Key size is a trade-off: 2048 bits is secure for most uses, 3072 bits matches the NIST recommendation for 128-bit security strength, and 4096 bits adds margin but takes noticeably longer to generate. The keys are created in your browser and are never uploaded or stored.

  • The private key cannot be recovered once you leave the page. Download it before closing the tab.
  • These keys do not work for SSH as they are: SSH uses its own format, so convert them with ssh-keygen first.
  • Share the public key freely. Anyone holding the private key can act as you, so guard it like a password.

Common questions

Which key size should I choose?

2048 bits is secure for most uses and generates instantly. 3072 bits gives an extra security margin (recommended by NIST for 128-bit security strength). 4096 bits offers the maximum margin but takes noticeably longer to generate. In all cases, guard your private key carefully.

Is my private key safe on this page?

Yes — keys are generated locally in your browser using the Web Crypto API. Nothing is uploaded to any server or stored anywhere. WieldKit never sees your keys.

What format are the exported keys?

The private key is PKCS#8 PEM and the public key is SPKI PEM — the two most widely supported formats. They work with OpenSSL, Nginx/Apache, and most tools that accept PEM keys.

Can I use these keys for SSH?

Not directly — SSH uses its own key format. Convert the public key with OpenSSH (ssh-keygen -i -m PKCS8 -f public.pem) and reformat the private key with ssh-keygen if needed.