Easiest way is to use Electrum wallet for importing private key
For the record: this also works offline. You can also use
Tails to run it from Live DVD through Tor.
Use this prefix when importing Segwit private keys into Electrum:
For P2WPKH addresses (Bech32, starting with 'bc1')This time we'll add
p2wpkh: in front of the private key.
For example
p2wpkh:5PrivateKey
This should generate the corresponding Bech32 address