Generate RSA or Ed25519 SSH key pairs in your browser.
This tool generates a complete SSH key pair — a public key in the authorized_keys format you paste onto servers, and a matching private key in PKCS#8 PEM — using only your browser's built-in Web Crypto API. It is handy for spinning up a key for a new server, CI job, or Git hosting account when you are away from a terminal. Everything runs 100% locally: the keys are created in your browser tab and are never sent anywhere.
An OpenSSH public key line is just base64 of a small binary blob, plus an optional comment. The blob is a sequence of length-prefixed fields: for Ed25519 it is the string ssh-ed25519 followed by the raw 32-byte public key; for RSA it is ssh-rsa followed by the exponent e and modulus n, each encoded as an mpint (a big-endian integer padded with a 0x00 byte when its top bit would otherwise look negative). The SHA256 fingerprint shown after generation is the same one ssh-keygen -l would print, so you can cross-check the key on a server later.
Pick Ed25519 unless you have a reason not to. It produces short keys (~68 characters in the public line), is fast to generate and verify, and is considered the modern default — GitHub, GitLab and every current OpenSSH release accept it. RSA is still universally supported and is the safer choice for very old servers, appliances, or tooling that predates Ed25519; use 4096 bits there for a comfortable security margin, 2048 if the target system rejects larger keys. One caveat: Ed25519 in the Web Crypto API needs a recent browser — this tool detects that and tells you if yours is too old.
The private key is the only half that must stay secret, and this page never transmits it — but what you do next matters. Save it as ~/.ssh/id_ed25519 (or id_rsa) and lock it down immediately with chmod 600, or ssh will refuse to use it. The exported format is PKCS#8 PEM, which modern OpenSSH reads directly; to convert it to the OpenSSH native private-key format (BEGIN OPENSSH PRIVATE KEY), run ssh-keygen -p -f id_ed25519 (press Enter when asked for a passphrase, or set one). Finally, treat a key made in a browser tab like any credential: store it in your SSH agent or a password manager, and regenerate a fresh pair on your own machine for high-value production systems.
More tools you might find useful
AES-256-GCM in-browser: authenticated, PBKDF2-keyed, zero upload.
Hash and verify passwords with bcrypt or salted SHA in-browser.
Constant-time comparison of two hashes — no timing leaks.
HMAC-SHA256/384/512 signatures via native WebCrypto.