XPUB, YPUB, ZPUB Converter Tools
There's a command line electrum option convert_xkey. If you're on linux or macosx you can see the documentation for it via electrum help convert_xkey. Alternatively you can use the console tab of electrum on all operating systems to achieve the same result. For example convert_xkey(xkey=&quot;xpub...&quot;,xtype=&quot;p2wpkh&quot;) will convert from p2pkh to p2wpkh