THAMER
Sovereign Bitcoin Wallet

WALLET AI BITCOIN

Your Bitcoin Wallet. Your Keys. Your Engine.

Self-hosted Bitcoin software built for developers, applications, and AI agents.

CREATE WALLET

Are bc1q and bc1p Bitcoin Addresses Interchangeable?

permalink THAMER
#bc1p#bc1q#bech32m#bitcoin#segwit#taproot

No. The familiar prefixes bc1q and bc1p usually identify different native SegWit witness versions on Bitcoin mainnet. They are not interchangeable text labels for the same destination.

A typical bc1q address encodes witness version 0 and uses the original Bech32 checksum. It may represent a 20-byte P2WPKH program or a 32-byte P2WSH program. A typical bc1p address encodes witness version 1, uses Bech32m, and for Taproot carries a 32-byte output-key program.

Why does the distinction matter?

Changing q to p, or copying the payload from one format to another, does not convert a wallet's key material or spending policy. The checksum, witness version, output script, and signing rules must agree. A valid Taproot destination requires a wallet that can derive or otherwise control its corresponding output key; a SegWit v0 destination has different validation and spending rules.

Both address families can coexist in Bitcoin. A sender's software needs to support the requested destination type, and the receiver must be able to discover and spend funds sent there. Validate the complete address instead of relying on its first four characters.

Primary references

BIP173 — Bech32 address format: https://github.com/bitcoin/bips/blob/master/bip-0173.mediawiki

BIP350 — Bech32m address format: https://github.com/bitcoin/bips/blob/master/bip-0350.mediawiki

BIP341 — Taproot: https://github.com/bitcoin/bips/blob/master/bip-0341.mediawiki

Questions & Answers

Explore all questions →

Latest from the Lab

THAMER illustrated developer portrait and signature

ABOUT THE DEVELOPER

Independent Software Developer specializing in Bitcoin Script, Golang, and AI Agents.

Software engineering · Independent research · Open-source projects