RSA key pair generator
Generate RSA key pairs at 2048, 3072, or 4096 bits using the Web Crypto API. Exports public and private keys as PEM without sending them anywhere.
Public key
—Private key
—// About this tool
Create RSA-OAEP key pairs for encryption tests, local development, or learning. Keys are generated in the browser and exported in PEM format for easy use.
// How to use it
- Choose the key size.
- Generate the key pair.
- Copy the public and private PEM blocks.
// Frequently asked questions
Which key size should I choose?
2048 bits is a common baseline; use 3072 or 4096 when you need a larger security margin.
Are the private keys uploaded?
No. Keys are generated and exported entirely in your browser.