xpub Address Generator
Generate receive and change addresses from an extended public key (xpub, ypub, zpub, tpub). Watch-only: no private keys needed. Export to CSV.
· · depth
| Path | Address |
|---|---|
Runs in your browser. What you enter is kept for 30 days to improve Toolgrid, then deleted.
How to use the xpub Address Generator
- 1 Paste an account extended public key from your wallet's settings.
- 2 Check the address type (set automatically from ypub or zpub) and choose receive or change.
- 3 Set the start index and number of addresses, then copy or download them.
About the xpub Address Generator
An extended public key (xpub) contains an account's public key and chain code. With it, anyone can compute all of the account's addresses, but nobody can spend from them: that needs the private keys. Wallets show it in their settings, often as ypub or zpub for SegWit accounts (SLIP-132), and accounting tools, payment processors and watch-only wallets use it to follow an account.
This tool derives the addresses non-hardened: the receive chain is …/0/i and the change chain …/1/i, starting at the index you choose. The address type follows the prefix (ypub → nested SegWit, zpub → native SegWit); for a plain xpub, choose legacy or Taproot yourself, since both use the xpub prefix. The results match what Sparrow, Electrum, BTCPay Server and hardware wallets generate for the same key.
An xpub can't move funds, so it is not sensitive in that sense, but it does reveal every address and therefore the full transaction history and balance of the account. Only share it with services you trust. The tool runs in your browser and does not look up balances.
Frequently asked questions
Is it safe to paste my xpub here?
An xpub can't be used to spend, and the derivation happens in your browser. It does reveal all addresses and thus your balance and history, so treat it as private information.
Why are my addresses different from my wallet's?
Check the address type: a plain xpub can belong to a legacy (BIP44) or Taproot (BIP86) account. Also check that you pasted the account key (depth 3) and not the root key, and whether you need receive or change addresses.
Can I get the private keys from an xpub?
No, that is the point of an xpub. Only the matching xprv or seed phrase can produce private keys.
What is the gap limit?
Wallets stop scanning after a number of unused addresses in a row, usually 20. If you hand out more addresses without payments, raise the gap limit in your wallet so it finds later payments.