ZATCA Invoice QR Code Reader & Generator
Read the QR code on a Saudi e-invoice (ZATCA, Fatoora): seller, VAT number, date, total and VAT, with format checks. Or make a phase-1 invoice QR.
Loading tool…
What is inside a ZATCA invoice QR code
Since 4 December 2021, simplified tax invoices in Saudi Arabia (the ones issued to consumers) must carry a QR code in the format set by ZATCA (the Zakat, Tax and Customs Authority), as part of the e-invoicing rules known as Fatoora, and many businesses print one on every invoice. A normal phone camera shows its content as a string of letters such as AQxCb2JzIFJlY29yZHMC…, because the code does not hold a link. It holds Base64 text of a series of TLV records: for each field, one byte with the tag number, one byte with the length, then the value as UTF-8 text.
Phase 1 has five fields: 1 seller name, 2 the seller's VAT registration number, 3 the invoice date and time, 4 the invoice total including VAT, and 5 the VAT total. Since 1 January 2023, businesses in phase 2 (integration) add four more: 6 the hash of the XML invoice, 7 its ECDSA signature, 8 the public key, and for simplified invoices 9 ZATCA's signature of that key. Those four are the cryptographic stamp. This tool shows them but does not check them; that needs the full XML invoice and ZATCA's certificates, which the QR alone does not contain.
We checked the encoder against the worked examples in ZATCA's own QR code guide: "Bobs Records", VAT number 310122393500003, 25 April 2022 15:30Z, 1000.00 and 150.00 gives exactly the Base64 string the guide shows, and so does its second example. Arabic seller names are encoded as UTF-8, as the guide's rules say (two bytes for most Arabic letters).
Why we built this tool
Use the reader to see what an invoice QR really says: when a supplier's invoice is questioned, when you are checking that your own point-of-sale or accounting software prints the right data, or when a customer's app says the code is invalid. It flags the common mistakes: a VAT number that is not 15 digits starting and ending with 3, an amount with a currency sign or a comma, a date in the wrong form, a VAT larger than the total, and a total that seems to exclude VAT.
Use the generator for phase-1 invoices (a small business that issues invoices from a simple system) or to test a reader. Fill in the five fields and download the QR as a PNG to place on the invoice. Businesses already in phase 2 must print the QR made by their certified e-invoicing system, because only that one carries the stamp.
This is not an official ZATCA tool, and a well-formed QR does not prove that an invoice was reported to ZATCA. For that, ZATCA offers its own apps and the Fatoora portal.
Tips and common mistakes
- Photograph the QR straight on, filling a good part of the frame; a screenshot of a PDF invoice works best of all.
- If a scanner app has already given you the text (it starts with AQ), paste it under "Or paste the text inside the QR".
- Amounts in the QR are plain numbers with a dot: 1150.00, not 1,150.00 SAR.
- VAT at the standard 15% is 15/115 of a total that includes VAT: 15.00 on 115.00. The "VAT at 15% of the total" button does that sum.
- The time is saved in UTC with a Z, as in ZATCA's example: 13:15 in Riyadh becomes 10:15:00Z.
Quick start: using ZATCA Invoice QR Code Reader & Generator
- To read: drop a photo or screenshot of the QR, scan it with the camera, or paste its text.
- Check the five fields and the marks next to them; problems are explained in red.
- To make one: open Make a phase-1 QR and fill in the seller name, VAT number, date and time, total and VAT.
- Press Make QR code, then download the PNG or copy the text.
To read any other QR code, use QR Code Scanner; to write an amount in words for an invoice or cheque, Amount in Words.
Frequently asked questions
Does this verify that an invoice is genuine?
No. It reads the fields and checks their format. It does not verify the phase-2 cryptographic stamp (tags 6 to 9), and it cannot tell whether the invoice was reported to or cleared by ZATCA.
Why does my phone show random letters instead of a link?
A ZATCA QR holds Base64-encoded data, not a web address. A normal scanner shows that text as it is; this tool decodes it into the seller name, VAT number, date and amounts.
Can I use the generated QR on my invoices?
For phase 1, a QR with the five fields in the right format is what the rules ask for (it is required on simplified tax invoices). If your business is in phase 2 (integration), the QR must come from your e-invoicing system with its cryptographic stamp; this tool cannot make that.
Why is my VAT number marked wrong?
A Saudi VAT registration number has 15 digits, and both the first and the last digit are 3. Check for a missing digit, spaces, or a commercial registration number used by mistake.
Is the invoice uploaded?
No. The picture is read in your browser, and nothing you scan or type is sent to a server.