How to Extract Text from an Image with OCR (English, Sinhala and Tamil)

Published 2026-11-28

You have a photo of a printed page, a screenshot of a message or a scanned letter, and you want the words as text that you can edit, search or copy. This is what optical character recognition, or OCR, does. It studies the shapes in a picture and converts them into letters.

What OCR can and cannot read

OCR works best on printed text in a clear font: books, forms, letters, invoices and screenshots. It struggles with handwriting, decorative fonts, very small print, text on a busy background and photos taken at a steep angle. Tables and columns may come out in a different order from what you see on the page.

Steps to extract text

First, choose the picture, or paste a screenshot with Ctrl+V. Second, select the language of the text. For a document that mixes languages, such as English and Sinhala, choose the combined option. Third, press Extract text and wait. The first time, the OCR engine and the language data are downloaded, so it takes longer. Finally, read through the result, correct any mistakes in the text box, and copy it or save it as a TXT file.

How to get better accuracy

Use a sharp picture with even light and no shadows across the page. Hold the camera straight above the paper so the lines are horizontal. Make sure the text is large enough: if you can barely read it yourself, the software cannot either. For grey or faded pages, tick the clean-up option, which turns the picture to grey and increases the contrast before reading.

Check the result carefully

OCR makes typical mistakes. The letter O and the number 0, or the letter l and the number 1, can be swapped. Always proofread numbers, names, dates and amounts in invoices and forms before you use them. Sinhala and Tamil work well on clear printed text, but small or blurry text will give more errors.

Scanned PDFs

A PDF made from scanned pages has no real text inside it, only pictures. To read it, first convert the pages to images with a PDF to Image tool, then run each image through OCR. A PDF that already contains selectable text does not need OCR at all.

Privacy

The picture is read inside your browser and is not uploaded. Only the OCR engine and the language files are downloaded from a public content delivery network the first time, and your browser keeps them for later. If you read a sensitive document on a shared computer, clear the text box when you finish.

Try our free Image to Text (OCR) tool →

← All guides