Payment QR code sheet
Lay WeChat, Alipay and UnionPay payment codes out on a single labelled sheet: real canvas geometry, rendered locally with the qrcode package and exported as one PNG.
Runs in your browserEvery computation happens in your browser — your data never leaves this device.
160–600 px; 160 px is the least sharp for printing but fine on screen.
Up to four codes. WeChat uses wxp:// links, Alipay uses https://qr.alipay.com/ and UnionPay is a 62-prefixed number; the type is detected from the payload, and you can write your own label before the colon.
Computed layout
Canvas size, each code position and the label band height are real coordinates; the image is drawn from exactly these numbers.
Enter payment payloads to see the layout
Composite preview
Press "Render image" to preview here; the downloaded PNG is identical.
What this tool does
- Build a "one sheet, several codes" payment card for a shop, stall or event: WeChat, Alipay and UnionPay side by side, each with its own label, ready to print and tape to the counter.
- Export a PNG with your shop name and a note (such as "please show the payment screenshot") so you do not have to explain it every time.
- Tune the QR edge length (160–600 px) for the medium: 240–320 px for screen display, 480 px and up for print.
Example
Input
微信: wxp://f2f0AbCdEf1234567890 支付宝: https://qr.alipay.com/fkx12345678 (shop name: 山城小面, note: 扫码付款后请出示截图)
Output
画布: 704×478 px(2 列 × 1 行) 单张二维码: 320×320 px,间隔 16 px,外边距 24 px 标签区: 每张码下方 30 px 标题区: 46 px(山城小面) 备注区: 34 px(扫码付款后请出示截图) 1. 微信 · wechat(24, 70)· payload 26 字节 2. 支付宝 · alipay(360, 70)· payload 33 字节
The coordinates in parentheses are the top-left corner of each QR code on the canvas and are exactly what the image is drawn from; four codes automatically become a 2 × 2 grid (704×810 px).
Frequently asked questions
Can WeChat and Alipay payment codes really be merged into one code?
No, nobody can. Personal payment codes use two private protocols (WeChat wxp://, Alipay https://qr.alipay.com/) and one QR code carries one payload; no standard routes one code to two different apps. This tool lays several codes out on one image with labels and the customer picks which to scan. Any tool claiming automatic routing either relies on a backend proxy or is faking it.
How do I get the payload out of my payment code?
A WeChat payment code has to be decoded from the saved image with a QR reading tool, or read from the payment ledger; Alipay codes look like https://qr.alipay.com/xxxxxxxx. This tool does not decode QR images (that is a different tool) and only accepts pasted text.
How is the image produced, and is anything uploaded?
Each payload is rendered locally with the bundled qrcode package, then drawn onto one canvas together with the shop name, per-code labels and the note, and exported as a PNG. Nothing is uploaded and the output carries no watermark or platform branding.
What are the limits?
Up to four codes; each payload at most 2331 bytes (QR capacity at error correction level M, version 40); edge length 160–600 px; shop name up to 24 characters and note up to 60 characters. An oversized payload is rejected instead of producing a code that cannot be scanned.
How is the layout calculated?
Pure geometry: canvas width = padding × 2 + columns × edge + column gap × (columns − 1), and the height adds the title band, one label band per row and the footer. One code is stacked vertically and two to four codes become two columns. The coordinates shown in the output are exactly the values used for drawing, so you can verify them.
Keywords:payment QR sheet