In this short tutorial, I will explain how to export your private keys out of your Electrum wallet.
Open your Electrum wallet. In Electrum’s menu, click on Wallet, on Private keys and on Export.
All the relevant information will appear in a new window. Your BTC addresses will be on the left. On the right, you will see the private key for each address. If the key starts with something like p2pkh:, p2sh: or p2wpkh:, you must remove that part.
You can copy-paste the private keys directly from the window or you can export them in CSV or JSON format.