Free tool
ZATCA QR code generator and reader
Make the QR a Saudi e-invoice must carry, or check what an existing one says.
An estimate for information only, not legal or tax advice. Nothing you type here is sent anywhere.
A ZATCA e-invoice QR code is a short Base64 text made of numbered fields: 1 the seller's name, 2 their VAT number, 3 the invoice date and time, 4 the total including VAT, and 5 the VAT total. Those five are the phase-1 QR. Under phase 2, invoices also carry the invoice's hash (6), its digital signature (7) and the public key (8) — produced with the seller's own certificate from ZATCA — and simplified invoices add the certificate's signature (9).
What each field holds
1
- Contents
- Seller name
- Phase
- 1 and 2
2
- Contents
- VAT registration number (15 digits)
- Phase
- 1 and 2
3
- Contents
- Invoice date and time
- Phase
- 1 and 2
4
- Contents
- Total including VAT
- Phase
- 1 and 2
5
- Contents
- VAT total
- Phase
- 1 and 2
6
- Contents
- Hash of the invoice XML
- Phase
- 2
7
- Contents
- ECDSA digital signature
- Phase
- 2
8
- Contents
- Public key
- Phase
- 2
9
- Contents
- Certificate's signature (simplified invoices)
- Phase
- 2
| Field | Contents | Phase |
|---|---|---|
| 1 | Seller name | 1 and 2 |
| 2 | VAT registration number (15 digits) | 1 and 2 |
| 3 | Invoice date and time | 1 and 2 |
| 4 | Total including VAT | 1 and 2 |
| 5 | VAT total | 1 and 2 |
| 6 | Hash of the invoice XML | 2 |
| 7 | ECDSA digital signature | 2 |
| 8 | Public key | 2 |
| 9 | Certificate's signature (simplified invoices) | 2 |
Questions
Is a QR from this tool enough for phase 2?
No. Phase 2 needs fields 6–8, which only the seller's own ZATCA-issued certificate can produce, and the invoice must be cleared or reported to ZATCA. This tool makes the phase-1 QR and reads either kind.
Is the QR this tool makes the same as Dopave's invoices?
Yes — for the same five fields the text is byte for byte what Dopave writes on a Saudi invoice; our tests check that. A connected Dopave workspace then adds the signed phase-2 fields.
Learn more
Try it on your own company's data — free, no credit card.
Start free