How to use KHQR generator
- 01Type your Bakong IDIt looks like name@bank.
- 02Pick riel or dollarsAdd an amount if you like.
- 03Download the codePrint it for your counter.

Tag 29, your Bakong ID, KH and a CRC.
The National Bank of Cambodia’s KHQR guideline puts an individual or solo-merchant Bakong account in tag 29, with the account ID in sub-tag 00. The tool adds the merchant category 5999, the currency (116 for riel, 840 for dollars), an optional amount, KH, your name and city, a creation time stamp in tag 99 and the CRC, in the order of the guideline’s own example, and shows each field.
A KHQR generator for your own Bakong account: type your account ID, your name and city, pick riel or dollars and download a code customers can pay from Bakong or their bank app. The layout is the National Bank of Cambodia’s, and the guideline’s own static example comes out with the same check code.
The National Bank of Cambodia’s example
The KHQR guideline shows a static code for the test account test_bakong@devb, named Lucky Supermarket in Phnom Penh, in riel, ending with the CRC 102F. With the same time stamp, the tool writes the same text:
- 00 02 01, then 01 02 11 (static).
- 29 20, with 00 16 test_bakong@devb: the Bakong account ID.
- 52 04 5999: miscellaneous and speciality retail outlets. 53 03 116: riel (840 for dollars).
- 58 02 KH, 59 17 Lucky Supermarket, 60 10 Phnom Penh.
- 99 17, with 00 13 1633921024778: the time the code was made, in milliseconds.
- 63 04 102F: the CRC.
Individual, remittance and corporate KHQR
The guideline describes three kinds. Individual or solo merchant KHQR uses tag 29 with your own Bakong ID and no account number, which is what this tool makes. Remittance KHQR also uses tag 29 but adds an account number for a desktop wallet. Corporate merchant KHQR uses tag 30 and a merchant ID from the acquiring bank, so it comes from your bank.
Amounts
Leave the amount empty for a code customers can reuse. With an amount, the guideline’s examples write riel as a whole number (1000) and dollars with a decimal point (10.0). The tool takes whole riel and dollars with up to two decimals.
At a glance
- Price
- Free. No sign-up, no watermark.
- Privacy
- Your text stays in your browser. Nothing is uploaded.
- Works in
- Chrome, Edge, Firefox and Safari, on phones and computers
Questions
Where do I find my Bakong account ID?
In the Bakong app or your bank’s app, under Receive. It has the form name@bank, like the guideline’s example test_bakong@devb.
Can I make a corporate merchant KHQR here?
No. A corporate merchant KHQR uses tag 30 with a merchant ID from your acquiring bank. This tool makes the individual / solo merchant kind (tag 29).
Will my KHQR work in other banks’ apps?
KHQR is the common standard Cambodian banks and Bakong read, so one code is meant to work across apps. Scan it once with your own app before you print it.
Is anything I type sent to a server?
No. The KHQR is built in your browser, so your account details never leave your device.
Why does my code change each time?
Tag 99 holds the time the code was made, as in the guideline’s examples, so two codes made a minute apart differ slightly. Both pay the same account.
Can one code take both riel and dollars?
No. Each code carries one currency. Make one of each if you accept both.
Do I need to register with the National Bank of Cambodia?
You need a Bakong account, opened in the Bakong app or through your bank. The code itself is just your account ID in the KHQR format.