Skip to content
browserutils

SSH Key Generator

Generate RSA key pairs using Web Crypto API

SSH Key Generator is a free online tool from BrowserUtils that generate rsa key pairs using web crypto api. It runs entirely in your browser — your data never leaves your device. No account required.

Note: This generates RSA key pairs using the Web Crypto API in PEM (SPKI/PKCS8) format. These are standard RSA keys, not SSH-native format. For production SSH keys, use ssh-keygen on your machine.

How to use SSH Key Generator

  1. 1 Paste or type your input into the editor above.
  2. 2 The tool processes your data instantly — right in your browser, with nothing sent to a server.
  3. 3 Copy the result with one click or continue editing your input.

About SSH Key Generator

Free online SSH key generator. Generate RSA key pairs in PEM format using the Web Crypto API directly in your browser. This tool runs entirely in your browser — your data is never sent to a server. Just paste your input, get instant results, and copy with one click. No sign-up or installation required.

SSH Key Generator specs

Runtime
100% client-side (browser)
Cost
Free — no account, no rate limits, no usage caps
Browser support
Chrome 90+, Firefox 88+, Safari 14+, Edge 90+
Part of
299 developer tools on BrowserUtils (100% client-side)

Questions

Are keys generated in the browser secure?
Keys are generated entirely in your browser using the Web Crypto API and never leave your device. However, for production SSH keys, it is recommended to use ssh-keygen on your local machine, which produces keys in the native OpenSSH format and can write them directly to your .ssh directory.
What key size should I choose?
A 2048-bit RSA key is considered secure for most purposes today. A 4096-bit key provides additional security margin but takes longer to generate and process. For new deployments, consider Ed25519 keys (via ssh-keygen) which offer better security with shorter key lengths.
How do I use the generated SSH key to connect to a server?
Copy the public key and add it to the ~/.ssh/authorized_keys file on your server. Save the private key to ~/.ssh/ on your local machine and set its permissions to 600. Then connect using ssh -i ~/.ssh/yourkey user@host.
What is the difference between the SSH public key and private key?
The public key is shared with servers you want to access. The private key stays on your device and must never be shared. Authentication works because the server uses the public key to verify a signature that only the matching private key can produce.
Can I use the generated SSH key with GitHub?
You can paste the public key into your GitHub account under Settings > SSH and GPG keys. For production use, generating keys with ssh-keygen on your machine is preferred since it writes the keys in native OpenSSH format.
Embed this tool

Copy this code to embed the tool on your website. Adjust the height to fit your layout.

<iframe src="https://www.browserutils.dev/embed/ssh-key-generator" width="100%" height="500" frameborder="0" title="SSH Key Generator"></iframe>

Related tools

More Security & Privacy

View all Security & Privacy tools