How to Extract Text from an Image

Your teacher fills the board with notes, you take a photo — and then what? Typing it out by hand takes the rest of the evening. The same problem shows up with a library book page you cannot take home, a friend's notes on WhatsApp, or a screenshot of an important message. In every case, the words are trapped inside a picture — and a picture cannot be edited, searched, or pasted into your assignment.

OCR — optical character recognition — gets the words out. You upload the photo, and the software reads the text in it and returns it as plain text. This guide explains how it works, what makes the result accurate, and how to do it free with the PDF Prem image-to-text tool.

What OCR actually is

OCR stands for optical character recognition. It turns text inside an image into real, machine-readable text — the kind you can select, copy, and search. A photo of a page and the text on it look the same to your eyes, but to a computer they are completely different: one is a grid of coloured dots, the other is a string of letters. OCR is the bridge between the two.

In plain words, the software does four things. First it cleans the picture up — straightening a tilted page, improving the contrast, and removing specks. Then it finds where the text sits, breaking the page into lines and words. Then it looks at each character's shape — the curves, lines, and loops — and matches it against the letters it has been trained to recognise. Modern OCR tools use neural networks trained on millions of examples, so they read many fonts, including Devanagari. Finally it tidies the result into plain text. None of it is magic, and none of it is perfect: the software guesses, letter by letter, so the quality of the photo decides the quality of the result.

What decides how accurate the result is

Four things matter most, and you control all of them before uploading.

A clear, sharp photo. Blurry text is the biggest cause of wrong words. Hold the phone steady, tap to focus on the text, and retake the photo if it looks soft.

A straight angle. Photograph the page from directly above, not from the side. A tilted photo squeezes letters on one side and stretches them on the other.

Good, even light. Daylight or a bright room lamp works best. Shadows from your hand or phone hide letters, and glare from a glossy page or whiteboard washes them out.

Printed text, not handwriting. Printed text — a textbook page, a notice, a screenshot — has even, repeated letter shapes, so OCR reads it well. Handwriting differs in every person's hand, so it is much less accurate. Neat, large handwriting may read partly; joined-up cursive or faint pencil writing often comes back with many errors. If the page is handwritten, expect to correct the result.

On clean printed text, the results are genuinely good. When this tool was tested on 14 November 2026 with two images of known text, it read 21 of 22 English words correctly (95.5%) in 5.2 seconds, and all 18 Hindi words correctly (100%) in 1.7 seconds. The one word it missed was an email address — "sample" came back as "saample", one extra letter. That is the honest picture: on a good photo of printed text, nearly every word comes back right, but still check names, numbers, and email addresses against the original before you use them.

Worked example: a 200-word page of notes

Suppose Ritu, a Class 12 student in Kanpur, photographs one page of her friend's physics notes — about 200 words — and wants the text in her own notes.

Typing it by hand: at a typical phone typing speed of around 30 words a minute, 200 words takes 200 ÷ 30 = 6.7 minutes — about 7 minutes of steady typing, before fixing typos. On a computer keyboard, an average adult types around 38 words a minute, so the same page takes about 5 minutes. Either way, one page takes several minutes — and a full notebook would take all evening.

With OCR: she uploads the photo, picks the language, and presses Extract Text. The reading itself takes a few seconds — in the tool's own test, a short page took 1.7 to 5.2 seconds. Then she reads the result against the photo — a minute or two — and fixes any misread word. The whole job is done in about two minutes instead of seven — and the saving grows with every extra page. The catch is the checking step: OCR is a draft, not a finished copy, so some of the time you save typing goes into proofreading. On a clean printed page, that proofread is quick. On a blurry photo of handwriting, it can take longer than typing would have.

Step by step: extract text with the free tool

  1. Open the image-to-text tool on PDF Prem: image-to-text tool
  2. Choose your image file with the file picker — JPG, PNG, or WebP. A small preview appears, so you can check you picked the right picture.
  3. Pick the language from the dropdown: English, Hindi, or English + Hindi, which is already selected and suits mixed text.
  4. Press "Extract Text". A progress bar and status line show what is happening. The first run can take longer, because the browser may still be fetching language data.
  5. Read the result in the text box, then press "Copy" to copy it all, or "Download .txt" to save it as a plain text file (the download is named ocr-pdfprem.txt). The box is read-only, so you cannot accidentally overwrite the words while selecting them.

The reading runs in your browser.

Common mistakes to avoid

Uploading a blurry or tilted photo. Retaking a photo takes ten seconds; fixing a bad read takes ten minutes. If the preview looks soft or slanted, take it again before you upload.

Photographing in bad light. Shadows from your hand and glare from a glossy page or whiteboard both hide letters. Step into daylight, or move the lamp so the light falls evenly across the page.

Expecting handwriting to read like print. Cursive or faint writing will come back with errors, sometimes many. If the notes are handwritten, use OCR as a rough draft and correct it against the photo, line by line.

Picking the wrong language. A Hindi page read with English selected misses Devanagari words, and an English page read with Hindi selected does no better. For pages with both languages, use English + Hindi.

Pasting the result without reading it. A single wrong digit in a phone number, date, or roll number can cause real trouble, and the result does not keep the original layout — columns and tables may come out in a different order. Always read the extracted text against the photo — especially names, numbers, and dates — and tidy the paragraphs after pasting.

Frequently asked questions

Does it work on handwriting?

Sometimes. Neat, large handwriting may read partly, while cursive or faint writing often produces errors. Printed text and clear screenshots work far better — check handwritten output carefully.

Does it read Hindi text?

Yes. The tool reads English, Hindi, or a mix of both — pick Hindi for a Hindi page, or English + Hindi for mixed text. In the tool's own test, all 18 Hindi words in Devanagari came back exactly right.

Why did some words come out wrong or missing?

Small text, shadows, glare, a tilted photo, a busy background, or decorative fonts can confuse the reader. Try a straighter, brighter, closer photo of the same page.

What image files can I use?

JPG, PNG, and WebP. Anything that is not an image produces an error. Large phone photos are scaled down automatically, so a normal phone photo works.

Does it keep the original layout?

No. The result is plain running text, not a copy of the page layout. Columns and tables may come out in a different order, so tidy up paragraphs and spacing after pasting.

Try it now — free

Copy your notes, a board photo, or a book page in seconds with the free image-to-text tool: — English and Hindi, no sign-up needed.

Open Image to Text Tool →