Key pair generator: RSA, ECDSA and Ed25519 with PEM and OpenSSH public key

Choose a key type, add an optional comment and generate a fresh key pair locally. Copy or download the keys and the OpenSSH public key line.

  • Free, no sign-up
  • Your files and data stay on your device
  • No watermarks or limits

0 bytes uploaded. Everything happens in this tab.

How to use it

  1. Pick a Key type: RSA 2048, 3072 or 4096, ECDSA P-256 or P-384, or Ed25519 (the default), and edit the Comment if you like.
  2. Press “Generate key pair”. RSA 4096 can take a few seconds.
  3. Copy or Download each block: the OpenSSH public key, the PEM public key and the PEM private key. The page also shows the SHA256 fingerprint.

Example

Ed25519 with the comment me@laptop produces a public key line shaped like this:

ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAI... me@laptop

Fingerprint: SHA256: followed by 43 characters
Downloads:   id_ed25519.pub, id_ed25519-public.pem, id_ed25519-private.pem

The part after AAAAC3NzaC1lZDI1NTE5AAAAI is different for every key pair.

About this tool

A key pair has two parts. The public key can be shared freely: you add it to an authorized_keys file, to GitHub or to a server. The private key must stay with you and proves that you own the public one. This tool creates the pair with the Web Crypto API built into your browser, so the randomness comes from the browser’s secure random generator and nothing is sent to a server.

Ed25519 is a good default for SSH today: short keys and quick operations. RSA is the widest in compatibility, and 3072 or 4096 bits is a safer choice than 2048 if you can accept slower generation. ECDSA P-256 and P-384 are in between. Ed25519 needs a reasonably recent browser; if yours does not support it, the page says that this browser cannot do that, and you can pick another type.

Some things to know. The private key is shown and saved as unencrypted PEM in PKCS#8 form, not as an OpenSSH private key file, so some tools may need a conversion step before they accept it. It is not protected by a passphrase, so anyone who gets the file can use the key. Save it straight away, keep it in a password manager or an encrypted location, and set file permissions so only you can read it. The page keeps no copy: if you close the tab without saving the private key, it is gone. For keys that protect something important, many people prefer to generate them on a machine they fully control with their own tools.

Frequently asked questions

Which key type should I choose?

Ed25519 for most new SSH uses. Choose RSA 3072 or 4096 only when an older system does not accept Ed25519, and ECDSA when a service asks for it.

What is the fingerprint for?

It is a short hash of the public key (SHA-256, Base64) that you can compare with what a server or GitHub shows, to confirm you are looking at the same key.

Is the private key encrypted?

No. It has no passphrase. Treat the file like a password: do not email it, do not commit it to a repository, and delete it from places where you no longer need it.

Can I use the PEM private key directly with ssh?

It depends on the version and the tool, because the key is in PKCS#8 form rather than the OpenSSH private key format. If a tool rejects it, convert it with that tool’s own utility.

Are the keys created on a server?

No. They are generated in your browser tab and the page makes no network request with them.

Often used next