Free SSH Key Generator – Ed25519 & RSA

Free SSH key generator. Create Ed25519 or RSA 2048-4096 key pairs as an OpenSSH public key line and private key, with SHA256 fingerprint, in your browser.

  • No upload, 100% private
  • Instant, in your browser
  • 100% free, no signup
Loading tool…
Read the complete guideHow to Set Up SSH Key Authentication for a Server and GitHub →

About the SSH Key Generator tool

SSH keys replace passwords for logging in to servers and for pushing to GitHub, GitLab or Bitbucket. Normally you would run ssh-keygen in a terminal, but that is not always available: on a locked-down work laptop, a Chromebook, a tablet, or when you are writing documentation and want to show a real key pair.

This generator creates the key pair with your browser's Web Crypto API and writes it in the same formats ssh-keygen produces. You get an OpenSSH public key line (ssh-ed25519 AAAA… or ssh-rsa AAAA… plus your comment), an unencrypted OpenSSH private key (BEGIN OPENSSH PRIVATE KEY), a PEM PKCS#8 copy of the private key, and the SHA256 fingerprint exactly as ssh-keygen -l prints it. The output was validated by loading it with OpenSSH's own ssh-keygen and signing and verifying data with it.

Ed25519 is the modern choice: short keys, fast and secure. Browsers without Ed25519 support in Web Crypto are detected automatically and offered RSA 2048, 3072 or 4096 instead. Keys are created on your device and never uploaded. Because the private key is not passphrase-protected, add a passphrase locally with ssh-keygen -p after saving it.

How to use SSH Key Generator

  1. Choose a “Key type”: Ed25519 (recommended) or RSA 4096, 3072 or 2048-bit.
  2. Enter a comment such as alice@laptop so you can recognise the key later.
  3. Click “Generate key pair”.
  4. Download the public key (id_ed25519.pub or id_rsa.pub) and the private key, and save them in your ~/.ssh folder.
  5. Run the chmod and ssh-keygen -p command shown to lock down the file and add a passphrase, then add the public key to your server or Git host.

Features

Ed25519 and RSA

Ed25519 where the browser supports it, plus RSA 2048, 3072 and 4096-bit keys with exponent 65537.

Real OpenSSH formats

The public key line and openssh-key-v1 private key are accepted by ssh, ssh-add and ssh-keygen.

SHA256 fingerprint

Shown in the same SHA256:… form printed by ssh-keygen -l and by GitHub's key settings page.

PKCS#8 copy

The private key is also given as a standard PEM file for libraries that do not read the OpenSSH format.

Direct downloads

Each file downloads with the conventional name, and the page keeps both halves of the pair visible.

When to use it

  • Create a deploy key for a GitHub or GitLab repository.
  • Generate a key for a new VPS when you do not have a terminal handy.
  • Make a throwaway key pair for testing SSH configuration or CI pipelines.
  • Produce example keys for documentation or training material.

Frequently asked questions

Is it safe to generate an SSH key in a browser?

The key is made by the browser's Web Crypto API, which uses the operating system's secure random number generator, and it never leaves the page. For keys protecting critical production systems many teams still prefer ssh-keygen or a hardware key, which is also a sensible choice.

Should I choose Ed25519 or RSA?

Ed25519 for almost everything today: it is supported by OpenSSH 6.5 and later, GitHub, GitLab and most servers. Choose RSA 3072 or 4096 only for old systems that do not accept Ed25519.

Why is there no passphrase option?

Encrypting OpenSSH keys requires the bcrypt_pbkdf function, which Web Crypto does not provide. Save the key, then run ssh-keygen -p -f ~/.ssh/id_ed25519 to add a passphrase locally.

Where do I put the files?

On macOS and Linux save them as ~/.ssh/id_ed25519 and ~/.ssh/id_ed25519.pub (or id_rsa) and set the private key to chmod 600. On Windows use C:\Users\you\.ssh\.

How do I add the key to GitHub?

Copy the public key line, open GitHub Settings, SSH and GPG keys, New SSH key, and paste it. Never share the private key.

Related tools