Code · Made a little simpler
RSA and ECDSA Key Generator
Generate an RSA or ECDSA key pair on your device. Export public SPKI and private PKCS#8 PEM files separately.
Free to useNo account neededProcessed on your device
Your workspaceProcessed on your device
RSA and ECDSA Key Generator: how to use it
- Choose a supported RSA modulus size or ECDSA curve and select Generate key pair.
- Review the public key PEM and its SHA-256 fingerprint. Copy or download the public key.
- When you need the private key, choose Download private key and confirm the unencrypted PKCS#8 export.
Limits and notes
Uses Web Crypto on HTTPS or localhost. Supports 2048, 3072 and 4096-bit RSA and ECDSA P-256, P-384 and P-521. The public file uses SPKI. The unencrypted private file uses PKCS#8. Clear generated files to remove the pair from this workspace.
How your privacy works →RSA and ECDSA Key Generator: common questions
Why are there two PEM files?
The public key can be shared with a verifier. The separately exported private key lets its holder sign and must be protected.
Which bytes does the public fingerprint cover?
SHA-256 covers the binary SubjectPublicKeyInfo, before PEM adds Base64 and line breaks.
Will I get the same key if I choose the same algorithm again?
Every generation asks Web Crypto for fresh keys. Save the private key before clearing the result if you need to use it again.