The ZATCA QR code on an invoice: what is inside it and how to check it
The QR on a Saudi tax invoice is not a link. It is five invoice facts packed into one code, so anyone can confirm who issued the invoice and how much VAT it charges without opening a system.
What the ZATCA QR code is
The ZATCA QR code is a QR printed on a Saudi tax invoice that carries five facts about it — the seller's name, the seller's VAT registration number, when it was issued, the total including VAT, and the VAT amount — so the invoice can be checked by scanning it. ZATCA (the Zakat, Tax and Customs Authority) introduced it with e-invoicing, known as FATOORA.
A phone camera that scans one usually shows a long string of letters rather than a web page. That is expected: the five values are packed into a compact binary format and then written as text. The sections below show exactly how, so you can check one yourself.
The five fields
| Tag | Field | Example value | Format |
|---|---|---|---|
| 1 | Seller name | Al Noor Trading | Text, as registered |
| 2 | Seller VAT registration number | 300000000000003 | 15 digits |
| 3 | Time stamp of the invoice | 2026-10-07T09:30:00Z | ISO 8601 date and time |
| 4 | Invoice total including VAT | 1150.00 | Number, two decimals |
| 5 | VAT total | 150.00 | Number, two decimals |
How the code is built
Each field becomes a TLV record
TLV means tag, length, value: one byte for the tag (1 to 5), one byte for the length of the value in bytes, then the value itself as UTF-8 text. "Al Noor Trading" is 15 bytes, so its record starts 01 0F.
The five records are joined
They are written one after another in tag order, making a single run of bytes.
The bytes are base64-encoded
Base64 turns the bytes into plain letters, digits, + and /, which is what the QR stores.
The text is drawn as a QR code
Any standard QR library can render it. Scanning gives the base64 text back; decoding the base64 and reading the TLV records gives the five values.
The example above, encoded
- First bytes (hex)
- 01 0F 41 6C 20 4E 6F 6F 72 …
- Base64 stored in the QR
- AQ9BbCBOb29yIFRyYWRpbmcCDzMwMDAwMDAwMDAwMDAwMwMUMjAyNi0xMC0wN1QwOTozMDowMFoEBzExNTAuMDAFBjE1MC4wMA==
01 is tag 1 (seller name), 0F is its length (15), and 41 6C 20… is "Al ". The same pattern repeats for tags 2 to 5.
Phase 1 and Phase 2: what changes
ZATCA brought e-invoicing in two phases. Phase 1, which began on 4 December 2021, required invoices to be generated electronically and introduced the five-field QR described above. Phase 2, rolled out to groups of taxpayers in waves from 1 January 2023, requires invoices to be produced by compliant software that is integrated with ZATCA's FATOORA platform, and adds cryptographic data — a hash of the invoice and a cryptographic stamp — to what the QR carries.
Checking a QR code before you send the invoice
Scan it and confirm
- It decodes to exactly five values, in tag order 1 to 5.
- The seller name and VAT number match your VAT registration certificate character for character.
- The total and VAT amounts match the printed totals to the halala — 1150.00, not 1150.
- The VAT amount is consistent with the rate you charged: at 15%, a net 1,000 gives 150 VAT and a 1,150 total.
- The code is printed large and sharp enough to scan from the paper or the PDF you actually send.
If the VAT figure looks wrong, check the arithmetic first with the VAT calculator, and see how to calculate VAT for the rounding rule that keeps net, VAT and total reconciling.
The QR code in BuzPulse
The Invoice Generator adds this five-field QR when an invoice is issued with a Saudi VAT number, using the invoice's own totals and the time it was issued. With no VAT number, or one that is not a Saudi number, there is no tax QR, because the code would claim a registration that does not exist. Simplified (B2C) invoices and the credit notes raised against them carry it as well.
- The time stamp is the moment the invoice was issued, recorded by BuzPulse when it was saved as final. An invoice issued before BuzPulse recorded that time prints without the tax QR rather than with a guessed one.
- Tag 1 carries the English business name unless the business profile marks the Arabic name as the one registered with ZATCA.
- Seller names longer than the 255-byte limit are shortened at a whole character rather than producing a broken code.
- The printed code is at least 2.5 cm square, black on white.
- Counter sales get the same five fields: the point of sale prints each sale by a seller with a Saudi VAT number as a simplified tax invoice carrying this QR, built from the receipt's total, its VAT and the time of the sale.
- It is a Phase 1 style QR. BuzPulse is not integrated with ZATCA's FATOORA platform and does not add the Phase 2 cryptographic stamp, so it is not a substitute for a Phase 2 compliant solution once your wave has started.
For everything else a Saudi tax invoice needs — the supply date, the buyer's VAT number when the buyer is registered, the commercial registration — see what to put on an invoice.
Frequently asked questions
Why does scanning the QR show random letters instead of a link?
The QR holds the five invoice values packed into binary TLV records and written as base64 text. Decoding the base64 and reading the records gives the seller name, VAT number, time stamp, total and VAT.
Why is there no QR code on my BuzPulse invoice?
The code is added only to an issued invoice whose seller VAT number is a valid Saudi VAT number (15 digits, starting and ending with 3), and whose issue time BuzPulse recorded. A draft has none yet; without a Saudi VAT number it would encode a registration that does not exist.
Is the BuzPulse QR code Phase 2 compliant?
No. It carries the five Phase 1 fields. Phase 2 requires invoices from a compliant solution integrated with ZATCA's FATOORA platform, with a cryptographic stamp that BuzPulse does not produce.
What is the maximum length of the seller name?
Each value can be up to 255 bytes. English letters take one byte each and Arabic letters usually two, so an Arabic name reaches the limit at about 127 letters.
Do amounts in the QR need two decimal places?
Write them with two decimals, as the invoice does — 1150.00 and 150.00 — so the values in the code match the printed totals exactly.
The tools behind this
Invoice Generator
Adds the five-field Phase 1 ZATCA QR when an invoice is issued with a Saudi VAT number, using the recorded issue time.
ZATCA QR Code Generator
Makes the five-field Phase 1 code on its own, free and in your browser.
ZATCA QR Code Scanner
Reads the five fields back from a photo, screenshot or PDF of any invoice and checks their format.
VAT / Tax Calculator
Check that net, VAT and total reconcile before the figures go into the code.
QR Code Generator
For every other QR you print — a link, Wi-Fi or contact card. ZATCA codes come from the invoice itself.
Was this guide helpful?
About the author
Naeem Ahmed builds and runs BuzPulse. These guides describe tools he has built, and they describe how those tools actually behave — including where they stop.
Corrections and questions: naeem@buzpulse.com
Read next
Simplified tax invoice vs tax invoice in Saudi Arabia: which one to issue
A simplified tax invoice is the short form: allowed for supplies under SAR 1,000 and for any sale to a consumer. Everything else needs a full tax invoice with the buyer’s details — and under e-invoicing the two travel to ZATCA differently.
What to put on an invoice: a field-by-field checklist
An invoice that is missing a field does not bounce — it sits in someone's accounts inbox until they get round to asking you about it. These are the fields, and the reasons each one is there.
How to make a bilingual Arabic and English invoice
A bilingual invoice is one document that two readers can check. The work is deciding which parts need both languages, and keeping every number identical on both sides.
Credit note vs debit note: how to correct an invoice you have already sent
Once an invoice has gone to the customer it is a record, not a draft. Corrections are made with a second document that points back to it, and which one you use depends on which way the amount moves.
ZATCA e-invoicing Phase 2 waves: how to know if your business is in one
ZATCA brings businesses into Phase 2 in waves, each chosen by VAT-subject revenue and notified directly. Wave 25 covers revenue above SAR 187,500 in 2022–2025, with integration due by 1 February 2027.
Static vs dynamic QR codes: choose before you print
Choose a static QR code when the final content is ready to print. Choose a provider-managed dynamic code only when you need the destination to change later; BuzPulse makes static codes only.
ZATCA e-invoicing violations and fines: what each one costs
ZATCA’s reclassification decision starts every field violation with a notice and escalates to fines of 1,000, 5,000, 10,000 and then 40,000 SAR if the same violation repeats. Six of the listed violations are about e-invoices.