Step-by-Step: Convert PEM File to PPK File for PuTTY in Windows

Original post: Convert a PEM File to a PPK File Using PuTTY
If you’ve ever tried connecting to an AWS EC2 instance using PuTTY, you may have noticed it doesn’t accept .pem
key files directly. PuTTY works with .ppk
format, so you’ll need to convert your key before connecting.
In this guide, we’ll walk through the complete process of transforming a .pem
file into a .ppk
file on Windows using PuTTY. By the end, you’ll have a properly formatted key ready for secure SSH access — no errors, no confusion.
Step 1: Download and Install PuTTY
Visit the official PuTTY website to download the installer.
Once downloaded, run the installer and follow the prompts to complete the installation.
Step 2: Open PuTTYgen
After installation, search for PuTTYgen in your Start Menu and open it.
On the PuTTYgen home screen, under the Actions section, click Load to load an existing private key file.
Step 3: Load the PEM File
A file explorer window will open.
At the bottom right corner, change the file type filter from PuTTY Private Key Files (\.ppk) to All Files*.
Select the
.pem
file you want to convert and click Open.
Step 4: Import the PEM Key
After selecting the file, you should see the following message:
Successfully imported foreign key (OpenSSH SSH-2 private key (old PEM format)).
To use this key with PuTTY, you’ll need to click Save private key to save it in PuTTY’s format.
Step 5: Save the Key as a PPK File
Under the Actions section, click Save private key.
You may see a warning:
PuTTYgen Warning
Are you sure you want to save this key without a passphrase to protect it?Click Yes (unless you want to add a passphrase).
Choose a filename for your
.ppk
file and click Save.
You have now successfully converted your PEM file to a PPK file and can use it with PuTTY.
Subscribe to my newsletter
Read articles from Venkat Reddy directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
