ZATCA E-Invoice QR Code Generator

Create a Base64 TLV QR payload using the five core fields required for Phase 1 simplified e-invoice QR codes.

Invoice and seller information

Enter the seller's name as registered for tax purposes.
Enter the 15-digit Saudi VAT registration number.
Enter the actual invoice issue date and time. The generated value uses an ISO-style local timestamp without an invented timezone.

QR Code Preview

Your generated invoice QR code will appear here.

Complete the invoice details and select Generate QR Code.
No QR code generated

Generated Base64 TLV payload

Seller name (Tag 1)
VAT number (Tag 2)
Invoice timestamp (Tag 3)
Invoice total with VAT (Tag 4)
VAT total (Tag 5)
Payload length
The payload has been assembled using the five-field TLV structure and UTF-8 byte lengths, then encoded in Base64. The QR graphic represents this encoded payload.
This is a five-field Phase 1-style QR generator. It does not create the cryptographic hash, digital signature, public key or certificate signature required for applicable Phase 2 invoices. Do not use this generated code as a replacement for your certified e-invoicing solution's QR output.

How this is calculated

ZATCA's technical guide specifies the TLV structure and UTF-8 byte-length method.

Frequently asked questions

What is a ZATCA QR code?

It is a QR code containing essential electronic invoice information encoded using TLV and Base64. It helps customers and authorities read key invoice details by scanning the code.

What information is included in a ZATCA QR code?

The five core fields are seller name, VAT registration number, invoice date and time, total including VAT, and VAT amount.

Is the ZATCA QR code mandatory?

A QR code is mandatory on simplified tax invoices under Phase 1 requirements. ZATCA's preparation guidance identifies it as a required element for simplified invoices.

Can this generator create a Phase 2 QR code?

No. Phase 2 requires additional cryptographic information generated through the properly configured e-invoicing solution. This tool only creates the five-field payload.

What is TLV encoding?

TLV stands for Tag, Length and Value. Each field is assigned a tag, followed by its UTF-8 byte length and its actual value.

Can I use this QR code as official ZATCA approval?

No. Generating a QR code does not mean an invoice has been cleared, reported or approved by ZATCA. Use your compliant e-invoicing solution for actual invoice issuance.