EMV Payment QR Decoder & Generator (PromptPay, KHQR)

Decode any EMVCo merchant QR (VietQR, PromptPay, KHQR, Lao QR, QRIS, DuitNow, PayNow, QR Ph, Pix) with CRC check, or create PromptPay, PayNow, KHQR.

Free tool: 20 requests per minute.

Result

Press “Run” to see the result.

action=decode with a payload (the text inside the QR; decode an image first with /v1/qr-decode) splits the EMVCo merchant-presented TLV tree, checks the CRC-16 of field 63 and the mandatory fields, and detects the scheme from the identifier in fields 26–51: VietQR / NAPAS 247, PromptPay (Thailand), KHQR / Bakong (Cambodia), Lao QR (LAPNet), QRIS (Indonesia), DuitNow (Malaysia), PayNow / SGQR (Singapore), QR Ph, FPS (Hong Kong), Pix and UPI. It returns the merchant name and city, category code, amount, currency (ISO 4217), tip / fee settings, additional data (bill number, reference, terminal…), the language template and scheme details such as the PromptPay proxy, the PayNow UEN or the Bakong account. payable_from_vietnam says whether Vietnamese bank apps can pay the code through the NAPAS cross-border QR links (Thailand, Cambodia, Laos, China).

action=create builds a payload with the right CRC: scheme=promptpay (proxy = Thai mobile, 13-digit ID or e-wallet ID), paynow (mobile or UEN, editable, expiry), khqr (bakong_account_id, merchant_name, KHR or USD, creation / expiry timestamps), vietqr (bank, account) or generic with any tags in fields. Add amount, merchant_name, merchant_city, bill_number, reference… Add format=png, svg or json_image to get the QR image from the qr engine (size, colour, margin parameters).

Scheme identifiers come from the central bank / scheme documents; Lao QR and QR Ph are detected from observed codes (marked confidence: observed). action=schemes lists them.

Use this in your code

curl -X POST "https://apibox.io.vn/v1/emv-qr" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"action":"decode","payload":"00020101021229370016A0000006770101110113006681234567853037645402505802TH5913Coffee Corner6007Bangkok63040854"}'

API documentation → Get a free API key

FAQ

Can it read a QR image?

This endpoint works on the payload text. Decode the image first with /v1/qr-decode, then send the text here.

Which foreign codes can Vietnamese banking apps pay?

Through NAPAS links: Thai PromptPay, Cambodian KHQR, Lao QR and UnionPay QR from China (with participating banks). The response flags this in payable_from_vietnam.

Is the payment executed?

No. The API only reads and builds QR payloads; nothing is sent to any bank.