Next-Gen App & Browser Testing Cloud
Trusted by 2 Mn+ QAs & Devs to accelerate their release cycles

Generate a matching RSA public and private key pair in PEM format, right in your browser. Pick a key size, click generate, and copy or download both keys, with your private key never uploaded to any server.
Larger keys are slower to generate
PEM for OpenSSL, JWK for APIs, hex for raw factors
The RSA Key Generator is a free online tool that produces an RSA key pair you can use for asymmetric cryptography. RSA is one of the most widely deployed public-key algorithms, used in SSH login, TLS certificates, JWT signing, and document signing. A key pair has two parts that work together: a public key you can share freely and a private key you must protect.
The generator builds both keys locally from a secure random source and outputs them in PEM, the Base64 text format wrapped in BEGIN and END lines. You can use the public key to encrypt data or verify a signature, and the private key to decrypt that data or create a signature. The two are mathematically linked, so only the matching private key can undo what the public key protects.
Generating a key pair takes only a few seconds and needs no software install. Follow these steps:
Choosing a key size is a balance between strength and speed. The table below compares the common options so you can pick with confidence:
| Key size | Security | Speed | Best for |
|---|---|---|---|
| 1024-bit | Deprecated, not secure | Fastest | Legacy testing only, never production |
| 2048-bit | Strong, common minimum | Fast | Most TLS, SSH, and JWT use today |
| 3072-bit | Higher strength | Moderate | A middle step for longer-lived data |
| 4096-bit | Strongest common option | Slower | Long-term data and high-assurance systems |
For most work, 2048 bits is a sensible default and 4096 bits is the choice when a key must stay trustworthy for many years.
This is the right question to ask before generating any key, and the answer depends entirely on where the key is created. Here is how this tool keeps your keys safe:
RSA key pairs show up across development, operations, and testing. The generator gives you a fast pair for each of these tasks:
This generator is maintained by TestMu AI (formerly LambdaTest), the team behind a unified testing platform, so it is shaped by a security-first approach to the keys developers and testers rely on. For production secrets, many teams still prefer a local OpenSSL workflow, and that is a reasonable choice.
It is safe when the tool generates keys in your browser and sends nothing to a server, which is how this generator works. Your private key is created locally and never transmitted, so it stays on your machine the entire time.
A 2048-bit key is the common minimum and is fast to use. A 4096-bit key is stronger and better for long-lived data, but it is slower to generate and verify. Most production systems pick 2048 or 4096 based on that trade-off.
No. Both keys are generated in your browser and are not logged or uploaded. You can confirm this in your browser developer tools by checking that no request sends the keys anywhere while you generate them.
Use 2048 bits as a practical minimum and 4096 bits for data that must stay secure for many years. Both are widely accepted by certificate authorities and SSH, so choose based on how long the key must remain trustworthy.
The public key can be shared and is used to encrypt data or verify signatures. The private key must stay secret and is used to decrypt data or create signatures. Together they form one mathematically linked pair.
PEM is a Base64 text encoding wrapped in BEGIN and END header lines, which makes keys easy to copy and paste. It is the most widely supported format across SSH, OpenSSL, and most libraries, so it is a safe default.
RSA is widely supported and a solid default, especially for legacy systems. ECDSA keys are smaller and faster for similar strength, so prefer ECDSA for new TLS or SSH setups when every system in the chain supports it.
Yes. Because generation runs in the browser, the page works after it has loaded even without a connection. For maximum assurance with production secrets, many teams still generate keys with a local OpenSSL install.
Did you find this page helpful?
Start your journey with TestMu AI
Get 100 minutes of automation test minutes FREE!!