How to use قراءة QR الفاتورة الضريبية
- 01Paste or scanThe QR text or a photo.
- 02Read the fieldsSeller, VAT number, date, amounts.
- 03See the checksVAT number, total and VAT.

Base64 → tag, length, value.
ZATCA requires the QR code on e-invoices to hold Base64 text of TLV records: one byte for the tag, one for the length and the UTF-8 value. Tags 1–5 are the seller’s name, VAT registration number, time stamp, total with VAT and VAT total; phase 2 invoices add 6–9 (hash, signature and keys). The tool decodes every record, checks the VAT number has 15 digits starting and ending with 3, and works out the amount before VAT.
قراءة رمز QR للفاتورة الضريبية: Saudi e-invoices carry a QR code in the format ZATCA sets for FATOORA, with tags 1–5 required since 4 December 2021. This reader turns the code’s Base64 text back into the seller’s name, VAT number, date and amounts, and checks them against ZATCA’s published rules. It never makes codes or invoices.
How the code is built
ZATCA’s guide says the QR code holds Base64 text with up to 500 characters (for the phase 1 fields), made of TLV records: one byte for the tag, one byte for the length of the value in UTF-8 bytes, then the value. Arabic letters take two bytes each, so the length is in bytes, not letters.
- Tag 1: seller’s name.
- Tag 2: VAT registration number of the seller.
- Tag 3: time stamp of the invoice (date and time).
- Tag 4: invoice total with VAT.
- Tag 5: VAT total.
- Tags 6–9 (from 1 January 2023): hash of the XML invoice, ECDSA signature, ECDSA public key, and for simplified invoices ZATCA’s signature of the stamp’s public key.
ZATCA’s example, decoded
ZATCA’s guide gives AQxCb2JzIFJlY29yZHMCDzMxMDEyMjM5MzUwMDAwMwMUMjAyMi0wNC0yNVQxNTozMDowMFoEBzEwMDAuMDAFBjE1MC4wMA==. Decoded: seller Bobs Records, VAT number 310122393500003, 2022-04-25T15:30:00Z, total 1000.00, VAT 150.00. Try it with the example button.
What the checks mean
- VAT number: ZATCA’s XML implementation standard (rule BR-KSA-40) requires 15 digits whose first and last digits are 3.
- Time stamp: should be a date and time such as 2022-04-25T15:30:00Z.
- Total and VAT: the VAT can’t exceed the total; the tool shows the amount before VAT and the VAT as a percentage of it. The standard rate is 15%, so an invoice with zero-rated or exempt lines shows less.
Codes ZATCA calls incorrect
The guide shows a link to a website, a link to the invoice online, plain text, and empty or random values as wrong QR contents. If the code on your invoice is one of these, it doesn’t meet the requirement.
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
كيف أتحقق من الفاتورة الضريبية عن طريق QR؟
Scan the code with your phone camera, copy the text it shows (it usually starts with AQ) and paste it here. The tool shows what the code says; to confirm the seller is registered, look up the VAT number on ZATCA’s site.
The QR code opens a website. Is that right?
No. ZATCA’s guide lists a link to a website or to the invoice as an incorrect QR code: the code must hold the Base64 TLV data.
Can this tool make a ZATCA QR code?
No, on purpose. It only reads codes. Invoices and their QR codes must come from a FATOORA-compliant e-invoicing system.
Does a valid-looking code prove the invoice is genuine?
No. The format can be right on a fake invoice. Phase 2 codes carry a signature (tags 7–9), but checking it needs the invoice XML and ZATCA’s certificates.
Is the invoice data uploaded?
No. The code is decoded in your browser, and the invoice details never leave your device.
Can I check the signature of a phase 2 invoice here?
No. The tool shows tags 6–9 as raw data. Checking the signature needs the invoice XML and ZATCA’s certificates.
Why do the amounts in ZATCA’s example not give 15%?
The guide’s example (1000.00 total, 150.00 VAT) only illustrates the format. On a real invoice taxed at 15%, the VAT is 15% of the amount before VAT, e.g. 115.00 total and 15.00 VAT.
Why does the text start with “AQ” or “AR”?
The first byte is tag 1 (0x01) and the second is the length of the seller’s name. In Base64 that comes out as AQ for names under 16 bytes and AR for 16 to 31 bytes, so most codes start that way.