RSA Key Generator — Create an RSA key pair without installing anything. Choose a size, generate, and you get a private key and a public key as PEM text you can copy or download.
Key pairs are generated in this browser tab and never leave it. Nothing is stored and nothing is sent anywhere.
Was RSA Key Generator useful?
What is RSA Key Generator?
Create an RSA key pair without installing anything. Choose a size, generate, and you get a private key and a public key as PEM text you can copy or download.
2048 bits is the size payment providers ask for. 3072 is a reasonable step up; 4096 takes noticeably longer to generate.
How to use it
-
Choose a size
2048-bit is the usual choice for API registration.
-
Generate
The key pair is created in this tab.
-
Copy or download
Keep the private key secret; share the public key.
Examples
Generate a 2048-bit PKCS#8 signing key pair
Create browser-side RSA keys via Web Crypto API for JWT RS256 or webhook signing tests.
Key size: 2048 bits | Algorithm: RSASSA-PKCS1-v1_5 / SHA-256
Result: -----BEGIN PUBLIC KEY----- and -----BEGIN PRIVATE KEY----- PEM blocks ready to copy or download.
Generate a 4096-bit key pair for long-lived staging environments
Produce higher-modulus PEM keys completely offline on your machine.
Key size: 4096 bits
Result: Matched 4096-bit public/private PEM pair verifiable with RSA Sign & Verify.
Frequently asked questions
Related guides
Related tools
RSA Signature Generator (SHA256withRSA)
Sign a string with your RSA private key and get the Base64 signature. Accepts PKCS#8 and PKCS#1 keys.
RSA Signature Verifier
Check whether a Base64 RSA signature is valid for a message and public key. SHA256withRSA and PSS supported.
SNAP / QRIS Request Signer
Build the stringToSign and X-SIGNATURE for Indonesian payment APIs. Handles the B2B token and transactional forms.
Password Generator
Create strong, random passwords with custom length and character sets — right in your browser.