Technology in terms you understand. Sign up for the Confident Computing newsletter for weekly solutions to make your life easier. Click here and get The Ask Leo! Guide to Staying Safe on the Internet — FREE Edition as my thank you for subscribing!

How to Copy Text From Images

When you want the text, not a picture of the text.

Sometimes, a picture is worth a thousand words, but sometimes you just want the words! I'll show you how to use Windows built-in Snipping Tool to extract the text from an image using its built-in OCR.
Applies to Windows: 11
Snipping Tool
(Screenshot: askleo.com)

When people ask me questions, I frequently ask them for the exact text of the error messages they’re facing. “It said something like” is almost never enough.

My go-to solution is the screenshot. A picture really is worth a thousand words when it comes to troubleshooting.

But what if you don’t want to (or can’t) send a picture?

There’s a solution for that.

Become a Patron of Ask Leo! and go ad-free!

TL;DR:

Copying text from images

If you see text on your screen but can’t copy it, use Windows’ Snipping Tool. Press Shift + Windows + S, select the text area, and click “Text Actions” to extract the words. You can copy and paste the result into a message or search. While not perfect, it’s very good (and getting better) and saves a lot of typing.

It starts with a screenshot

This is useful for much more than capturing the text of an error message to send to someone like me; this technique applies to any text you can see on your screen. In fact, the example we’ll use is not an error message.

The process begins with the Windows Snipping Tool.

With the text you want to capture on the screen, type SHIFT+Windows Key+S to run the Snipping Tool.

Snipping tool capture type selection.
Using the Snipping Tool to capture type selection. Click for larger image. (Screenshot: askleo.com)

Make sure that the camera is selected to take a photo. I recommend you use the “Rectangle” mode to select the area to be snipped.

Draw a rectangle around the area containing the text you want to capture.

Rectangle selection in snipping tool.
Selecting a rectangle for the Snipping Tool. Click for larger image. (Screenshot: askleo.com)

Try to avoid including areas that aren’t part of the text you want, though this is sometimes impractical.

When you release the mouse after creating the rectangle, the Snipping Tool takes the screenshot.

Screenshot taken and in clipboard.
The screenshot has been taken and saved to the clipboard. Click for larger image. (Screenshot: askleo.com)

The screenshot has been placed in the clipboard and saved to the screenshots folder. That’s not really what we want this time. Click on Markup and share to take the next step.

Grabbing text

The Snipping Tool editor is displayed. Near the bottom is an odd-looking icon for Text Actions.

Snipping Tool Editor Text Actions button.
The Text Actions button in the Snipping Tool Editor. Click for larger image. (Screenshot: askleo.com)

Click on that button. Using OCR, or Optical Character Recognition, the Snipping Tool will attempt to recognize the text in the image.

OCRed text.
OCRed text. Click for larger image. (Screenshot: askleo.com)

The text it recognizes is highlighted. In the example above, all the text in the image has been recognized.

Click on Copy all text to copy the text (not the picture) to the clipboard.

Now what?

Using the text

What happens next depends on what you need the text for. You might:

  • Paste it into the “ask a question” form on Ask Leo!
  • Paste it into a search engine as part of a search query.
  • Paste it into a message you’re composing to someone.
  • Paste it into an online forum posting where you’re asking for assistance.
  • Paste it into Word or some other document to save it.
  • Paste it into Notepad to see what you got.

Here’s an example of that last one.

Captured text.
Captured text. Click for larger image. (Screenshot: askleo.com)

Notepad doesn’t support images, so you know that’s only text — the text that Snipping Tool extracted from the screenshot you took.

Caveats

OCR has come a long way, but it’s not perfect.

I chose the example image I did because it’s not “clean” text. It’s a handwriting1-style font, which means it’s harder to recognize. And while Snipping Tool did a pretty good job, it wasn’t perfect: it missed an opening quote mark, misrecognized “grateful” and “clarity”, and lost the underscore in front of “Jean”.

The lesson, of course, is to proofread what’s been captured. The good news is that typically needs a simple edit or two rather than retyping the whole thing.

The bigger the text, the better OCR results will be. Thus, this line of text is easier to scan than this line of text. While it’s not always an option, if you can make something bigger before a screenshot (like CTRL+ and CTRL- in your browser), do so.

And finally, if the text recognition just isn’t working for you, remember: you still have a screenshot you may be able to share instead.

Alternatives

The Snipping Tool isn’t your only approach; here are a few others.

  • PowerToys includes a Text Extractor that I find somewhat more convenient, as it bypasses the screenshot and immediately places OCRed text into the clipboard.
  • Snagit, the commercial screenshot tool I use constantly, includes the ability to “Grab text” from any image, including screenshots.
  • ChatGPT, and probably other AIs, do amazing things with images and OCR. I’ve seen them take horrible handwritten content and extract nearly perfect text. For now, the process is to upload your screenshot to the AI for it to process, but I expect this function will be embedded into the in-browser AIs or even in-system AI tools in short order.

There are many, many ways to extract the text you can see on your screen.

Do this

Remember that this functionality exists and has become very powerful. Particularly when faced with an obscure, complex, or lengthy error message, it’s a great way to capture what’s happening in preparation for asking for help.

Subscribe to Confident Computing! Less frustration and more confidence, solutions, answers, and tips in your inbox every week.

Podcast audio

Play

Footnotes & References

1: Literally: it’s a font based on my handwriting of ~20 years ago.

Leave a reply:

Before commenting please:

  • Read the article.
  • Comment on the article.
  • No personal information.
  • No spam.

Comments violating those rules will be removed. Comments that don't add value will be removed, including off-topic or content-free comments, or comments that look even a little bit like spam. All comments containing links and certain keywords will be moderated before publication.

I want comments to be valuable for everyone, including those who come later and take the time to read.