How this tool reads Naskh and Nastaliq
This tool has three readers:
- The AI reader gets every image first. It is a large AI vision model (Gemma 4, an open model from Google), reached through OpenRouter, and it reads both Naskh and Nastaliq, including decorative poetry designs. The free version is often busy; then the page reads the image on your device instead, and the notice under the result always tells you which reader answered.
- Tesseract, the free, open-source OCR engine with its official Urdu model, runs inside your browser. It reads scanned PDFs, and images when the AI reader is busy or you switched on “Read on my device only”. It is excellent on Naskh-style Urdu but was trained almost only on Naskh fonts.
- When Tesseract is unsure, which is what happens with Nastaliq, the Nastaliq reader reads the image again, also in your browser: a text-line model by Benjamin Kiessling trained on real printed Urdu books.
On the device, pages with text columns, like newspapers, are read column by column, right to left.
| Kind of image | Letters right: AI reader | Letters right: on the device |
|---|---|---|
| Poetry images made with our poetry tool (9) | About 99 in 100 | About 89 in 100 |
| All Nastaliq test images (22) | About 96.5 in 100 | About 92 in 100 |
| Newspaper and book pages in Nastaliq (4) | About 95 in 100 | About 91 in 100 |
| Naskh style, all test images (8) | About 98.5 in 100 | About 97 in 100 |
| Urdu mixed with English (2) | About 98.5 in 100 | About 83 in 100 |
These figures come from our own test set of images with known text: Naskh and Nastaliq prose, poetry by Ghalib, Mir and Iqbal, newspaper columns, book pages, small, blurred and noisy scans, punctuation, numbers and mixed Urdu and English, plus poetry images made with our poetry image tool. The on-device readers were measured on 66 images; the AI reader on 30 of them, compared letter by letter with the original. Whole words matter too: the AI reader got 9 words in 10 fully right, the on-device readers about 3 in 4. On small, low-resolution images the on-device readers were sometimes slightly better. Real photos with shadows or curved pages will score lower. How OCR works, why Nastaliq is harder than Naskh and how to photograph a page for the best result are covered in how to convert an Urdu image to text.
Example: the same sentence in Naskh and in Nastaliq
A screenshot of this sentence in a Naskh-style font:
پاکستان کا دارالحکومت اسلام آباد ہے۔ یہ شہر انیس سو ساٹھ کی دہائی میں بسایا گیا تھا۔
is read back exactly, letter for letter. The same sentence set in Noto Nastaliq Urdu used to come back badly broken from the on-device reader; with the Nastaliq reader, which takes over when the AI reader is off or busy, it gets all but one letter:
کستان کا وارالکومت اسلا مآباد ہے۔ یہ شہرایس سو سا ھکی دبئی میں بسایاگیا تھا۔
پاکستان کا دارالحکومت اسلام آباد ہے۔ یہ شہر انیس سو ساٹھ کی دہائی یں بسایا گیا تھا۔
Only the word میں lost its first letter. Smaller Nastaliq text, decorative fonts and busy backgrounds give more mistakes like this, so read the result against the image before you use it.
When OCR gives poor or no results
The result is mostly wrong
First look at the notice under the result. If it says the image was read on your device, the AI reader was busy: try again in a few minutes. Otherwise the image is probably small, blurred, skewed or written in a decorative style. Crop to the text, make sure it is straight and large enough (letters at least 25 pixels tall), and try again. For a short couplet, typing it with our phonetic Urdu keyboard may be faster.
Words are joined or split in odd places
This is the most common OCR error in Urdu, because spaces between Urdu words are small. Fix them in box 2, then run the text through the Urdu Spell Checker to catch the rest.
My PDF has real text, not a scan
Use Urdu PDF to Word instead: it takes the text out of the PDF directly, without OCR, so there are no reading errors.
Nothing happens on an old phone
Reading on the device needs a modern browser with WebAssembly and some free memory. Try a current version of Chrome, Edge, Firefox or Safari, and close other tabs. The AI reader does not depend on your phone’s speed, so leave “Read on my device only” off on an old phone. Nastaliq pages take longer on phones, because each line is read separately; the progress line under the file name counts the lines.
Where your images go
An image you read with the AI reader is reduced to at most 2,000 pixels a side and sent through our server to OpenRouter, which passes it to the AI model’s provider and returns the text. We ask for providers whose stated policy is not to store the data or train on it, and our server does not store or log the image or the text. Neither OpenRouter nor the provider sees your IP address. Details are in the privacy policy.
For private documents, such as identity cards, legal papers or personal letters, switch on “Read on my device only”. The image is then read entirely in your browser and never uploaded, at the cost of more mistakes in Nastaliq. Scanned PDFs are always read this way.
To understand the text you have read out, paste it into the Urdu to English translator.