Tools/RSA Key Pair Generator
Cryptography & Security

RSA Key Pair Generator

Create an RSA key pair directly in the browser using the Web Crypto API — handy for local testing, SSH experiments, or JWT signing setups.

Free & unlimitedRuns in your browserNo sign-up required
Loading tool…
How it works

Three steps, no setup

1

Pick a key size

2048-bit is the current baseline; use 4096-bit when you need extra headroom.

2

Generate the pair

The keys are produced locally using your browser's native crypto engine.

3

Download the PEM files

Save the private and public keys separately and keep the private key out of version control.

Common questions

Frequently asked questions

Are these keys safe to use in production?
The generation itself is cryptographically sound, but treat any key created in a browser tab as disposable — for production secrets, generate keys on a controlled server or hardware device.
Why is 1024-bit available if it is weak?
It is included only for compatibility testing against legacy systems. For anything real, use 2048-bit or higher.
Chat with us
Usually replies in minutes