Bech32 Encoder

Encode data as Bech32 using the selected format options.

Input: Text (UTF-8) or original file bytesResult: Text

Text input

Run to see the result

SegWit witness version from 0 to 16; used only in Bitcoin SegWit mode.

Examples

Bitcoin SegWit v0 P2WPKH

Input

751e76e8199196d454941c45d1b3a323f1433bd6

Expected answer

bc1qw508d6qejxtdg4y5r3zarvary0c5xw7kv8f3t4
Human-Readable Part (HRP)
bc
Encoding
Bech32
Input Format
Hex
Mode
Bitcoin SegWit
Witness Version
0
Bitcoin SegWit v0 P2WSH testnet

Input

1863143c14c5166804bd19203356da136c985678cd4d27a1b8c6329604903262

Expected answer

tb1qrp33g0q5c5txsp9arysrx4k6zdkfs4nce4xj0gdcccefvpysxf3q0sl5k7
Human-Readable Part (HRP)
tb
Encoding
Bech32
Input Format
Hex
Mode
Bitcoin SegWit
Witness Version
0
custom HRP

Input

test

Expected answer

custom1w3jhxaq593qur
Human-Readable Part (HRP)
custom
Encoding
Bech32
Input Format
Raw bytes
Mode
Generic
Witness Version
0
empty HRP error

Input

test

Expected rejection

Message contains
Human-Readable Part (HRP) cannot be empty.
Human-Readable Part (HRP)
(empty)
Encoding
Bech32
Input Format
Raw bytes
Mode
Generic
Witness Version
0
Hello

Input

Hello

Expected answer

bc1fpjkcmr0gzsgcg
Human-Readable Part (HRP)
bc
Encoding
Bech32
Input Format
Raw bytes
Mode
Generic
Witness Version
0
single byte

Input

A

Expected answer

bc1gyufle22
Human-Readable Part (HRP)
bc
Encoding
Bech32
Input Format
Raw bytes
Mode
Generic
Witness Version
0
testnet HRP

Input

data

Expected answer

tb1v3shgcg3x07jr
Human-Readable Part (HRP)
tb
Encoding
Bech32
Input Format
Raw bytes
Mode
Generic
Witness Version
0
To Bech32m: Bitcoin SegWit v16

Input

751e

Expected answer

bc1sw50qgdz25j
Human-Readable Part (HRP)
bc
Encoding
Bech32m
Input Format
Hex
Mode
Bitcoin SegWit
Witness Version
16
To Bech32m: Bitcoin Taproot v1

Input

79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798

Expected answer

bc1p0xlxvlhemja6c4dqv22uapctqupfhlxm9h8z3k2e72q4k9hcz7vqzk5jj0
Human-Readable Part (HRP)
bc
Encoding
Bech32m
Input Format
Hex
Mode
Bitcoin SegWit
Witness Version
1
To Bech32m: Hello

Input

Hello

Expected answer

bc1fpjkcmr0a7qya2
Human-Readable Part (HRP)
bc
Encoding
Bech32m
Input Format
Raw bytes
Mode
Generic
Witness Version
0

Bech32m (BIP-0350) is an updated version that fixes a weakness in the original Bech32 checksum and is used for Bitcoin Taproot addresses. The Human-Readable Part (HRP) identifies the network or purpose (e.g., 'bc' for Bitcoin mainnet, 'tb' for testnet, 'age' for AGE encryption keys). Maximum output length is 90 characters as per specification.

Format reference: To Bech32 background and specification

Related tools

Browse data format tools