How to Copy Text from an Image on iPhone, Android, Windows and Mac

By 4 min read

To copy text from an image, use the text recognition that is already on your device: Live Text on iPhone and Mac, Google Lens on Android, and Text actions in the Snipping Tool on Windows 11. On any phone or computer, including older ones, you can also open the image to text converter in a browser, choose the picture and copy the text it finds. All of these use OCR (optical character recognition), which reads the shapes of letters and turns them into text you can edit and paste.

On iPhone and iPad: Live Text

Live Text works on iPhone XS, iPhone XR and later models with iOS 15 or later.

  1. Open the photo in the Photos app.
  2. Touch and hold a word, then drag the grab points to cover the text you want.
  3. Tap Copy. To take everything, tap Select All first.

You can also tap the Live Text button in the lower right corner of the photo to highlight all the text it found. If nothing happens, open Settings, then General, then Language & Region, and check that Live Text is turned on.

On Android: Google Lens

  1. Open the photo or screenshot in Google Photos.
  2. Tap Lens. In some versions it sits under More at the top of the screen.
  3. Tap and select the words you want, then copy them.

On some phones, such as Pixel, you can also open Lens straight from the Camera app.

On Windows 11: the Snipping Tool

  1. Press Windows key + Shift + S and drag a box around the text on your screen.
  2. Click the notification that appears to open the snip in the Snipping Tool.
  3. Click the Text actions button in the toolbar, then choose Copy all text.

To copy only a few lines, select them with the mouse after clicking Text actions and press Ctrl + C. If you do not see the button, update the Snipping Tool from the Microsoft Store. For a photo saved on your PC, open it on screen first and snip the part with the text.

On a Mac: Live Text in Preview

Live Text is part of macOS Monterey and later.

  1. Open the image in Preview.
  2. Hold the pointer over the text and drag to select it.
  3. Control-click the selection and choose Copy Text.

If the pointer will not select text, choose Tools, then Text Selection. The Photos app on a Mac can select text in the same way.

In any browser: the image to text converter

The image to text converter is useful when your device has no built-in option, when the text is in Urdu or Arabic, or when you have a batch of screenshots and want one text file.

  1. Open the tool and choose up to 10 images in JPG, PNG, WebP, GIF or BMP format.
  2. Pick the language of the text: English, Urdu, Arabic, Hindi, Spanish, French or German. For a page that mixes English and Urdu, choose English and Urdu.
  3. Run it, then copy the text or download it as a .txt file. With several images, the text of each one starts with its file name.

The images are read by Tesseract OCR on your own device and are not uploaded. The model for each language is under 3 MB, downloads the first time you use it and is then cached by your browser. iPhone photos saved as HEIC need converting first with the HEIC to JPG converter.

What about text in a PDF?

If you can select the text in a PDF, PDF to Text pulls it all out as a plain text file. A scanned PDF is different: each page is a picture of text, so PDF to Text finds nothing. Turn those pages into images with PDF to JPG, then run the images through the image to text converter.

Worked example: one paragraph from a photographed page

Say you photograph a page of a printed report with a 12 megapixel camera. The photo is 4,032 × 3,024 pixels, which is 12,192,768 pixels in total. You only need one paragraph, and it fills an area about 2,000 × 1,200 pixels in the middle of the page.

  1. Crop the photo to that area with the image cropper, using Custom size in pixels. The crop is 2,400,000 pixels, about a fifth (19.7%) of the original.
  2. Run the cropped image through the image to text converter with English selected.
  3. The text comes back with a line break wherever the printed line ended. Paste it into Remove Line Breaks, which turns every break into a space, so the paragraph flows as one block.

Cropping does two jobs. The OCR has less to read, and stray text from the edges of the photo, such as a page number or a line from the facing page, does not end up mixed into your paragraph.

Tips for accurate results

  • Shoot straight on. Hold the phone directly above the page, in even light, without shadows or glare.
  • Crop to the text. Logos, photos and table borders can be read as random letters.
  • Zoom in before you take a screenshot. Text smaller than about 10 pixels high is often misread.
  • Choose the right language. Each language has its own trained model, and the wrong one turns accents and non-Latin letters into nonsense.
  • Proofread numbers. OCR can confuse 0 with O, 1 with l and 5 with S. Check prices, dates and phone numbers before you rely on them.

Printed text in a clear font gives the best results. Handwriting, decorative fonts and Urdu Nastaliq calligraphy are much harder for any OCR, so expect to correct more of the result.

Questions and answers

Can I copy text from an image for free?

Yes. Live Text, Google Lens and the Snipping Tool are free and built into their systems, and the image to text converter on this site is free and works in any modern browser.

Are my images uploaded when I use the image to text converter?

No. The OCR runs in your browser, so the images stay on your device. Only the language model is downloaded, once.

Can OCR read handwriting?

Only roughly. OCR is trained on printed text, so neat block capitals may work but joined handwriting usually comes out with many errors. Check the result carefully.

Why does the copied text have mistakes?

Blur, low light, skewed photos, small text and the wrong language setting all cause errors. Retake the photo straight on, crop to the text and choose the language it is written in.

Related guides

More from the blog