RSA key pair generator

Generate a new random RSA private and public pem certificate key pair.

About RSA key pair generator

Generates a new random RSA private and public key pair and shows both as PEM text. Generation happens in your browser with a background worker, so the page stays responsive and the keys are never sent anywhere.

When you would use it

How to use it

  1. Set the number of bits (2048 by default, from 256 to 16384 in steps of 8).
  2. Wait for the key pair to be generated; larger sizes take noticeably longer.
  3. Copy the public key and the private key, or press the button to generate a new pair.

Things worth knowing

Frequently asked questions

Is the generated key really random?
Yes. Generation uses the node-forge library with your browser's secure random source, and each click creates an independent key. But as with any web tool, you cannot audit the page you are using, which is why production keys should be made elsewhere.
Why does the page take a while to produce a key?
Finding two large random prime numbers is the slow part, and it grows quickly with key size. A 2048-bit key usually appears within a few seconds.

All the tools