Go to your ssh key dir and print the contents of the private key file (id_ed25519) in my case.
Create a new text file and paste the contents of your private key file inside and save.
Open PuTTY Key Generator
Click File → Load private key
Select all files from file extensions
Open text file containing your key
The key is imported now.
Now, you can save your private key in PuTTY’s weird format.
Click on ‘Save private key’