Skip to content

ZATCA QR code explained: the nine TLV tags, Phase 1 vs Phase 2, and how to read one

It is not a link. A ZATCA QR is a base64 string of tag-length-value records that ties the printed invoice to its data — and, in Phase 2, to one signed XML file. Here is every tag.

12 September 2026 · 7 min read

Inside a ZATCA QR code: a TLV byte strip (tag, length, value) and the nine tags — five from Phase 1 and four added in Phase 2
One base64 string, nine possible records: tags 1–5 since Phase 1, tags 6–9 since Phase 2.

FAQ

Questions about this topic

What is inside a ZATCA QR code?

A base64 string of TLV records: seller name (tag 1), VAT number (2), timestamp (3), total with VAT (4) and VAT total (5) since Phase 1, plus the XML hash (6), ECDSA signature (7), public key (8) and, on simplified invoices, ZATCA's signature of the public key (9) since Phase 2.

Why does the ZATCA QR code not open a website?

Because it is not a link. It encodes the invoice's key values and, in Phase 2, its cryptographic proof, so an inspector or customer can compare them with the printed invoice. A scanner shows the raw base64 text, usually beginning with 'AQ'.

Is the QR code required on standard tax invoices?

It was optional in Phase 1. In Phase 2 it is required on all invoice types: the invoicing system generates it for simplified invoices, and for standard invoices ZATCA generates it when the invoice is cleared.

How long can a ZATCA QR code be?

ZATCA's Security Features Implementation Standard version 1.2 allows up to 700 characters of base64. Earlier Phase 1 material gave 500 characters, which is why both figures circulate. Each individual value is also limited to 255 bytes by the single length byte.

Can a decoder tell me if the invoice was reported to ZATCA?

No. A decoder shows the structure and can check formats, but it cannot verify the ECDSA signature against ZATCA's certificate or confirm that the invoice was cleared or reported. Only ZATCA's platform can confirm that.

Start running your business on AmalERP

7-day free trial, no credit card required. Be live the same day.

No credit card required · 200+ businesses across the Gulf and beyond.