How to Generate an SSH Key Pair in the Browser
Step-by-step guide to generating a secure ECDSA or RSA key pair entirely in your browser using the DevHexLab SSH Key Generator.
Tool Used
SSH Key Generator
Open the SSH Key Generator
Navigate to /tools/security/ssh-key-generator. All key generation happens in your browser using the Web Crypto API — no data is sent to any server.
Choose the algorithm
Select ECDSA (P-256 or P-384) for a modern, compact key pair, or RSA-2048 / RSA-4096 for maximum compatibility with older systems. ECDSA is recommended for most new use cases.
Add a comment (optional)
The comment field is appended to the public key as a label — typically your email address or a description of what the key is for. This helps identify the key when it appears in authorized_keys or a Git hosting provider.
Generate and save the keys
Click Generate. The private key and public key appear in separate text areas. Download the private key immediately and save it to ~/.ssh/ with permissions 600. Copy the public key to paste into your server's authorized_keys file or your Git provider's SSH key settings.
All done!
You are ready to use SSH Key Generator like a pro.