ZATCA E-Invoice QR Code Generator and Decoder (TLV, Base64)
Build a ZATCA QR code from the five invoice fields, or paste or scan a code to decode and check it, one at a time or in a batch.
आपके ब्राउज़र में चलता है। आपकी फ़ाइलें कभी आपके डिवाइस से बाहर नहीं जातीं। जाँचने का तरीका देखें
…
कैसे करें
- 1मोड चुनें
बनाना, डिकोड करना या बैच चुनें.
- 2फ़ील्ड दर्ज करें
सृजन मोड में, पांच फ़ील्ड टाइप करें या VAT के लिए 15 प्रतिशत बटन का प्रयोग करें.
- 3चिपकाना या स्कैन करना
डिकोड मोड में, base64 पेस्ट करें या QR की एक तस्वीर लोड करें.
- 4प्रश्नों की जाँच करें
चेतावनी और टैग तालिका पढ़ें।
- 5बैचों में काम
कई पंक्तियाँ चिपकाएं और परिणाम CSV के रूप में डाउनलोड करें.
- 6QR निर्यात करें
base64 की प्रतिलिपि बनाएँ या QR को SVG या PNG के रूप में डाउनलोड करें.
इस टूल के बारे में
Every Saudi e-invoice carries a QR code. In the format set by ZATCA, the code holds a series of tag-length-value records: tag 1 is the seller name, tag 2 the VAT registration number, tag 3 the time stamp, tag 4 the invoice total with VAT and tag 5 the VAT total, each stored as UTF-8 text after a tag byte and a length byte. The bytes are then encoded as base64, and that text is what the QR shows. This tool does the job in both directions: it creates the base64 and the QR image from the fields, and it decodes a pasted code or a photo of a QR, lists the records and checks them for common mistakes.
Who this is for
Developers who build or test invoice systems, accountants who review invoices from suppliers, shop owners who want to know what their point-of-sale prints, and auditors who check a batch of receipts.
Creating a code
Type the seller name, which can be Arabic, the VAT number, the date and time and the two totals. The tool writes the time of supply as an ISO 8601 date and time, such as 2026-10-28T14:30:00, and the QR updates as you type. A button fills in the VAT from the total at 15 percent. You can copy the base64 or download the QR as SVG or PNG to place it on a document.
Decoding and checking
Paste the base64 text, or load a photo or screenshot of the QR and the tool reads it in your browser. The table lists every tag, its meaning, its length in bytes and its value. The checks look for missing tags, a VAT number that is not 15 digits starting and ending with 3, a time stamp that is not a valid date, totals that are not numbers and a VAT total larger than the invoice total. Codes from phase 2 invoices also contain tags 6 to 9, the hash, the signature, the public key and ZATCA's stamp, which the tool shows in short form.
Batch mode
Paste many lines at once. A line with five comma-separated values, in the order seller, VAT number, time, total and VAT, is encoded. A line with a long base64 text is decoded. The results table shows each line's status, and you can show any code as a QR, copy all the codes or download a CSV for a spreadsheet.
Why the length is in bytes
Arabic letters take two bytes each in UTF-8, so a seller name of 10 Arabic letters has a length of 20. A common bug in home-made systems is to write the number of characters instead of bytes, which breaks the code for Arabic names. The decoder shows the byte length so you can spot it.
What this does not do
The tool cannot create the cryptographic stamp of phase 2, which only a certified e-invoicing solution connected to ZATCA can produce, and it does not tell you whether an invoice was reported to ZATCA. It checks the format only.
Worked example
Seller "Example Trading Est.", VAT number 310122393500003, time 2026-10-28T14:30:00, total 1150.00 and VAT 150.00 give a base64 code of about 120 characters. Decoding it lists the five tags with lengths of 20, 15, 19, 7 and 6 bytes.
Limits
A format helper only, not an official ZATCA validator or tax advice.
एक उदाहरण
1,150 रियाल के एक चालान के लिए पांच चरण 1 टैगों वाला कोड जिसमें 20, 15, 19, 7 और 6 बाइट्स के टैग में 150 रियाल का VAT डिकोड है।
मुख्य बातें
- श्रेणी: डेवलपर और डेटा
- आपके ब्राउज़र में चलता है, साइन-अप नहीं, अपलोड नहीं।
- आपका इनपुट आपके डिवाइस पर ही रहता है।
- अंग्रेज़ी में उपलब्ध।
- सामग्री की आख़िरी समीक्षा:
- आधिकारिक स्रोत: ZATCA, e-invoicing QR code specification (TLV, base64)
अक्सर पूछे जाने वाले सवाल
ZATCA QR किस प्रारूप का उपयोग करता है?
UTF-8 में टैग-लंबाई-मूल्य रिकॉर्ड, बेस64 के रूप में एन्कोड किया गया।
चरण 1 कोड में कौन से क्षेत्र हैं?
Seller name, VAT number, time stamp, total with VAT and VAT total.
क्या मैं एक फोटो से QR कोडेशन डिकोड कर सकता हूँ?
हाँ. एक छवि लोड करें और उपकरण आपके ब्राउज़र में कोड पढ़ता है।
मेरा अरबी विक्रेता नाम कोड क्यों तोड़ता है?
लंबाई बाइट्स में होनी चाहिए, और अरबी अक्षर UTF-8 में दो-दो बाइट का उपयोग करते हैं।
यह चरण 2 कोड बना सकते हैं?
नहीं, क्रिप्टोग्राफिक टिकट को प्रमाणित ई-फॉक्सिंग समाधान की आवश्यकता होती है।
क्या कुछ अपलोड किया गया है?
नहीं, एन्कोडिंग, डिकोडिंग और छवि पढ़ने का काम आपके ब्राउज़र में होता है।
