What Is a ZATCA e-Invoice QR (Saudi) Barcode?
In Saudi Arabia, the Zakat, Tax and Customs Authority (ZATCA) requires a QR code on simplified tax invoices under its e-invoicing (Fatoorah) rules. The QR content is not plain text: it is a series of TLV (tag, length, value) fields encoded as Base64.
In Phase 1 the fields are seller name (tag 1), VAT registration number (tag 2), invoice date and time (tag 3), invoice total including VAT (tag 4) and VAT total (tag 5). In Phase 2, compliant e-invoicing solutions add further cryptographic fields that are generated by your invoicing software.
This tool does not build the TLV data or sign anything. It checks that your input is valid Base64 and draws the QR code. Generate the payload with your invoicing system, and confirm your obligations with ZATCA or a tax adviser.
What Data Can ZATCA e-Invoice QR (Saudi) Hold?
One Base64 string: letters A-Z and a-z, digits, + and /, with = padding at the end and a length that is a multiple of 4.
Recommended Size
Keep a quiet zone of 4 modules. Long Phase 2 payloads make dense codes, so print them large enough for a phone camera and test-scan the printed invoice.
Building the ZATCA TLV Payload
Each field is written as one tag byte, one length byte and the value in UTF-8, and all fields are joined before Base64 encoding. A typical Phase 1 set looks like this:
- Tag 1: seller name, for example in Arabic
- Tag 2: 15-digit VAT registration number
- Tag 3: invoice timestamp in ISO 8601 form, such as 2026-10-29T14:30:00Z
- Tag 4: invoice total with VAT, such as 1150.00
- Tag 5: VAT amount, such as 150.00
Common ZATCA QR Payload Mistakes
The most frequent error is using the character count instead of the byte count for the length. Arabic letters take two bytes each in UTF-8, so a seller name with 10 Arabic letters needs a length of 20. Another is Base64-encoding a hex string or readable text instead of the raw bytes.
In Phase 2 the QR code also carries the invoice hash, the digital signature and public key data from tags 6 onward, which only a compliant e-invoicing solution can produce.
How to Create a Barcode in 3 Steps
Choose a barcode type
Select a category on the left (e.g. Linear Codes), then the exact type like Code-128.
Enter data & customise
Type your data — we check it live and add check digits. Adjust size, font and colors.
Download or print
Get PNG, JPG, SVG, PDF or EPS, or print a full sheet of labels in one click.
Why Use QRCodeChamp Barcode Generator
125+ barcode types
Linear, 2D, GS1, postal, healthcare and payment codes.
Live validation
Friendly errors with one-click fixes and automatic check digits.
Print-ready PDF
Exact mm sizes, label sheets (Avery, A4, 4×6 thermal).
Bulk barcodes
Paste a list or generate number sequences.
Choose the Type of Barcode You Need
Not sure which barcode to use? Start with what you need it for — we’ll pick the right type.
ZATCA e-Invoice QR (Saudi) FAQs
No. The QR content must be the TLV data encoded in Base64, which your invoicing software should produce.
The QR code only carries the data you provide. Compliance depends on your invoicing solution and the payload, so check with ZATCA or your adviser.
Decode the Base64 and read the TLV fields: each starts with a tag byte and a length byte. ZATCA also offers validation tools.
Yes. Values are UTF-8, so Arabic works, but remember that the length byte counts bytes, not letters.
Scan it with ZATCA's official verification app, or decode the Base64 and read the TLV fields to confirm each value matches the invoice.
