How to Generate Bulk UPI QR Codes for Invoices
A technical guide showing how developers and businesses can generate bulk UPI QR codes programmatically for utility bills and invoice collections.
If you run an educational institution, a utility service, a subscription business, or a wholesale store, you deal with hundreds of unique monthly bills. Generating these QR codes manually one by one is impossible.
You need a way to generate bulk UPI QR codes programmatically using your invoice data. Here is how you can set it up.
The Technology: Excel / CSV to QR Code
Since UPI payment URLs conform to a standard text scheme (upi://pay?...), you can convert any list of invoice amounts and customer names into QR codes using simple scripts or bulk software.
Data Format Required:
You need a CSV sheet with the following columns:
- UPI ID (pa): Your merchant VPA (remains constant).
- Payee Name (pn): Your business name.
- Amount (am): The unique billing amount for that invoice.
- Invoice Note (tn): The invoice reference number.
Method 1: Using Python Scripting (For Developers)
You can write a simple Python script using the qrcode library to generate bulk images:
import qrcode
import pandas as pd
# Load your invoices CSV
df = pd.read_csv("invoices.csv")
for index, row in df.iterrows():
# Construct standard NPCI UPI link
upi_link = f"upi://pay?pa={row['vpa']}&pn={row['name']}&am={row['amount']}&cu=INR&tn={row['invoice_id']}"
# Generate QR Code image
img = qrcode.make(upi_link)
img.save(f"qrs/invoice_{row['invoice_id']}.png")
Method 2: Bulk QR Tools
If you are a non-developer, you can use bulk CSV QR generators available online. Upload your formatted Excel sheet, map the columns to create the URL structure, and download a ZIP file containing all the generated QR code images named by invoice number. You can then print or email these QR graphics directly to your customers.
Kunal Siyag
Founder, Pro UPI QR
Founder of Pro UPI QR. Builds the generators and calculators, writes the merchant guides, and cites NPCI, RBI, and bank sources instead of inventing a research team.
Related Articles
Generate Bulk UPI QR Codes from Excel CSV (Free)
Learn how housing societies, coaching centers, vendors, and event organizers can generate hundreds of personalized UPI QR payment codes from a CSV spreadsheet.
Extract UPI ID From a QR Code Online
Upload a UPI QR to extract the VPA, payee name, and amount in your browser. Decode PhonePe, GPay, Paytm, or BHIM codes without sending the image to a server.
Free UPI API Without a Payment Gateway
Build UPI payments with the free upi://pay URI — no Razorpay KYC. What NPCI APIs actually require, and how to embed a QR or payment link on a website.
Related tools
Four siblings in this topic — the full inventory lives on the hub.
PhonePe QR Generator
Create a PhonePe-compatible UPI QR with optional amount and note.
Google Pay QR Generator
Build a GPay-friendly standee customers can scan from any UPI app.
Paytm QR Generator
Generate a Paytm-compatible payment QR for shops and local businesses.
BHIM UPI QR Generator
Generate standard BHIM UPI QR codes for instant direct bank payments.