1. Home
  2. Blog
  3. Convert

How to extract text from a scanned PDF, including Arabic (free OCR)

SEditorial team·Updated: ·5 min read
Quick answer

To extract text from a scanned PDF for free, upload it to Google Drive, right-click it and choose Open with > Google Docs; the recognised text appears below an image of each page. Files must be 2 MB or less, so split bigger scans into parts. On a phone use Google Lens, because iPhone Live Text does not list Arabic among its supported languages.

You have an old contract run through a scanner, a book page photographed on your phone, or a certificate saved as a PDF, and you want to copy a paragraph into an email or a report. But you can't select a single word. The file is a picture, so you need a program to recognise the letters in it (OCR). Arabic is harder than English here, yet free tools do a good job if you prepare the file well.

Is your PDF scanned?

Try to select a word or search with Ctrl+F. If nothing gets selected, the file is scanned and needs OCR.

If the text can be selected but copies as broken or reversed Arabic, that's a different problem covered in Arabic PDF to Word, although the method below helps in both cases.

Method 1: Google Drive and Google Docs (best for Arabic)

The best free method on a computer is to open the file in Google Docs from Google Drive, which recognises the text automatically.

  1. Open Google Drive in a desktop browser and upload the PDF or image.
  2. Right-click the file.
  3. Choose Open with > Google Docs.
  4. A new document opens with the page image at the top and the extracted text beneath it.
  5. Copy the text, or download it with File > Download > Microsoft Word (.docx) or Plain text (.txt).

Google's help page says Drive accepts PDFs and JPEG, PNG and GIF images of 2 MB or less and detects the language automatically from about 200 languages. Bold, italics, font size and line breaks usually survive; lists, tables, columns and footnotes usually don't.

Split PDFFree, no sign-up, and the file never leaves your device.
Use the tool

If the file is bigger than 2 MB

Scans are often large. Split them into smaller parts rather than compressing hard, since heavy compression blurs the letters.

  1. Open Split PDF and click "Select PDF file".
  2. Choose "Every N pages" with a small number such as 3 or 5, or "Custom ranges" such as 1-4, 5-8.
  3. Click "Split PDF", download the ZIP and extract it.
  4. Upload each part to Google Drive and open it with Google Docs.

For a single page, choose "Extract pages" and click its thumbnail. If one page is still over 2 MB, turn it into a JPG at medium (150 DPI) quality with PDF to JPG and upload the image.

Method 2: Google Lens on Android

On Android, Google Lens pulls text from a photo or a screenshot of a PDF page, and it reads Arabic script.

  1. Open the PDF page on screen and take a screenshot, or photograph the paper.
  2. Open the image in Google Photos and tap Lens, or open the Google Lens app and pick the image.
  3. Tap Text, and Lens highlights the words.
  4. Select what you need and tap Copy text.

If you're signed in to Chrome on your computer with the same account, a Copy to computer option may also appear.

Method 3: on iPhone

Live Text on iPhone is excellent for English, but Apple's supported-language list does not currently include Arabic. Use Google Lens for Arabic.

For Arabic text:

  1. Install the Google app from the App Store and open it.
  2. Tap the Lens (camera) icon in the search bar.
  3. Choose the screenshot or page photo.
  4. Tap Text, select the words and tap Copy text.

For English text: open the image in Photos, press and hold on the words until selection handles appear, then tap Copy.

Comparing the methods

Google Drive for full documents, Google Lens for single pages on a phone.

Method Device Arabic Limit Output
Google Drive + Docs Computer Yes 2 MB per file Full document, Word or TXT
Google Lens Android, iPhone Yes One image at a time Copied text
Live Text iPhone Not on Apple's list One image Copied text (other languages)

Tips for better Arabic OCR accuracy

Arabic OCR depends on image quality more than on the tool, so prepare the file first.

  • Resolution: scan at 300 DPI where possible. Google asks for text at least 10 pixels high.
  • Straight pages: skewed or upside-down pages ruin recognition. Fix them with Rotate PDF, and trim dark edges and shadows with the Crop PDF tool.
  • Contrast: even lighting, white background, dark text. Avoid the shadow of your hand or phone.
  • Font: plain Naskh-style print reads better than Ruqaa, Diwani or decorative fonts.
  • Diacritics: harakat are often dropped or attached to the wrong letter. Check Quranic verses, poetry and vowelled names by hand.
  • Dots: look out for look-alike letters such as ب ت ث ن and ج ح خ; one dot changes the word.
  • Digits: make sure ١٢٣ and 123 came out as in the original, especially in amounts and dates.

To photograph pages at OCR-friendly quality from the start, follow how to scan documents with your phone.

After extraction

Treat the extracted text as a draft and proofread it before using it anywhere important.

Paste it into Word, set paragraphs to right-to-left, and compare key passages with the original line by line. If the text is English and you need it in Arabic, the next step is translating a PDF from English to Arabic.

Frequently asked questions

How do I extract text from a scanned PDF for free?

Upload the file to Google Drive, right-click it and choose Open with > Google Docs. Google recognises the text automatically and places it under each page image, ready to copy or download.

Why can't I copy text from my PDF?

Usually because the file is a scanned image with no text inside, or because it has copy restrictions. If you can't select a single word, it is a scan and needs OCR.

Does Google Drive OCR support Arabic?

Yes. Drive detects the document language automatically and supports around 200 languages, including Arabic. Accuracy depends on scan quality, so always proofread numbers and dotted letters.

How do I copy Arabic text from an image on iPhone?

Apple's Live Text language list does not currently include Arabic. Use Google Lens in the Google app: choose the image, tap Text, select the words and tap Copy text.

How do I convert a PDF to a text file?

After opening the file in Google Docs, go to File > Download > Plain text (.txt). If the PDF already has selectable text, you can simply select and copy it.

Related articles