RSA Key Generator
Generate RSA public/private key pairs in PEM format. Choose key size (2048 or 4096 bit) and export as PEM or JWK — all in your browser.
How to use RSA Key Generator
- Choose a key size (2048-bit is standard, 4096-bit for higher security).
- Click Generate to create the key pair.
- Copy the public and private keys in your preferred format.
What is RSA Key Generator?
RSA (Rivest–Shamir–Adleman) is a public-key cryptosystem used for secure data transmission, digital signatures, and key exchange. An RSA key pair consists of a public key (shared openly) and a private key (kept secret).
This tool uses the Web Crypto API (crypto.subtle.generateKey) to generate RSA keys entirely in your browser. Keys can be exported in PEM (PKCS#8 / SPKI) or JWK format. Nothing is uploaded or stored.
FAQ
- 2048 or 4096 bits?
- 2048-bit is the current standard and is considered secure through 2030. 4096-bit provides longer-term security but is slower.
- What format are the keys?
- Keys are exported in PEM format (PKCS#8 for private, SPKI for public) or JWK (JSON Web Key). PEM is the most widely compatible.
- Is this secure?
- The Web Crypto API uses a cryptographically secure random number generator. For production use, consider generating keys in an air-gapped environment.