Ηλεκτρονικό γεννήτη και αποκωδικοποιητή κωδικών QR ZATCA (TLV, Base64)
Δημιουργήστε έναν κωδικό QR ZATCA από τα πέντε πεδία τιμολογίου ή επικολλήστε ή σαρώστε ένα κώδικα για να τον αποκωδικοποιήσετε και να τον ελέγξετε, έναν προς έναν ή σε παρτίδα.
Εκτελείται στο πρόγραμμα περιήγησής σας. Τα αρχεία σας δεν φεύγουν ποτέ από τη συσκευή. Δείτε πώς να το ελέγξετε
…
Πώς γίνεται
- 1Επιλέξτε μια λειτουργία
Επιλέξτε δημιουργία, αποκωδικοποίηση ή παρτίδα.
- 2Εισάγετε τα πεδία
In create mode, type the five fields, or use the 15 percent button for VAT.
- 3Παγίστωση ή σάρωση
Στην κατάσταση αποκωδικοποίησης, επικόλλησε το base64 ή φόρτωσε μια φωτογραφία του QR.
- 4Ελέγξτε τα θέματα
Διάβασε τις προειδοποιήσεις και τον πίνακα.
- 5Εργασία σε παρτίδες
Προσθέστε πολλές γραμμές και κατεβάστε τα αποτελέσματα ως CSV.
- 6Εξαγωγή QR
Αντίγραψε το 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.
Λυμένο παράδειγμα
A code with five phase 1 tags for an invoice of 1,150 riyals with 150 riyals VAT decodes to tags of 20, 15, 19, 7 and 6 bytes.
Με μια ματιά
- Κατηγορία: Προγραμματισμός & δεδομένα
- Εκτελείται στο πρόγραμμα περιήγησης, χωρίς εγγραφή, χωρίς μεταφόρτωση.
- Τα στοιχεία που εισάγετε μένουν στη συσκευή σας.
- Διαθέσιμο στα αγγλικά.
- Τελευταία αναθεώρηση περιεχομένου:
- Επίσημη πηγή: 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 από μια φωτογραφία;
Ναι, φορτώνεις μια εικόνα και το εργαλείο διαβάζει τον κώδικα στο πρόγραμμα περιήγησής σου.
Γιατί το αραβικό μου όνομα πουλάει σπάει τον κώδικα;
Το μήκος πρέπει να είναι σε bytes, και τα αραβικά γράμματα χρησιμοποιούν δύο byte το καθένα στο UTF-8.
Μπορεί να κάνει κώδικες φάσης 2;
Όχι, η κρυπτογραφική σφραγίδα χρειάζεται πιστοποιημένη λύση ηλεκτρονικού τιμολογίου.
Έχει ανεβαστεί τίποτα;
Η κρυπτογράφηση, η αποκωδικοποίηση και η ανάγνωση εικόνας συμβαίνουν όλα στο πρόγραμμα περιήγησης.
