---
title: "Bitcoin URI (BIP-21) — definition | Nuri Glossary"
description: "The BIP-21 link format that puts address, amount and label into one scannable string."
lang: "en"
type: "glossary-term"
canonical: "https://nuri.com/glossary/bitcoin-uri"
---

# Bitcoin URI (BIP-21)

The BIP-21 link format that puts address, amount and label into one scannable string.

## Basically

A Bitcoin URI is a standard link for a payment request. It can carry an address, amount and label, so you can pay with one click or by scanning a QR code.

## Key Takeaways

- A Bitcoin URI turns a payment request into a clickable link or QR code, bundling a Bitcoin address, amount, label and message into one string that your wallet can parse automatically.
- BIP-21 originally defined the scheme, and BIP-321 modernised it to support BOLT 11 invoices, BOLT 12 offers and silent payments, allowing unified QR codes across on-chain and Lightning wallets.
- Bitcoin URIs support merchant point-of-sale systems and payment links, removing manual address copying and reducing user error in everyday Bitcoin transactions.

## What Is a Bitcoin URI?

A Bitcoin URI is a standardised way to encode a payment request as a uniform resource identifier using the bitcoin: scheme. Defined by BIP-21, it lets you click a link or scan a QR code so your wallet automatically fills in the recipient address, payment amount and descriptive metadata. You simply confirm and send instead of manually copying a long alphanumeric address and entering an amount.
The format follows RFC 3986 generic URI syntax. The Bitcoin address sits in the path component, while optional parameters like amount and label appear as query string key-value pairs. Any wallet that registers as a handler for the bitcoin: scheme can intercept these URIs and present the payment details to you for approval.
BIP-21 was introduced in 2012 and has since become the most widely supported payment request format in the Bitcoin ecosystem. BIP-321 formally superseded it in 2024. The newer standard extends the original scheme with support for modern address types, Lightning Network parameters and silent payments.

## How It Works

A Bitcoin URI follows a simple structure: the scheme name, a Bitcoin address and optional query parameters separated by ampersands. Your wallet reads these parts and turns them into a payment request for your approval.

## URI Format

The basic grammar combines the bitcoin: scheme, a Bitcoin address and optional query parameters. Each part follows a defined URI structure.
The bitcoin: scheme is case-insensitive, but everything after it, including query parameter keys, is case-sensitive. Non-ASCII characters in query values must be UTF-8 encoded and then percent-encoded per RFC 3986 rules.

## Standard Parameters

BIP-21 defines three optional query parameters. These parameters let a payment request carry an amount, a label and a message.
Any unrecognised parameter is allowed as long as it does not use the req- prefix. Parameters prefixed with req- are reserved for required extensions. If a wallet encounters an unknown req- parameter it does not understand, it must reject the entire URI rather than silently ignore a critical instruction.

## URI Examples

The address portion supports all standard Bitcoin address types, including legacy (P2PKH), SegWit (bech32) and Taproot (P2TR) addresses. Your wallet can use the same URI structure with each address type.

## Unified QR Codes and BIP-321

The original BIP-21 scheme was designed for on-chain payments only. As the Lightning Network grew, merchants and wallets needed a way to accept both on-chain and Lightning payments from a single QR code. Unified payment URIs were developed to meet that need.
BIP-321 formalises this pattern by defining additional query parameters for Lightning and other payment methods. These parameters let one URI carry several payment options.
BIP-321 also allows the Bitcoin address to be omitted entirely, as long as at least one payment instruction exists in the query parameters. A URI like bitcoin:?lno=lno1... is therefore valid for Lightning-only payments.

## How Wallets Parse Unified URIs

Your wallet reads the full URI when it scans a unified QR code and selects the best payment method it supports. The wallet can then choose from the payment options included in the URI.
Graceful degradation ensures that a single QR code works for every Bitcoin wallet, regardless of which protocols it supports. For a deeper look at how this works in practice, see Unified QR Codes for Bitcoin.

## Unified URI Example

The URI contains an on-chain fallback address, a BOLT 11 invoice for immediate Lightning payment and a BOLT 12 offer. Wallets like BTCPay Server, Phoenix, BlueWallet and Zeus all support decoding unified BIP-21 URIs.

## Merchant Point-of-Sale

Retail merchants display a QR code at checkout, and you scan it to pay. The URI pre-fills the exact amount and a label identifying the merchant, while unified URIs let the same QR code work with an on-chain wallet or a Lightning wallet. Payment processors like BTCPay Server generate these URIs automatically for every invoice.

## Payment Links and Invoicing

Online merchants embed Bitcoin URIs as clickable links in invoices, emails and websites. Your desktop or mobile wallet opens with the payment details pre-populated when you click the link. Payment links are especially useful when shared via messaging apps or social media, where manual address entry would be impractical.

## Donation Pages and Tip Jars

Content creators and nonprofits embed Bitcoin URI QR codes on their websites. BIP-321 with a BOLT 12 lno parameter lets them create static, reusable donation QR codes that support instant Lightning payments without generating a new invoice for each visitor.

## Wallet Interoperability

Bitcoin URIs serve as a universal interchange format between wallets and applications. Any application that needs to request a payment can generate a URI, and any wallet that handles the bitcoin: scheme can process it. Payment requesters therefore do not need to know which wallet the sender uses.

## Comparison with Other Payment Formats

Bitcoin URIs are one of several payment request formats in the Bitcoin ecosystem. Each serves a different purpose.
The key advantage of BIP-21/321 URIs is their ability to wrap multiple formats into a single string. A merchant can include both BOLT 11 and an on-chain address rather than choosing between them. For a detailed comparison, see the Bitcoin Payment Protocol Comparison tool.

## Address Verification

You should always verify the address displayed by your wallet before confirming a payment. Malware can intercept clipboard contents or tamper with QR codes to substitute a malicious address. Address poisoning can bypass the convenience of URI-based payments.

## Amount Formatting Errors

The amount parameter is denominated in BTC, not satoshis, and a decimal point error can result in sending 1,000x more than intended. For example, amount=1 means 1 BTC, not 1 satoshi. Comma separators like amount=1,000 are invalid and will be rejected by compliant wallets, but non-compliant implementations could misparse them.

## Expiration and Staleness

On-chain Bitcoin URIs do not expire, so a QR code printed on a receipt remains valid indefinitely. A BOLT 11 invoice included through the Lightning lightning parameter will expire, typically within one hour. You may find the Lightning option unavailable when scanning an old unified QR code, while the on-chain fallback still works.

## Privacy Implications

Reusing the same Bitcoin URI, and thus the same address, for multiple payments creates address reuse, which degrades privacy by allowing observers to link payments together. For privacy-sensitive use cases, BIP-321's silent payment parameter (sp) or generating a fresh address per request mitigates this risk.

## Why It Matters

Bitcoin URIs bridge the gap between raw blockchain addresses and user-friendly payment experiences. Without them, every Bitcoin payment would require manually copying a 42-62 character address and separately entering an amount, a process prone to errors and difficult for non-technical users.
The evolution from BIP-21 to BIP-321 reflects the broader trend toward unified payment experiences in Bitcoin. Unified URIs let your wallet make the optimal choice automatically rather than forcing you to choose between on-chain and Lightning before scanning a QR code. Platforms like Spark use this standard to let users interact with a single QR code regardless of the underlying settlement layer.
The glossary entry is for informational purposes only and does not constitute financial or investment advice. Always do your own research before using any protocol or technology.
Part of the [Nuri glossary](https://nuri.com/glossary), which defines 1876 Bitcoin, Lightning, wallet, stablecoin and payment terms.
