Wallet SSC: 0.00000000 / $0

Bitcoin & Litecoin SegWit (Bech32) Address Generator

Generate modern, native SegWit addresses (P2WPKH and P2WSH) for Bitcoin and Litecoin using our universal step-by-step generator. Visualize the entire creation process from a private key to a secure bc1q... or ltc1q... address. Includes a built-in validator to verify the correctness of any Bech32 address

0
Private key Hex (64 characters [0-9A-F]) 🔑 Convertor hex <-> wif
Prefix    Coin / Symbol
1
Compressed public key (0x02 or 0x03 followed by 32 byte X coordinate)

SegWit Bech32 p2wpkh address

2
SHA256(Public key)
64
3
RIPEMD160(step 2)
4
5 bits binary on the result of the step 3
5
Array dec = 'data' on the result of the step 4
64
6
Converts this to an array of 5-bit unsigned integers (base 2^5=32)
7
Add the witness version byte (00) current version is 0.
66
8
Checksum step 5 and the H.R.P (hrp = 'bc' or 'ltc', step 5)
9
Step 7 and step 8
78
10
Map each value to its corresponding character in Bech32Chars
11
Address encoded (p2wpkh): HRP + Separator + Data

SegWit (P2WSH) address

2
0x21 (33 bytes) & Compressed public key & OP_CHECKSIG
3
redeemScript (1-of-1): SHA256(step 2)
4
5 bits binary on the result of the step 3
260
5
Array dec = 'data' on the result of the step 4
106
6
Compute the checksum by using the data from step 5 and the H.R.P
12
Checksum dec
12
7
Append the checksum to result of step 5 (we now have an array of 5-bit integers)
118
8
Map each value to its corresponding character in Bech32Chars 00 -> q, 03 -> r,...
9
Address encoded (p2wsh)

How to Import into Electrum (Bech32 P2WPKH):


In the Electrum Wallet console, use the command:
importprivkey('p2wpkh:Your_Private_key_WIF')
Our website uses cookies (ie. Cookies) for statistical, advertising and functional. Thanks to them, we can customize the site to your needs. Anyone can accept cookies, or has the ability to disable them in your browser, so you will not collect any information.
Got it