On device--:--
Log in

How to extract text from a photo or scan

You do not have to retype a book page, a certificate or a screenshot. Recognition does it in seconds, and you only check the result.

What accuracy depends on

Straight, well-lit photos of printed text without shadows or skew work best. Hold the phone parallel to the page and keep your hand out of the light.

Crop the extra parts before you start: the fewer objects in the frame, the fewer mistakes.

Image to text (OCR): How to extract text from a photo or scan

What is recognised well and what is not

The best material is screenshots and pages printed in an ordinary typeface: there are almost no mistakes. Books, contracts, letters and presentation slides read well if they are shot straight and in enough light.

It is harder with faded till receipts, text over a photograph or a pattern, very small type, and lettering set vertically or along a curve. Text recognition does not understand formulas, sheet music or drawings at all. In such cases it is quicker to check a few lines and decide whether typing the text by hand would be simpler.

If the image is small

Small or blurry text is recognised worse. Try enlarging the image first and then run the recognition.

The tool for this: AI image upscaler

When this saves time

Most often recognition is needed to avoid retyping: a quote from a paper book, text from a presentation slide or a screenshot where it cannot be selected, the details from an invoice, an address and phone number from an advert, notes photographed from a whiteboard.

It also helps when a document exists only as a scan in a PDF. Turn the pages you need into images, recognise them, and you get text that can be edited, searched and pasted into another document.

Another case is translation. A sign, a menu, an appliance manual or a letter in a foreign language is first turned into text and then pasted into a translator: the result can be saved and edited. It is just as handy for pulling long serial numbers and codes off the labels on appliances, so you do not type them by hand and risk a slip, though you still have to check them against the original.

The tool for this: PDF to JPG

How to get the text

  1. Upload a photo or scan, or paste a screenshot with Ctrl+V.
  2. Choose the language of the text.
  3. Wait for the recognition to finish.
  4. Check the text and copy it.

What to do with the text afterwards

Recognised text keeps the line breaks of the page: every line ends with a break, and words may be split by a hyphen. Join the lines with the text cleaner and the paragraphs return to normal.

Tables are recognised as ordinary lines of text: the words and figures will be there, but you will have to rebuild the columns by hand. Choose the language most of the text is written in, or letters with accents and special characters may be replaced with look-alikes.

The tool for this: Text cleaner

Where mistakes happen most often

Look-alike characters are the main source of confusion: zero and the letter O, the digit one, a small l and a capital I, similar letters from different alphabets. In a paragraph of prose that does no harm, but in an email address, a link, an account number or a product code one such swap makes the line useless.

So check everything that will later be typed into a form or a payment against the original, character by character. It helps to keep the photo and the recognised text side by side and follow the line with your eyes: mistakes tend to cluster where the picture is blurred or the sheet had a fold.

What about handwriting

Neat block handwriting is sometimes recognised, but accuracy is much lower than for printed text. The same goes for decorative fonts.

Tip. Always compare numbers, names and amounts with the original: mistakes there cost the most.

Where the image goes

Nowhere: the picture is not sent to a server, so the tool is suitable for documents too.

When recognition is not needed

If the text in a PDF can be selected with the mouse, the file already has a text layer: you can simply copy it, and the result will be more accurate than any recognition. The same goes for web pages: copy the text from the page rather than taking a screenshot.

On a phone, built-in features can also pull text out of a photo: Live Text on an iPhone or Google Lens on Android. The tool in the browser is more convenient at a computer, for several pages in a row and for documents you would rather not hand to cloud services.

Questions and answers

Can I recognise text in a scanned PDF?

Yes, in two steps: turn the PDF pages into images, then recognise them. If the text in the PDF can be selected with the mouse, there is no need for recognition; just copy it.

Are tables recognised?

The text and figures of a table are recognised, but the column structure is not kept.

Why does the first run take so long?

The browser downloads the recognition data for the chosen language. Later runs are faster, because it comes from the cache.

Does recognition work on a phone?

Yes, in your phone's browser. Large photos take longer, because the device itself does all the work.

Read next

TextTildekit text editor: a full reviewTextHow to move text from Word to a website without junk codeTextHow to make an automatic table of contents with page numbers