Free tools that run in your browser. Use any tool without an account.

Favourites Cart
Sign in
Join free

SSH Key Generator

  • Free
  • Runs in your browser
  • No account needed

This tool makes an SSH key pair in your browser and gives an OpenSSH private key file plus the .pub public key line. It creates Ed25519 when supported or RSA 2048 to 4096, for example RSA 4096.

Runs in your browser. Your files and values are not sent to us. Report a problem
Advertisement

About the SSH Key Generator

You use this tool to make SSH key pairs fast, without installing software. Developers, sysadmins and students use it to add keys to GitHub, GitLab or Linux servers. The tool runs entirely in your browser and does not upload private keys to any server. It outputs an OpenSSH-format private key file and a single-line .pub public key ready to paste into an authorized_keys file or a Git host. The page keeps the interface small: pick Ed25519 when your browser supports it, or choose RSA with a size between 2048 and 4096 bits. Because generation happens locally with the browser Web Crypto API, you avoid sending private key material over the network. If you need server-side automation or enterprise key management, use your organisation's approved tools instead.

How to use it

  1. 1Choose algorithm: Ed25519 or RSA and pick RSA size (2048 to 4096).
  2. 2Enter an optional comment to identify the key.
  3. 3Click Generate to create the key pair in your browser.
  4. 4Download or copy the OpenSSH private key file and the single-line .pub public key.
  5. 5Paste the .pub line into GitHub, GitLab, or the server user's ~/.ssh/authorized_keys.
Advertisement

Worked example

Input: RSA 4096 with comment alice@laptop. Exact result: a private key file named id_rsa that begins with '-----BEGIN OPENSSH PRIVATE KEY-----' and a public key line beginning with 'ssh-rsa ' and ending with ' alice@laptop'.

How it works

Makes an SSH key pair in the browser: Ed25519 (where the browser supports it) or RSA 2048 to 4096Gives the OpenSSH private key file and the .pub line to paste into GitHub or a serverWorks in the browser with nothing to install

Source: RFC 8709 - Ed25519 and Ed448 for SSHRFC 4253 - SSH Transport Layer ProtocolOpenSSH PROTOCOL.key specification. Last checked 5 November 2026.

What it is good for

  • Generates keys locally in your browser with no upload.
  • Supports Ed25519 and RSA 2048 to 4096 for broad compatibility.
  • Outputs OpenSSH private key file plus the .pub line for Git hosts or servers.
  • Ed25519 generation may be unavailable in older browsers and then RSA is used.
  • This tool does not provide enterprise key lifecycle or audit features.
Advertisement

Questions people ask

Is it safe to generate SSH keys in my browser?

If the page generates keys locally with the browser Web Crypto API and does not send them, the private key stays on your machine. For high-value production keys, consider generating with ssh-keygen on a controlled host.

Which algorithm should I pick: Ed25519 or RSA?

Choose Ed25519 for new keys when your browser supports it. Use RSA 3072 or 4096 only for legacy systems that do not accept Ed25519.

Will the generated keys work with GitHub or GitLab?

Yes. The tool produces standard OpenSSH-format public keys that GitHub and GitLab accept. Paste the .pub line into the host's add-SSH-key form.

Should I add a passphrase to the private key?

Adding a passphrase improves protection if your private key file is stolen. For unattended service keys, you may omit a passphrase and use strict server-side controls instead.

How do I install the public key on a server?

Append the .pub line to the server user's ~/.ssh/authorized_keys file. Ensure ~/.ssh has permissions 700 and authorized_keys has 600.

How can I verify the key I made?

Compare the SHA256 fingerprint the generator shows with ssh-keygen -lf <pubfile> on your machine. Fingerprints confirm the key identity.

Help keep every tool free

FreeToolr stays free because people help it grow. Share a tool you like, tell us what to build next, or support us on Ko-fi.

Advertisement
Advertisement