Extract Text from Screenshots

Copy text out of screenshots with OCR: how it works, tips for accuracy, built-in options on iPhone, Android, Windows and Mac, and private local OCR.

By the Imageflowlab team ยท ยท 7 min read

Infographic: Get clean text out of screenshots. 20 px+ Text height OCR reads reliably; 2,000 px Longest side before downscaling; 14 OCR languages in the tool; PNG Keeps letter edges crisp.

To extract text from a screenshot, run it through OCR (optical character recognition), which reads the letter shapes in the image and turns them into text you can copy. Your phone or computer may already do this, and for batches, more languages or a .txt file you can use our Image to Text tool, which runs the OCR inside your browser.

What is OCR, and how does it read a screenshot?

A screenshot is just a grid of coloured pixels. Even though you can see words in it, the file contains no text, which is why you cannot select or search it. OCR software bridges that gap in a few stages:

  1. Clean-up: the image is usually converted to black and white so text stands out from the background.
  2. Layout analysis: the engine finds blocks, lines and individual words.
  3. Recognition: each word is matched against patterns the engine has learned for the chosen language.
  4. Output: the results are assembled into lines of plain text.

Screenshots are actually among the easiest inputs for OCR. The text is perfectly straight, evenly lit and usually rendered in clean digital fonts, unlike a photo of a crumpled receipt. Most problems come from small text, low contrast, busy backgrounds or the wrong language setting.

How do you get accurate OCR results?

Give it enough pixels

OCR engines struggle when letters are only a few pixels tall. As a rough guide, body text around 20 pixels or more in height is read reliably; tiny captions and footnotes fail first. If the text is small on screen, zoom in before taking the screenshot instead of enlarging the image afterwards, because upscaling cannot invent detail that was never captured.

Crop to the text you need

Toolbars, icons, profile pictures and adverts give the engine extra shapes to misread. Cropping to the paragraph you want often improves accuracy and keeps the output clean. With our tool this matters for another reason: images larger than 2,000 pixels on their longest side are scaled down before recognition to keep memory use safe, so a very tall full-page capture can shrink its text. Crop long captures into sections with the image cropper first.

Maximise contrast

Dark text on a plain light background works best. Light grey on white, text over photos and coloured text on coloured buttons all lower accuracy. Dark mode screenshots usually work, but if results are poor, switch the app to light mode and capture again.

Choose the right language

The engine uses language data to decide which characters and words are likely. Reading French with the English setting will often drop accents, and non-Latin scripts need their own data. Our tool offers 14 languages, including Spanish, German, Arabic, Hindi, Japanese, Korean and Simplified Chinese, so select the one that matches the screenshot.

Prefer PNG over heavily compressed JPEG

Screenshots are usually saved as PNG, which keeps edges crisp. If a screenshot has been forwarded through chat apps, it may have been recompressed into a blurry JPEG with blocky artefacts around letters. Use the original file where you can.

Problem in the outputLikely causeFix
Random symbols between wordsIcons or emojis in the captureCrop to text only
Missing accents or wrong lettersWrong language selectedPick the document's language
Whole lines missingText too small or too faintZoom in and recapture
Columns mixed togetherSide-by-side layoutCrop each column separately
"l", "1" and "I" confusedSimilar shapes in the fontProofread codes and numbers by hand

A worked example

Suppose you have a 1,170 ร— 2,532 pixel phone screenshot of a recipe in an app, with the ingredient list in small type. Its longest side is above 2,000 pixels, so our tool would scale it to about 924 ร— 2,000 before reading, shrinking the text to roughly 79% of its original size.

If the ingredient text was about 24 pixels tall to begin with, it ends up near 19 pixels, which is borderline. Cropping the screenshot to just the ingredients, say 1,170 ร— 900 pixels, avoids any scaling and keeps the letters at their full 24 pixels, which gives the engine a much better chance.

Built-in OCR on phones and computers

For a single screenshot, the quickest option is often already on your device. These features vary by model, region and software version, so check your device maker's help pages if you cannot find them.

PlatformFeatureHow it is typically used
iPhone and iPadLive TextOpen the screenshot in Photos and press and hold on the text, or tap the text icon, then copy
MacLive TextOpen the image in Preview or Photos and select the text as if it were a document
AndroidGoogle LensOpen the image in Google Photos or the Google app, tap Lens, then choose Text
Windows 11Snipping Tool text actionsTake or open a snip and use the text actions button to copy text

These are convenient for quick copy-and-paste. A browser tool is useful when you have many screenshots at once, need a language your device does not support, want the output as a file, or are on a computer without a built-in option.

How private is OCR?

Screenshots often contain more than you intend to share: names in a chat, account numbers, email addresses or medical details. Before using any OCR service, it is worth knowing where the image goes.

  • Many online OCR websites upload your image to a server for processing.
  • Some device features process on the device, while others, especially when a search or translation option is used, may send the image to the provider's servers. Check the provider's privacy information for the feature you use.
  • Our browser-based OCR tool downloads the open-source Tesseract engine and the language data from a public CDN the first time you use a language. The screenshots themselves are read inside your browser tab and are not uploaded.

Even with local OCR, the text you copy goes wherever you paste it. Treat extracted passwords, card numbers and personal details with the same care as the original screenshot.

Using the Image to Text tool step by step

  1. Add one or more screenshots in JPG, PNG, WebP or BMP format, up to 50 MB each. They join a queue.
  2. Choose the language of the text.
  3. Start OCR. The first run takes longer while the engine and language data load.
  4. Review the text in the output box and correct any mistakes.
  5. Copy it to the clipboard, or download it as a .txt file or a .doc file that opens in Word or LibreOffice.

If the text you need is in a PDF instead, check whether it already has selectable text. If it does, a converter such as PDF to Word is faster and more accurate than OCR.

Frequently asked questions

Standard OCR engines, including the Tesseract engine our tool uses, are designed for printed text. Neat block capitals may partly work, but joined-up handwriting usually produces poor results. Some built-in phone features handle handwriting better, though accuracy still varies a lot with the writer.
Characters such as lowercase l, capital I and the number 1, or O and 0, look almost identical in many fonts. Without surrounding words to give context, the engine has to guess. Always proofread codes, serial numbers, URLs and amounts against the original image.
No. OCR returns plain text in reading order. Bold, colours, font sizes and layout are not preserved, and columns may be merged. Paste the text into your editor and reapply headings or lists yourself, which is usually quick for screenshot-sized content.
Yes. Our tool accepts several images in one queue and processes them one after another with the same language setting. The text from all of them appears together in the output box, each under its file name, so you can copy it in one go or download it as a single file.
You need a connection the first time, because the OCR engine and language data are downloaded from a CDN. Your browser may cache them afterwards, but that is not guaranteed. The images themselves are never sent anywhere, whether you are online or not.

Summary

OCR turns the pixels in a screenshot into copyable text. Capture text large and sharp, crop away clutter, choose the right language and proofread anything that matters. Built-in features like Live Text and Google Lens handle quick one-offs, while our Image to Text tool suits batches and keeps the images on your device.