SSH & Keys
SSH Public Key Extractor
Extract SSH Public Key
Paste or upload your PEM or PPK private key to extract the corresponding public key.
Tool features
PEM & PPK support
Discarded after use
Paste or upload
Ready to install
How a public key is derived & why it can be recovered
A private key already contains everything needed to produce its public half — the public key is derived from it, not stored alongside it. That is why a lost .pub file is a minor inconvenience rather than a disaster: as long as you still have the private key, the public key can be regenerated exactly, and it will match every server that already trusts it.
This tool does the same job as ssh-keygen -y, accepting either an OpenSSH/PEM private key or a PuTTY .ppk. The result is a single authorized_keys-style line you can paste onto a server or into a Git host. Nothing about the private key changes, and no existing access is affected.
ssh-ed25519, ssh-rsa or ecdsa-sha2-….ssh-keygen -y -f id_ed25519 > id_ed25519.pub.user@host label. Cosmetic, and not always preserved when a key is re-derived.How to use this tool
.ppk, so the right extraction path is used.-----BEGIN----- and -----END----- lines, or upload the file. A partial paste is the most common cause of failure.~/.ssh/authorized_keys, or paste it into your Git host's SSH key settings. Save it as id_ed25519.pub locally so you have it next time.Related tools
Frequently asked questions
ssh-keygen -y -f ~/.ssh/id_ed25519 locally, or puttygen key.ppk -L for a PPK — neither sends anything anywhere.user@host comment is a label, not part of the key material, and it is not always carried through when a public key is re-derived. It has no effect on authentication — you can edit it freely, and the fingerprint stays the same either way.