UPI deep link generator (upi://pay)

A UPI link is upi://pay with pa (UPI ID), pn (name), am (amount), tn, tr and cu=INR, as NPCI's linking specification defines. Enter the payee and amount to get the link, Android intent forms, an HTML anchor and the text to paste into a QR code.

Updated

UPI payment link

₹499.00 to Example Store

upi://pay?pa=shop@examplebank&pn=Example%20Store&tr=ORD1042&tn=Order%201042&am=499.00&c...

  • Pass · UPI ID formatShape only; the tool cannot check that the ID exists.
  • Pass · Payee namePresent, as the spec requires.
  • Pass · Amount₹499.00 sent as am=499.00.
  • Pass · Transaction referenceSet.

upi:// link (also the text for a QR code)

upi://pay?pa=shop@examplebank&pn=Example%20Store&tr=ORD1042&tn=Order%201042&am=499.00&cu=INR
Android intent (any UPI app)
intent://pay?pa=shop@examplebank&pn=Example%20Store&tr=ORD1042&tn=Order%201042&am=499.00&cu=INR#Intent;scheme=upi;end
Android intent (Google Pay only)
intent://pay?pa=shop@examplebank&pn=Example%20Store&tr=ORD1042&tn=Order%201042&am=499.00&cu=INR#Intent;scheme=upi;package=com.google.android.apps.nbu.paisa.user;endpackage com.google.android.apps.nbu.paisa.user
HTML link
<a href="upi://pay?pa=shop@examplebank&amp;pn=Example%20Store&amp;tr=ORD1042&amp;tn=Order%201042&amp;am=499.00&amp;cu=INR">Pay with UPI</a>
Length
92 charactersshorter links make easier QR codes
  • Currency is fixed at INR: the spec says only INR is supported.
  • This link is unsigned. The spec's signing (sign, mode, orgid) is for merchant-initiated intents and QR codes set up with your bank or PSP; the spec says an app should warn the user when a signature is missing, so some apps may show a notice.
  • Android: a plain upi:// link opens the system's app chooser. The intent:// forms are for Chrome and in-app links; Google's docs say to support the generic intent as well as any Google Pay specific one.
  • iOS and other UPI apps: app-specific schemes and package names were not checked, so test the link on a real device with your target apps.
  • To make a QR code, copy the link above and paste it into the QR code tool.

How is a UPI payment link built?

NPCI's UPI linking specification defines one URL shape: upi://pay followed by a query string of name=value pairs. Every UPI app must listen for it, so the same link works from a QR code, a button, a chat message or an Android intent.

The pairs this tool writes are pa (the payee's UPI ID), pn (payee name), mc (merchant code, optional), tr (your transaction reference), tn (a note), am (amount as a decimal) and cu (currency, always INR). pa and pn are mandatory; with no am the payer's app lets them type the amount; tr is mandatory for merchant transactions and dynamic links.

Values are percent-encoded, so a space becomes %20 and an ampersand %26. The UPI ID keeps its @. The Android intent forms wrap the same query in intent://pay?...#Intent;scheme=upi;end, which is Chrome's intent URL syntax, with an optional package=... to target one app.

The spec also describes signed links (sign, mode and orgid) for merchant-initiated intents and QR codes. This tool makes the unsigned form used for simple payment links, and the spec says an app should warn the payer when a signature is missing.

upi://pay?pa=<VPA>&pn=<name>&mc=<code>&tr=<ref>&tn=<note>&am=<amount>&cu=INR

To turn the link into a scannable code, paste it into our QR code generator.

What does each UPI link parameter mean?

From NPCI's UPI Linking Specifications v1.6 (draft, November 2017)
ParameterMeaningStatus in the spec
paPayee VPA (UPI ID)Mandatory
pnPayee nameMandatory
mcPayee merchant codeOptional
trTransaction reference: order, bill or booking IDOptional on static links; mandatory for merchant and dynamic links
tnTransaction note: short descriptionOptional
amAmount in decimal; editable by the payer if missingOptional on static links; mandatory on dynamic links
mamMinimum amount, if different from amOptional on static; conditional on dynamic
cuCurrency; only INR is supportedOptional
urlA transaction-related page such as the bill or order, starting http or httpsOptional
mode, sign, orgidInitiation mode, base-64 digital signature and organisation ID for signed linksMandatory in the spec's table, set up with your PSP or bank

How to generate a UPI payment link

  1. 1
    Enter the payeeType the UPI ID and the name the payer should see. The tool checks the format only.
  2. 2
    Add the amount and referenceEnter an amount, or leave it empty so the payer types it. Add an order or invoice reference and a short note.
  3. 3
    Copy the linkCopy the upi:// link for a button or message, the Android intent for Chrome or an in-app link, or the HTML anchor for a web page.
  4. 4
    Make a QR code if you need onePaste the link into the QR code tool, print or display it, and test it by scanning with a few UPI apps.

Frequently asked questions

Is a upi:// link the same as a UPI QR code?
The QR code just encodes the same link as text. NPCI's spec lists QR codes, intents, NFC and Bluetooth as ways to carry one URL shape, so a link that works as a button also works as the text of a QR.
Does the link work on iPhone?
The spec requires every UPI app to listen for upi:// links, but how an iPhone picks the app depends on the apps installed and iOS. We did not verify per-app schemes, so test on a real iPhone with the apps your customers use.
Why does the payer's app say the source could not be verified?
Unsigned links carry no digital signature. The spec's signing is for merchant-initiated intents and QR codes set up with your bank or PSP, and it tells apps to show a warning when the signature is absent.
What is the difference between pa and pn?
pa is the payee's UPI ID, the address the money goes to, and pn is the display name shown to the payer. Both are mandatory in the spec.
Can I use another currency or a decimal amount like 99.5?
Only INR is supported by the spec. Amounts go in as decimals with two places, so 99.5 is written 99.50.

Sources

Related tools

See all 135 free tools

Need a custom dev tool for your team?

We build internal tools, dashboards, APIs, and SaaS platforms. If you can describe it, we can ship it.

Built by CountryDevs · No signup · No ads · We count visits, never what you enter