Urdu OCR: Image to Urdu Text

Read the Urdu text in a picture, screenshot or scanned PDF, correct it, and copy it or save it as a Word file. Images are read by an AI reader that handles Nastaliq well, or on your own device if you prefer.

1 Choose an image or scanned PDF

Scanned PDF?

Reads Naskh and Nastaliq. Images are read by an AI reader, which handles Nastaliq poetry, books and newspapers best. If it is busy, your device reads the image instead. Scanned PDFs are always read on your device. Check names and rare words either way.

Images go to the AI reader and are not stored by us. Choose “on my device only” to keep them on your device. Check spelling of the result

Quick answer

How do I get Urdu text from an image?

Choose or paste an image, screenshot or scanned PDF in the Urdu OCR tool above. Images are read by an AI reader that handles Nastaliq poetry, books and newspapers well; if it is busy, or you choose on-device reading, your browser reads the image instead. The text appears as editable Unicode Urdu that you can copy or save as a Word or text file.

  1. Add the image Choose a JPG, PNG or WebP image (on a phone, the button opens your gallery), or a scanned PDF with the link below the box. On a computer you can also drop a file or paste a screenshot with Ctrl+V.
  2. Wait for the reading Images go to the AI reader, which usually answers in 10 to 30 seconds. If it takes longer, your device starts reading too, and you can use its result without waiting. Scanned PDFs are read on your device: the OCR engine downloads once (about 2 MB, plus about 10 MB for Nastaliq).
  3. Correct the text Compare the result in box 2 with the image and fix any mistakes. The box is fully editable.
  4. Copy or save Copy the Urdu, or download it as a Word file or a plain text file.

How this tool reads Naskh and Nastaliq

This tool has three readers:

  1. 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.
  2. 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.
  3. 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:

Before: Tesseract alone

کستان کا وارالکومت اسلا مآباد ہے۔ یہ شہرایس سو سا ھکی دبئی میں بسایاگیا تھا۔

On the device: the Nastaliq reader

پاکستان کا دارالحکومت اسلام آباد ہے۔ یہ شہر انیس سو ساٹھ کی دہائی یں بسایا گیا تھا۔

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.

Frequently asked questions

How accurate is this Urdu OCR?
On 30 test images with known text, the AI reader got about 97 letters in 100 and 9 words in 10 right, against about 93 letters and 3 words in 4 for the on-device readers on the same images. On poetry images made with our poetry tool it got about 99 letters in 100 right. Clear Naskh text is read almost perfectly either way. Always check names and rare words.
Why is Nastaliq so much harder to read?
Nastaliq letters slope down from right to left, overlap each other and change shape a great deal, and words do not sit on one straight line. Small OCR engines, like the ones that run in a browser, were trained mostly on straight-line Naskh fonts and make many mistakes on it. Large AI models, which have seen far more Urdu, read it much better, which is why images go to the AI reader first.
Are my images uploaded?
Images are sent to the AI reader, unless you switch on “Read on my device only”. The image goes through our server to OpenRouter and an AI model provider whose stated policy is not to store it or train on it; we do not store it either. With on-device reading switched on, and for every scanned PDF, nothing leaves your device.
Can it read a scanned PDF?
Yes. Each page of the PDF is rendered on your device and then read, up to 50 pages at a time. If your PDF has selectable text rather than scanned pages, the Urdu PDF to Word converter is faster and exact.
How do I get the best results?
Use a sharp, straight image with dark text on a light background, crop it to the text, and make sure the letters are not tiny: a phone photo held flat over the page in good light works well. Screenshots of Urdu on a screen work best of all.
Does it read handwriting or English?
It is made and tested for printed Urdu; handwriting was not tested and is not supported. The AI reader reads English words inside Urdu text well. The on-device readers do not: English inside plain Naskh text usually comes out wrong there.

Last updated Images are read by an AI reader and not stored (details) Report a problem with this tool