Base58-encoded private key to .pem file

I wanted to move from browser node to cli, but in browser I’m only able to copy private key in base58-encoded format. How to convert it to .pem file to be able to import it to cli node?

haven’t tried it myself but feel free to experiment with deepseek.com

You can just save your key as .pem file.

how to do that , in my notepad it saving as .txt and am unable to change it , windows 11

If you are using Windows 11, you can go to the “View” menu at the top, then select View > Show > File name extensions. After enabling this option, you can modify the file extension from .txt to .pem.

how to do it from browser node?