The modern default: short, fast, supported by every OpenSSH since 2014.
Ends the public key line so the key is recognizable in a list. It is not secret.
No key pair yet
Press Generate key pair. The keys are made in this tab and never leave it.
Related tools
- Self-Signed Certificate GeneratorGenerate a self-signed X.509 certificate and private key for local development, in your browser.
- Passkey TesterRegister and authenticate passkeys, then decode the attestation object, flags, and public key.
- JWT GeneratorBuild, sign, and verify JSON Web Tokens with HS256, RS256, or ES256 locally.
- Certificate DecoderDecode PEM or DER X.509 certificates to read expiry, SANs, issuer, fingerprints, and chain order.
- HMAC GeneratorCompute and verify HMAC digests for a message and a secret key, in your browser.
- Password GeneratorGenerate random passwords, EFF diceware passphrases, or PINs on your own device, each with its exact entropy in bits and a crack-time estimate.
What it does
Generates a fresh SSH key pair on your device and shows every form you might need for it: the OpenSSH public key line for authorized_keys, the OpenSSH private key in the openssh-key-v1 container that ssh reads directly, the SHA256 fingerprint that ssh-keygen -lf prints, and PKCS#8 and SubjectPublicKeyInfo PEM blocks for libraries and tools that want the generic formats. Ed25519 is the default; ECDSA on NIST P-256 is there for the environments that require a NIST curve.
How to use it
Pick a key type, optionally add a comment such as you@laptop so the key is identifiable in a list, and press Generate key pair. Download the private key as id_ed25519 into ~/.ssh and run chmod 600 on it, then append the public key line to ~/.ssh/authorized_keys on the server you want to reach. The page lists the exact commands, and shows the SHA256 and legacy MD5 fingerprints so you can compare against what the server or Git host reports. Changing a setting never replaces a pair you already made; only the button does.
Why this one
The other online SSH key generators run ssh-keygen on their own server and send you the result, which means a machine you do not control created your private key and had a copy of it. Here the key is drawn from your browser's cryptographic random source and formatted locally: your files and inputs never leave your device, and the page has no server endpoint at all. It also gives you the fingerprint and both PEM forms in the same view, which usually means three separate commands.
FAQ
- Is it actually safe to generate an SSH key in a browser tab?
- The key comes from crypto.getRandomValues, which is the same operating system random source ssh-keygen draws from, and nothing about it is transmitted: it exists only in this tab's memory until you copy it. The honest caveat is that a browser is a large piece of software with extensions in it, so for a key that guards production infrastructure, running ssh-keygen -t ed25519 locally is still the stronger choice. For a personal server, a homelab box, or a throwaway deploy key, generating here is a reasonable trade.
- Why is there no passphrase option?
- The encrypted OpenSSH private key format derives its encryption key with bcrypt_pbkdf, which is not available in the browser as a building block here, so this tool writes the key unencrypted rather than inventing a format ssh would refuse to read. Adding a passphrase afterward is one command: save the private key, then run ssh-keygen -p -f ~/.ssh/id_ed25519 and it will re-encrypt the file in place.
- Should I pick Ed25519 or ECDSA?
- Ed25519 unless something forces your hand. It is faster, the keys and signatures are shorter, it has no dependence on a per-signature random value the way ECDSA does, and every OpenSSH release since 6.5 in 2014 supports it. Choose ECDSA P-256 when a device, a FIPS validated environment, or an older appliance will only accept a NIST curve. RSA is not offered here: if you need it for a system too old for Ed25519, generate it with ssh-keygen -t rsa -b 4096.
- What is the fingerprint for?
- It is a short SHA-256 hash of the public key, printed the same way ssh-keygen -lf prints it, so you can confirm that the key installed on a server is the key you meant to install without comparing two long base64 blobs by eye. GitHub, GitLab, and most hosting panels show the same fingerprint next to an uploaded key.
Keyboard shortcuts: press ? anywhere on this page to see them.