# Why AI still can't read a stamped Arabic invoice

> AI can pass bar exams, but hand it a scanned Arabic invoice with a blue company stamp across the total and it often stumbles or, worse, invents a number. Here's what makes these documents so hard, and how businesses get reliable results anyway.

By Ibrahim Abdullah · Published 2026-11-21T17:48:53+03:00 · [TodayAI](https://todayai.tech/articles/why-ai-cant-read-stamped-arabic-invoice)

## Quick read

Stamped Arabic invoices combine almost everything AI document readers find hard: joined-up script where a single dot changes the letter, right-to-left text mixed with left-to-right numbers, two different digit systems, and ink stamps printed right over the important fields. Modern AI models often guess instead of admitting they can't read something, which is the real danger in finance.

- Arabic letters change shape depending on their position, and many differ only by the number or position of dots, which stamps and poor scans easily hide.
- Invoices mix Arabic text, Latin product codes and both Eastern Arabic (٣٤٥) and Western (345) digits, often in the same line.
- Stamps and signatures are placed on top of totals and VAT numbers on purpose, so the most important text is the most obscured.
- The fix is not one smarter model. It's cleaner capture, checks on the numbers, and a person reviewing anything the system isn't sure of.

**What should I do?** If your team uses AI to process Arabic invoices, add automatic checks (line items must add up to the total, VAT numbers must have the right format) and send every low-confidence field to a person instead of trusting the output.

Ask a modern AI model to summarise a 200-page contract, write a Python script or explain a medical paper and it will usually do a decent job. Hand it a phone photo of an invoice from a supplier in Riyadh, Cairo or Algiers, with a round blue company stamp pressed across the bottom corner, and things often fall apart.

Sometimes the model says it can't read the document. More often, and more dangerously, it returns a clean, confident table with a VAT number that is one digit off and a total that doesn't match anything on the page.

This is one of the least glamorous problems in AI, and one of the most expensive. Across the Gulf, North Africa and the Levant, invoices, delivery notes, customs forms and bank letters are still printed, signed, stamped, scanned and emailed every day. Here's why they are so hard for machines to read, and what actually works.

## 1. Arabic letters are joined, and dots do a lot of work

Arabic is written in a cursive script. Most letters join to the next one, and each letter can take up to four shapes depending on whether it stands alone or sits at the start, middle or end of a word. A system can't simply cut the line into separate characters the way it can with printed English.

On top of that, many Arabic letters share exactly the same base shape and are told apart only by dots. The letters ب (b), ت (t), ث (th), ن (n) and ي (y) can look identical in the middle of a word except for one, two or three dots above or below the line. Lose a dot to a faint print, a fold in the paper or a smudge of stamp ink and the word changes. In a supplier name, that's an annoyance. In an account number or a product code written in Arabic, it's an error.

Printed invoices also use many different fonts, some very decorative, and often mix them with handwritten notes like "تم الاستلام" ("received") scribbled by a warehouse clerk.

## 2. The stamp sits on the most important part of the page

In much of the Arab world, a document isn't considered official until it carries the company stamp, usually a round or oval rubber stamp in blue or purple ink, and often a signature over it. Where does it go? Next to the total, across the signature line, or right over the tax registration number, precisely because those are the fields the stamp is meant to certify.

For a person, reading through a stamp is easy: our eyes separate the blue ink from the black print almost automatically. For software, the stamp is a second layer of text written on top of the first. Many stamps also contain their own curved Arabic writing around the edge, the company name, the city, sometimes a commercial registration number, so the system now has two sets of numbers on top of each other and has to decide which one is the invoice total.

Older optical character recognition (OCR) tools tend to give up or produce noise. Newer vision language models, the kind built into chatbots, are better at "seeing through" the stamp, but they bring a new problem, covered below.

## 3. Right-to-left text, left-to-right numbers

Arabic is read right to left. Numbers, product codes, email addresses, IBANs and English brand names inside an Arabic sentence are read left to right. A single invoice line might read: the item description in Arabic from the right, a part number in Latin letters, a quantity, a unit price and a line total.

This "bidirectional" text trips up AI systems in quiet ways. Columns in a table get flipped, so the quantity ends up labelled as the price. Characters inside a code come out in reverse order. A negative sign or a currency symbol attaches to the wrong number. None of these errors look obviously wrong in the output, which is exactly what makes them dangerous.

## 4. Two sets of digits, sometimes on the same page

Many Arabic documents use **Eastern Arabic numerals**, ٠١٢٣٤٥٦٧٨٩, rather than the Western 0123456789 used in English. Plenty of invoices use both: Western digits in the printed table and Eastern digits in the handwritten date or the stamp. Persian and Urdu documents use a slightly different set again, where 4, 5 and 6 are drawn differently (۴, ۵, ۶).

Some of these shapes are easy to confuse with Western ones. The Eastern Arabic ٥ (5) looks like a small circle, close to a zero, and the Eastern ٠ (0) is just a dot. Separators differ too: Arabic has its own decimal mark (٫) and thousands separator (٬), which can be mistaken for commas or stray marks on a dirty scan. Turning 1,250.50 into 125,050 is a very expensive misreading.

## 5. Phone photos, faxes and photocopies of photocopies

A lot of the documents that reach finance teams are not clean PDFs. They are phone photos taken at an angle on a warehouse counter, faxes, or scans of documents that were already photocopied twice. Every generation of copying thickens some strokes and erases others, and the tiny dots that distinguish Arabic letters are the first thing to disappear.

Lighting matters too: a shadow across the bottom of the page often lands on the totals, the stamp and the signature at once.

## 6. There's far less Arabic document data to learn from

AI document readers learn from huge collections of labelled examples. There is vastly more labelled English material, receipts, forms, scanned books, than Arabic, and even less for messy, real-world Arabic business documents, which companies are understandably unwilling to share because they are full of confidential prices and customer details.

Researchers have started building dedicated test sets to measure the gap. KITAB-Bench, an Arabic OCR and document understanding benchmark released in 2025 by researchers at the Mohamed bin Zayed University of Artificial Intelligence (MBZUAI), was created precisely because general-purpose models were not being properly tested on Arabic documents, tables and charts. The broad finding of this kind of work is consistent: models that look excellent on English documents lose a lot of accuracy on Arabic ones, especially on tables and degraded scans.

## 7. Modern AI guesses instead of saying "I can't read this"

This is the most important point for anyone using these tools at work.

Traditional OCR fails loudly: you get garbled characters and know something went wrong. Vision language models fail quietly. Because they are trained to produce fluent, plausible output, a model that can't make out a smudged digit under a stamp will often fill it in with something that *looks* right: a VAT number with the right number of digits, a total that is a round, believable figure, a date in the right format.

The output looks perfect. That's the problem. A system that is 95% accurate but never tells you which 5% is wrong can be worse than one that is 85% accurate and flags its uncertain fields, because nobody checks the confident one.

## So what actually works?

Teams that process large volumes of Arabic invoices reliably don't rely on a single smarter model. They combine a few boring but effective steps.

**Start with e-invoices where you can.** The best invoice to read is one that never needed reading. Saudi Arabia's tax authority, ZATCA, has required electronic invoicing (known as FATOORA) since December 2021, with businesses brought into the second, integrated phase in waves since 2023. Simplified tax invoices there carry a QR code holding the seller's name, VAT number, timestamp, total and VAT amount. If a document has a machine-readable QR code or structured e-invoice file, read that first and use the image only as a fallback. Other countries in the region are moving the same way.

**Improve the capture.** Ask suppliers for original PDFs instead of scans. If staff photograph documents, use an app that flattens the page, corrects the angle and checks for blur before upload. Higher resolution helps preserve the dots.

**Separate the stamp from the text.** Because stamps are usually a different colour from the printed text, image processing can often fade the blue or purple layer before the text is read, and read the stamp separately to confirm the company name.

**Check the numbers against each other.** Line items should add up to the subtotal; subtotal plus VAT should equal the total; the VAT rate should match the country's rate. Saudi VAT registration numbers, for example, are 15 digits long and begin and end with 3. Simple rules like these catch a large share of misreadings automatically.

**Normalise digits.** Convert all Eastern Arabic and Persian digits to one format and handle Arabic decimal and thousands separators explicitly before any number is stored.

**Ask for confidence, and use it.** Configure the system to return a confidence level for each field, and send anything below a threshold, plus any field that fails a check, to a person. Most teams find that a human only needs to look at a small share of fields, as long as the system is honest about which ones.

**Test on your own documents.** A model's results on a public benchmark tell you little about how it handles your suppliers, your stamps and your scanners. Before buying a tool, run a few hundred of your real invoices through it, and count not just how many it got right but how many wrong answers it delivered with full confidence.

## The bottom line

AI is getting better at Arabic documents quickly, and for clean, printed pages the results are already good. But a stamped, scanned Arabic invoice is close to a worst case: joined-up script where one dot changes a letter, two directions of text, two digit systems, and an ink stamp deliberately placed over the numbers that matter most.

The answer, for now, isn't to trust the model or to give up on it. It's to treat AI as a fast first reader and to build the checks around it that catch the guesses. If you want to get better results from AI tools more generally, our guide to [prompt engineering with before-and-after examples](/articles/prompt-engineering-10-before-after-examples) is a good next step, and you can find more practical guides in [AI at work](/news/ai-at-work).

Source: https://todayai.tech/articles/why-ai-cant-read-stamped-arabic-invoice
