Security
RSA Key Pair Generator
Create RSA key pairs locally with the Web Crypto API and download them as PEM or JWK.
- Runs in your browser
- Instant results
- Free, no sign-up
Loading the tool…
How to use the RSA Key Generator
- Choose the key size, algorithm and format.
- Click Generate key pair.
- Copy or download the public and private keys.
Frequently asked questions
Which key size should I use?
2048-bit is the minimum today; 3072 or 4096 bits give a longer safety margin.
Are the keys generated on a server?
No. They are created in your browser and never leave it.
Can I use these keys for SSH?
SSH needs the OpenSSH format. These PEM keys suit TLS, JWT (RS256/PS256) and application encryption.