🔧

SSH Key Generator

Generate RSA and Ed25519 SSH key pairs.

How to Use

  1. Select the key type (Ed25519 or RSA) and key size. Optionally add a comment (e.g. your email address) to identify the key.
  2. Click Generate. The key pair is generated locally in your browser — the private key and public key are displayed separately.
  3. Copy the public key and add it to your server's authorized_keys file or paste it into your Git hosting service. Keep the private key secret and never share it.

Frequently Asked Questions

Should I choose Ed25519 or RSA?
Ed25519 is recommended for new keys — it's faster, produces shorter keys, and is considered more secure than RSA-2048. RSA is available for compatibility with older servers and systems that don't yet support Ed25519. Use RSA-4096 if RSA is required.
Is it safe to generate SSH keys in the browser?
Yes — key generation uses the Web Crypto API (window.crypto.subtle), which is the browser's built-in cryptographic engine. The keys are generated entirely in your browser and never transmitted to any server.
What is the comment field used for?
The comment is a human-readable label appended to the public key, typically your email or a description like "work-laptop". It helps you identify which key belongs to which person or device when managing multiple keys in authorized_keys.