Bech32 Encoder And Decoder

Encode HRP and hex payloads as Bech32 or Bech32m, or decode strings to inspect their checksum, variant, HRP, and payload.



Question

What is Bech32?

Bech32 is a checksummed text format from BIP-0173. Bech32m, defined by BIP-0350, updates the checksum rule for newer SegWit address versions while keeping the same readable character set.

This tool encodes an HRP such as bc or tb plus a hexadecimal payload, decodes existing strings, reports the detected variant, and verifies whether the checksum is valid. Everything runs locally in your browser.

A valid checksum only confirms the string matches the selected Bech32 family. It does not prove address ownership, wallet spendability, private key safety, witness program meaning, network suitability, or transaction validity.


Code

How to use the Bech32 tool

To encode, enter the HRP, choose Bech32 or Bech32m, and paste an even-length hexadecimal payload. The output can be copied directly for comparison or further testing.

To decode, paste a Bech32 or Bech32m string and run verification. The tool shows the variant, HRP, payload hex, and data words, and it warns about mixed case, invalid characters, missing separators, malformed padding, and checksum mismatches.


Books

References