ZATCA QR Code Scanner and Decoder

Read the Base64 inside a Saudi e-invoice QR code: seller, VAT number, time, total and VAT, with the checks that catch a mismatched invoice.

Set up for ZATCA codes: read a Saudi e-invoice

Scan the QR code on a simplified tax invoice or receipt, or paste its Base64 text into the box below. The result shows the seller, VAT number, time, total and VAT, and whether it's a Phase 1 or Phase 2 code.

  1. Scan the code on the invoice, or paste the Base64 text and press Decode text.
  2. Compare the seller, total and VAT with the printed invoice: they must match.
  3. Check the VAT registration number: 15 digits, starting and ending with 3.
Made-up example data, decoded on this page.

Opens the rear camera on a phone. The video stays on your device.

Drop an image with a QR code or barcodeChoose a photo or screenshot with a codeor click to choose, or paste a screenshot with Ctrl+V (⌘V on a Mac)Tap to pick from your photos or files · PNG, JPEG, WebP, GIF, AVIF, BMP
Or decode the text of a code

What the code contains

ZATCA’s Security Features Implementation Standards (version 1.2, May 2023) define the code: each field is a one-byte tag, a one-byte length and the value in UTF-8, all joined and encoded in Base64, at most 700 characters. The seller’s name is often in Arabic, so decoding it by hand with a Base64 tool gives unreadable bytes; the scanner decodes the UTF-8 and shows the name as written.

Checks the page runs

  • VAT number: the XML Implementation Standard’s rules require 15 digits, the first and last being 3.
  • VAT rate: the VAT divided by the amount before VAT; 15% is the standard rate from 1 July 2020 under the VAT Implementing Regulations.
  • Timestamp: it must be a valid ISO 8601 date and time.
  • Phase: tags 6 to 9 present means a Phase 2 code with a cryptographic stamp.

When the code and the invoice disagree

A QR code that shows a different seller, total or VAT from the paper invoice is a sign of an altered or reused invoice. Ask the seller for a corrected invoice before you use it for your records or a VAT claim. For a batch of receipts, scan them one after another: the list under the results keeps every code, and Export CSV saves them all for a spreadsheet.

QR Code ScannerSomeone shared their result

Suggested