RSA & SSH Key Pair Generator
Guide: SSH Keys and Key Pairs Explained: Which Type to Pick
Small, fast and modern. The best choice for new SSH keys, where the server supports it.
A label added to the SSH key, often your email or machine name.
The keys are made inside your browser with its built-in cryptography, and nothing is sent or stored. They are gone when you close the page, so save the private key now. For keys that protect something important, many people prefer to make them on their own computer with ssh-keygen and protect the private key with a passphrase.
Nothing you enter or choose here leaves your device. This tool runs in your browser.
What a key pair is
An SSH key pair has two halves. The private key stays with you and proves who you are. The public key goes on every server or service you want to log in to. Anyone can have your public key, because it can only check a signature, not make one. Nobody should ever have your private key.
Choosing a type
| Type | When to pick it | Notes |
|---|---|---|
| Ed25519 | The default for new SSH keys | Small, fast and modern. The public key is a short single line |
| RSA 3072 | Older systems that don't accept Ed25519 | Larger and slower, still widely supported |
| ECDSA P-256 | A service that asks for it | A middle option, less common |
Setting it up, step by step
- Choose Ed25519, and add a comment such as your email or the name of your laptop, so you can tell keys apart later.
- Press Make keys, and save the private key file in your .ssh folder.
- On Mac or Linux, lock it down with
chmod 600on the file. SSH refuses private keys that other users can read. - Add the public key line to the server's authorized_keys file, or paste it into the SSH key settings page of the service, such as your code host.
- Test the login. If it works, the pair is set.
The public key is one line, starting with the type, such as ssh-ed25519, then a long block of letters and numbers, then your comment.
File formats
Ed25519 private keys are saved in OpenSSH's own format. The other types are saved as PKCS#8. The public key line and the private key files were tested with OpenSSH. If a program wants a different format, you'll need to convert the key with a tool such as ssh-keygen.
Is a browser the right place to make keys?
The keys come from your browser's built-in cryptography and are never stored or sent. That's fine for learning, for testing, and for low-risk accounts. For a key that guards something important, such as production servers or a company repository, many people prefer to create it on their own machine with a passphrase, using a command like this:
ssh-keygen -t ed25519 -C "you@example.com"
A passphrase encrypts the private key file, so a stolen laptop or a copied file isn't enough to log in as you.
Looking after keys
- Never send a private key in email or chat, or commit it to a repository.
- Use a different key for each device, so you can remove one without affecting the rest.
- If you lose a private key, don't try to recover it. Make a new pair and replace the public key where it was installed.
- Remove old public keys from servers when a device is retired.
For the ideas behind keys and signatures, read the guide to SSH keys, and see the permissions side in the chmod calculator.
Written by Akinrinmade Michael · Updated October 24, 2026
How to use
- 1Choose the key type. Ed25519 is a good default.
- 2Add a comment if you like, then press Make keys.
- 3Save the private key somewhere safe and add the public key to your server or service.
Frequently asked questions
Are my keys sent anywhere?
No. Everything happens in your browser, and nothing is sent to us.
Which key type should I pick?
Ed25519 for new SSH keys, if your server supports it, because it's small, fast and modern. Use RSA 3072 where older systems need RSA, and ECDSA P-256 if a service asks for it.
Will OpenSSH accept these files?
Yes. The public key line and the private key files were tested with OpenSSH. Ed25519 private keys are saved in OpenSSH's own format, and the others in PKCS#8.
How do I use the private key?
Save it in your .ssh folder, run chmod 600 on it on Mac or Linux, and add the public key line to the server's authorized_keys file or to the settings page of the service.
Is it safe to make keys in a browser?
The keys come from your browser's built-in cryptography and are not stored or sent. For keys that guard something important, many people prefer ssh-keygen on their own computer with a passphrase.
Read the guide
Learn how this works and how to get the most from it.
Developer
SSH Keys and Key Pairs Explained: Which Type to Pick
What a public and private key pair is, how SSH keys let you sign in without a password, and how to choose between Ed25519, RSA and ECDSA.
4 min read
Related tools
Hash Generator
Generate MD5, SHA-1, SHA-256 and SHA-512 hashes and HMACs.
Base64 & URL Encoder / Decoder
Encode and decode Base64 and URL-encoded text instantly.
JWT Decoder
Decode a JSON Web Token and check its expiry and signature.
Password Generator
Create strong random passwords or passphrases, one or many at a time.