How to Read Urdu Text From Images and Scans (Urdu OCR Tips)

Practical tips for getting accurate Urdu text out of photos, screenshots and scanned pages with free OCR, and how to fix common mistakes afterwards.

Urdu is one of the harder scripts for a computer to read. The letters connect, they change shape depending on where they appear in a word, and small dots above and below a letter decide which letter it is. Even so, you can get useful results from a free in-browser OCR tool if you give it a good picture and know what to check afterwards. This guide covers both.

What makes Urdu OCR tricky

The result is that you should expect good but not perfect output on a clean printed page, and a lot of cleaning on a poor photo.

Step by step: extract Urdu text

  1. Open Image to Text and drop in your JPG, PNG or WebP picture.
  2. In Select Language, choose Urdu. The first time you do this, the Urdu language data is downloaded and kept in your browser, so later runs start faster.
  3. If the photo is a little dark or low in contrast, turn on Auto-Enhance.
  4. Click Extract text and wait for the progress bar.
  5. Read the result in the text box, correct mistakes and then copy it or download it as a .txt file.

Get a better picture first

The quality of the input decides most of the output. Before you upload:

The guide to scanning with a phone camera covers these habits in more detail.

Mixed Urdu and English

An OCR run uses one language setting. If a page is mostly Urdu with a few English words, choose Urdu and fix the English words by hand. If it is half and half, such as a form, run it twice: once on a picture cropped to the Urdu parts and once on the English parts. Numbers can come out in either Eastern Arabic or Western digits, so check phone numbers and dates carefully.

What to proofread

After extraction, read the text against the original and look especially for:

Using the text afterwards

Paste the result into Word, Google Docs or a messaging app. Set the paragraph direction to right to left so punctuation lands on the correct side. To display Urdu in the familiar Nastaliq style, choose a Nastaliq font such as Jameel Noori Nastaleeq in your document; the OCR output itself is plain text and has no font.

When a PDF is the source

If the Urdu is in a PDF and copying it gives broken text, the problem is probably the way the PDF stores its fonts, not the language. Read why you cannot copy text from a PDF, then either run OCR directly in PDF to Text or convert the pages to images and use Image to Text.

Be realistic about limits

For a clean, printed, single-column page in a plain font, Urdu OCR can save you a lot of typing. For decorative calligraphy, old newsprint, faint photocopies and handwriting, treat the output as a rough first draft and be ready to type parts yourself. Your picture is processed in your browser and is not sent to any server.

Try it now: Image to Text (OCR)Free, no sign-up, and your files stay in your browser.
Open Image to Text (OCR)

Frequently asked questions

Can OCR read Urdu?

Yes. Image to Text includes Urdu as a recognition language. Accuracy depends heavily on the print style and the quality of the picture, and printed text is much easier than handwriting.

Why is Nastaliq harder than other Urdu fonts?

Nastaliq letters slope diagonally, overlap and change shape with their neighbours, so a line has no straight baseline. Many OCR engines find this harder than the flatter Naskh style often used on screens and in newspapers.

Can it read handwritten Urdu?

Not reliably. OCR is designed for printed text. Handwriting varies from person to person, and the result usually needs heavy correction.

My text mixes Urdu and English. What should I do?

Pick the language that makes up most of the text. For better results, crop the English and Urdu parts into separate pictures and run each one with its own language.

Keep reading