ZATCA QR Code Scanner & TLV Decoder
Decode Saudi Fatoora Phase 1 and Phase 2 Base64 TLV QR codes instantly in your browser. Verify UTF-8 Arabic seller names, 15-digit Saudi VAT numbers (3...3), timestamps, totals, and OCR cross-check mismatches without uploading data.
Valid ZATCA Phase 1 TLV Payload
All mandatory Tags 1–5 decoded cleanly and Tag 2 passes Saudi 15-digit (3...3) VAT validation.
| Tag | Field | Decoded Value |
|---|---|---|
| 01 | Seller Name | مؤسسة النور للتوريدات / Al Noor Supply (Synthetic) |
| 02 | VAT Registration No. | 310482910400003Valid KSA VAT (15-digit 3...3) |
| 03 | Timestamp | 2026-11-18T14:32:10Z |
| 04 | Invoice Total (incl. VAT) | 4542.50 SAR |
| 05 | VAT Total | 592.50 SAR15.0% of net (3950.00 SAR) |
Live QR Code Preview
Test with a Fatoora mobile scanner or verify payload length.
ZATCA Phase 1 vs Phase 2 TLV Tag Reference
Every Saudi e-invoice QR code stores sequential [Tag (1 byte)][Length (1 byte)][Value (N bytes)] records encoded as Base64. AP automation and ERP pipelines decode these tags to catch tampered totals or OCR misreads before posting supplier invoices:
| Tag | Phase | Field | Encoding & Validation |
|---|---|---|---|
| 1 | Phase 1+ | Seller Name | UTF-8 string (Arabic and/or English) |
| 2 | Phase 1+ | VAT Registration Number | 15 digits starting and ending with 3 |
| 3 | Phase 1+ | Invoice Timestamp | ISO 8601 date-time string |
| 4 | Phase 1+ | Invoice Total (with VAT) | Decimal numeric string in SAR |
| 5 | Phase 1+ | VAT Total | Decimal numeric string in SAR |
| 6–9 | Phase 2 | Cryptographic Proofs | XML hash (6), ECDSA signature (7), public key (8), ZATCA stamp (9) |
Need to parse full bilingual Arabic–English supplier invoices (line items, IBANs, multi-page PDFs, and automatic gcc_compliance validation) inside your backend? Read our ZATCA Invoice Scanner & QR OCR API Solution, explore the Invoice OCR API (API reference), see our unified Arabic & Bilingual OCR API Hub, or test a scanned invoice PDF directly in the free online invoice scanner.
Frequently asked questions
- What is encoded inside a Saudi ZATCA Fatoora QR code?
- Saudi ZATCA e-invoice QR codes encode invoice metadata in binary Tag-Length-Value (TLV) format wrapped in Base64. Phase 1 mandates Tags 1 through 5: Seller Name (UTF-8 Arabic or English), 15-digit VAT Registration Number, ISO 8601 Invoice Timestamp, Invoice Total with VAT, and VAT Total. Phase 2 adds optional cryptographic Tags 6 through 9 (XML invoice hash, ECDSA signature, ECDSA public key, and ZATCA cryptographic stamp).
- How does this scanner validate a Saudi VAT Registration Number (Tag 2)?
- A valid Saudi Arabia ZATCA VAT Registration Number is exactly 15 digits long, begins with 3, and ends with 3 (regex ^3\d{13}3$). The decoder normalizes any Eastern Arabic-Indic numerals (٠–٩) to Western digits and flags numbers that violate the 15-digit 3...3 format.
- Does this tool issue or clear e-invoices with ZATCA Fatoora?
- No. This is a read-only inspection and accounts-payable verification tool. It decodes and checks TLV QR payloads on supplier invoices—it does not perform ZATCA tax filing, XML signing, or Fatoora clearance.
- Can I extract line items and printed fields from full Arabic–English Saudi invoice PDFs automatically?
- Yes. Use our free Invoice Scanner (/tools/invoice-scanner) or POST /v1/invoice API to extract bilingual Arabic–English headers, multi-page line items (up to 5 pages per call), 15-digit Saudi VAT / UAE TRN checks, and ZATCA TLV QR cross-checks into deterministic JSON.
- Is my invoice QR payload uploaded to a server?
- No. Both Base64 TLV decoding and local QR image scanning run 100% inside your browser. Nothing is transmitted or stored, and no scan credits are consumed.