SSH Key Generator
Generate a real RSA-2048 SSH key pair entirely in your browser — public key in OpenSSH format, private key as a PKCS#8 PEM.
More Developer Tools Tools
Generates a real RSA-2048 key pair entirely inside your browser using the Web Crypto API. Nothing you generate here is ever sent to a server.
Generating a 2048-bit RSA key can take a moment, especially on slower devices — the tab will stay responsive while it works.
This key pair is generated and stays entirely inside your browser tab — it is never transmitted anywhere. Even so, treat any private key produced on a shared or public computer as compromised, since anything typed or copied on that device could be exposed. For real production servers, use the standard, independently audited ssh-keygen tool rather than a browser-based generator like this one — treat this as a convenience or demo generator, not a replacement. Note also that only RSA-2048 is offered here; Ed25519 key generation is not implemented because browser support for it in the Web Crypto API is still inconsistent.
How to Use SSH Key Generator
Click generate and your browser creates a genuine 2048-bit RSA key pair using the Web Crypto API. The public key is formatted the way ssh-copy-id and authorized_keys files expect it ("ssh-rsa AAAA... comment"), and the private key is exported as a standard PKCS#8 PEM block. Both come with their own copy button, and nothing you generate is ever sent anywhere — the whole process runs locally in the page.
About SSH Key Generator
Details & Tips
Frequently Asked Questions
Is this a real SSH key, usable on an actual server?
Is my private key sent to a server?
Why is there no Ed25519 option?
Can I add a passphrase to the private key?
How do I add the public key to a server?
How do I use the private key with an SSH client?
What does the "comment" field do?
Why does key generation take a moment?
Should I use this for production servers?
Why is the private key format PKCS#8 rather than the older OpenSSH or PEM RSA format?
Does refreshing the page save my generated keys?
Can I generate multiple key pairs in a row?
Part of These Collections
Also Available As
ssh key generator online, generate ssh key pair, rsa key generator, openssh public key generator, pkcs8 private key, ssh-keygen alternative online
Found a Problem?
Let us know if something with SSH Key Generator isn't working as expected.
Thanks — we'll take a look.