SSH Key Converter & Fingerprint Checker (Convert Between PEM, PPK and OpenSSH / AWS .pem to PuTTY)
Completely free, with no extra charges. You may freely use the output commercially.
About this tool
When an SSH key you received from a server or cloud provider will not open in the software you use, or you can no longer tell which key is registered on GitHub or a server, paste the key file here to convert its format and check its fingerprint. You can turn an AWS EC2 .pem into a .ppk for PuTTY and WinSCP, or a .ppk made with PuTTYgen into an OpenSSH key for the Windows ssh command, VS Code and Git.
It reads OpenSSH private and public keys, PuTTY .ppk (versions 2 and 3), PEM (PKCS#1, PKCS#8, SEC1 and public keys), RFC 4716 (SSH2 public keys), and authorized_keys and known_hosts lines. Fingerprints are shown in SHA256 and MD5, the same as ssh-keygen -l, and if you enter a fingerprint from an error message or GitHub's settings page, the matching key is marked. It can also generate new Ed25519, ECDSA and RSA keys. All processing happens entirely in your browser (no keys are sent).
Load keys
Generate a new key
Loaded keys
How to use it and how it works
Common tasks
- Use an AWS EC2 .pem with PuTTY or WinSCP: Paste the key pair's .pem, choose “PuTTY .ppk (version 3)” as the output format and save it. For PuTTY 0.74 or earlier and old WinSCP versions, choose “version 2”.
- Use a .ppk with the Windows ssh command, VS Code or Git: Paste the .ppk, save it as “OpenSSH private key” and put it in
C:\Users\<your user name>\.ssh\. A .ppk with a passphrase cannot be converted here, so open it in PuTTYgen and use “Conversions → Export OpenSSH key”. - Find out which key is registered on GitHub or a server: Paste your
~/.ssh/*.pubfiles and private keys together, then enter the SHA256 fingerprint shown under GitHub's “SSH and GPG keys” in the match field. If you paste a private key and its public key together, both are labelled “Same key”. - Audit authorized_keys: Paste a server's
~/.ssh/authorized_keysto list the type, length, fingerprint and options (such as from= or command=) of each line, with warnings for DSA keys and short RSA keys. - Change the public key format: When a device or program asks for an “SSH2 (RFC 4716)” or PEM public key, switch the output format and save it.
About fingerprints
The SHA256 fingerprint is the SHA-256 hash of the public key's bytes in SSH format, written in Base64 without the trailing =. It is the same value shown by ssh-keygen -l in OpenSSH 6.8 and later, by GitHub and in ssh -v logs. The MD5 fingerprint is the format used by older ssh-keygen versions and some hosting dashboards (ssh-keygen -E md5 -l). When you load a private key, the same fingerprints are calculated from the public key inside it.
For a walkthrough with screenshots of converting an AWS .pem to .ppk and a .ppk to OpenSSH format (checked by reloading the results in PuTTYgen and ssh-keygen), finding which key is registered on GitHub from its fingerprint, and why the RSA fingerprint in the AWS console does not match ssh-keygen, see our step-by-step SSH key article (in Japanese).
Notes
- Private keys are saved without a passphrase (unencrypted). After saving, we recommend adding a passphrase with
ssh-keygen -p -f <key file>or PuTTYgen. On macOS and Linux, ssh will not use the key unless you runchmod 600so that only you can read it. - For OpenSSH keys and .ppk files protected by a passphrase, only the public key and fingerprint can be checked (the private key cannot be converted). Password-protected PEM files (
Proc-Type: 4,ENCRYPTEDorENCRYPTED PRIVATE KEY) cannot be loaded. - DSA keys have been disabled by default since OpenSSH 7.0, and support was removed entirely in OpenSSH 10.0. Their fingerprints can be checked, but they cannot be converted. Security key types (such as sk-ssh-ed25519) and OpenSSH certificates (-cert-v01) are also limited to fingerprint checks.
- Ed25519 keys are written to PEM in PKCS#8 format. OpenSSL and similar tools can read them, but OpenSSH's ssh and ssh-keygen cannot read Ed25519 keys in PEM, so use the “OpenSSH private key” format for OpenSSH.
- Keys are generated with random numbers from the browser's Web Crypto API. Ed25519 is available in Chrome 137, Firefox 129, Safari 17 and later, and the option is hidden in browsers that do not support it.
Sources
- OpenSSH PROTOCOL.key (openssh-key-v1 format)
- RFC 4716: The Secure Shell (SSH) Public Key File Format, RFC 4253 6.6 (public key format)
- PuTTY manual Appendix C: PPK file format (two-way conversion checked with PuTTYgen 0.81, November 2026)
- OpenSSH Release Notes (DSA disabled and removed)