RSA Key Generator

Generate an RSA key pair (2048/3072/4096-bit) and export it as PEM — in your browser, nothing uploaded.

🔒 100% in your browser — nothing is uploaded

How it works

Generate an RSA key pair (2048, 3072 or 4096-bit) in your browser using the Web Crypto API and export both keys in PEM format. The keys are created locally with your device’s secure random generator and are never sent anywhere.

Frequently asked questions

What key size should I use?

2048-bit is the common minimum today; 3072 or 4096-bit give a larger security margin at the cost of speed. Pick 2048 unless you specifically need more.

What format are the keys in?

Standard PEM — the public key as SPKI and the private key as PKCS#8 — which most tools and libraries accept.

Are the keys generated safely?

Yes — they come from the browser’s Web Crypto API using a cryptographically-secure RNG, entirely on your device. Nothing is uploaded.

Related tools

Embed this tool

Add this free calculator to your own site: