ZATCA invoice QR code generator

Enter the seller name, VAT number, invoice time, total and VAT, and we make the phase-1 code in ZATCA’s format (TLV encoded as Base64). For phase 1 and testing only.

For phase 1 and testing only. It doesn’t replace an approved e-invoicing system: businesses in phase 2 (integration) must have their system issue the code with an electronic signature.

Example A sample code that opens this page. Type your details and your own code replaces it.

More formats and sizes

SVG is for designers and print shops because it stays sharp at any size. PDF is an A4 page ready to print.

Print it at least 2×2 cm. The further away people scan, the bigger it should be: about 1 cm for every 10 cm of distance.

Code won’t scan?
  • Keep the code dark and the background light, never the other way round.
  • Use a smaller logo or none, or choose “Squares” for the dots.
  • Shorten the content; a long link makes the code dense.
  • Print it at least 2×2 cm with white space around it.
  • Test it with two different phones before printing.
Frame and text
Frame and text
Colours and shape
Dots
Corners
Logo

The code is made in your browser. We don’t store what you type, and the code never passes through our servers.

How do I make a ZATCA invoice QR code?

  1. Enter the seller name, VAT number and invoice time.
  2. Enter the total including VAT, and tap “Work out 15% VAT” if you like.
  3. Download the code and put it on the invoice.

Examples in Saudi and Egyptian formats

Invoice time in Riyadh → as written in the code (UTC)
2026-10-20 14:30 → 2026-10-20T11:30:00Z
Code text for an invoice from “مقهى الندى”, VAT number 300000000000003, total 115.00, VAT 15.00
ARPZhdmC2YfZiSDYp9mE2YbYr9mJAg8zMDAwMDAwMDAwMDAwMDMDFDIwMjYtMTAtMjBUMTE6MzA6MDBaBAYxMTUuMDAFBTE1LjAw

What’s inside the code?

Five fields in ZATCA’s order: (1) seller name, (2) VAT number, (3) invoice time, (4) total including VAT, (5) VAT amount. Each is written as tag, length and value (TLV), and the whole thing is turned into Base64 text. The time is converted to UTC in ISO 8601 format.

To check the result, read it with Read a QR code: it shows the fields and checks the VAT number and amount.

We don’t store invoice details; the code is made in your browser.

FAQ

Is this code enough for my invoices?

It suits phase 1 (generation) and testing. If your business is in phase 2, the code must come from an approved e-invoicing system connected to ZATCA, because it carries an electronic signature we can’t create.

Why must the VAT number start and end with 3?

That’s the format of Saudi VAT registration numbers: 15 digits, the first and last being 3.

The VAT isn’t 15% of the total. Is that wrong?

Not necessarily. Exempt or zero-rated items make the VAT lower. We warn you but don’t stop you.

What do I see when I scan it with a phone camera?

A long string of letters and digits (Base64). That’s normal: the data is TLV-encoded. To read it field by field use Read a QR code or ZATCA’s app.

Why is the time in the code three hours off?

The format asks for UTC, and Saudi Arabia is three hours ahead: 14:30 in Riyadh is written as 11:30Z. It’s the same moment.

Can the seller name be in Arabic?

Yes. We write it as UTF-8 as the format requires, and read the code back after making it to check.

Does an invoice QR code expire?

No. The invoice data is written inside the code and isn’t tied to any server. See static vs dynamic QR codes.