Skip to content
NewParallel Run is here.See how it works →
ZATCA QR tool

A free ZATCA QR tool: encode and decode the TLV payload

Build the Base64 TLV payload inside a ZATCA simplified tax invoice QR code from its five fields, or paste a payload and read the fields back. Arabic seller names are handled byte by byte.

A drawn invoice scene: five tagged fields packed into one encoded payload.
Five fields in, one Base64 payload out, and back again.

Every simplified tax invoice in Saudi Arabia carries a QR code, and inside it is a short Base64 string that is easy to get subtly wrong. The ZATCA QR tool builds that string from the five required fields, and reads any payload back so you can check what a printed code actually says.

TLV tags in every payload
5
for the tag, 1 byte for the length
1 byte
maximum UTF-8 bytes per value
255

The five tags

  • Tag 1. Seller name, the VAT-registered supplier. Arabic is supported.
  • Tag 2. The seller’s 15-digit VAT registration number.
  • Tag 3. The invoice timestamp in ISO 8601, for example 2026-01-15T14:30:00Z.
  • Tag 4. The invoice total including VAT.
  • Tag 5. The VAT total.

Bytes, not characters

Each record is one tag byte, one length byte, then the value. The length counts UTF-8 bytes, not characters, and an Arabic seller name takes two or more bytes per character. Counting characters produces a payload that looks right and decodes wrong. The encoder measures bytes, and keeps the records in tag order.

BeforeEncode
  • Five fields in
  • Byte lengths measured in UTF-8
  • A Base64 payload to copy
With RivaneDecode
  • A Base64 payload in
  • Every record read in order
  • Named fields back out
The two halves of the tool.

Decoding reports every record it reads, including unknown tags, and says plainly when a payload is truncated. Jemma is based in Riyadh and works across the IFRS, SOCPA and ZATCA frameworks, so this is a check Saudi finance teams reach for often.

The payload only: a separate QR encoder draws the square on the invoice.

The tool returns the payload, not a QR image, to avoid guessing image settings. It is an example aid: confirm field formats and the current QR requirement against the ZATCA specification before use.

Further reading

Questions

Does this produce a scannable QR code?

No. It produces the Base64 TLV payload that goes inside the QR code. A QR encoder turns that payload into the printed square.

Why does Arabic text change the length bytes?

The length is measured in UTF-8 bytes, and Arabic characters take two or more bytes each. The encoder counts bytes to keep each record valid.

What timestamp format should Tag 3 use?

ISO 8601 date and time, for example 2026-01-15T14:30:00Z. Match the format the ZATCA specification requires for your invoices.

Is my data sent anywhere?

No. Encoding and decoding run entirely in your browser.

Written byJemma EwinCEO & Co‑Founder · Global CFO

See Rivane on your own close

See the ledger, the close and reconciliation working together, and bring the questions that matter to your team.

Request a demo