How to Copy Text From an Image or Screen on Mac

Grab text from screenshots, images, videos and apps that won't let you select it. Three ways to do it: Live Text in Preview and Photos, the screenshot thumbnail, and the free ScreenOCR extension.

UPDATED

You're on a video call and someone shares a slide with a URL. A colleague sends you a screenshot of an error message. An app shows a license key in a label you can't select. The text is right there, and you're about to retype it by hand.

The short answer: for an image file, open it in Preview or Photos, drag over the text and press ⌘ C. That's Live Text, built into macOS. For text anywhere on your screen, install the free ScreenOCR extension for Raycast, run Recognize Text and drag over the area. The text lands on your clipboard.

Here's how each way works, and when to use which.

MethodWorks onStepsBest for
ScreenOCR for RaycastAnything on screen, clipboard imagesOne command, one dragVideos, apps, shared screens
Live Text in Preview, Photos, Quick Look, SafariImage files and web imagesOpen, select, copyPhotos and saved images
Screenshot thumbnailAnything on screenScreenshot, click thumbnail, select, copyOne-offs without extra apps

Copy text from your screen with Raycast

ScreenOCR: copy text from anywhere on your screenInstall

ScreenOCR is a free extension with more than 60,000 installs. It turns any part of your screen into text you can paste. It uses Apple's Vision framework, the same on-device text recognition behind Live Text, so nothing gets uploaded anywhere. No screenshot files pile up on your desktop either.

Open Raycast and type ocr:

Type “ocr” in Raycast to see all of ScreenOCR’s commands.
Type “ocr” in Raycast to see all of ScreenOCR’s commands.
  • Recognize Text: drag over an area of your screen and copy the text in it.
  • Recognize Text on Entire Screen: copy all the text on the current display.
  • Recognize Text in Clipboard Image: copy the text from an image (or a copied image file) that's already on your clipboard.
  • Detect Barcode/QR Code: select a QR code or barcode on screen and copy what it contains.
  • Select Recognition Languages: add languages beyond your primary one, like Japanese, Korean or Arabic.

When it's done, you'll see Copied text to clipboard. Press Esc while selecting to cancel, and your clipboard stays as it was.

Pro tip: give Recognize Text a hotkey in Raycast's settings, like ⌥ ⌘ T. Then it's one press and one drag from "I can't select this" to text on your clipboard.

A few preferences are worth knowing about:

  • Ignore line breaks joins lines with spaces. Turn it on when you're copying a paragraph from a narrow column and want it as one line of text.
  • Custom Words List takes comma-separated words, like product names, jargon or your colleagues' surnames, that Vision would otherwise get wrong.
  • Recognition Level switches between Accurate (the default) and Fast. Use language correction is on by default and helps with real sentences, but you may get better results with it off for codes, serial numbers and IDs.
  • Keep image in clipboard copies the captured image to your clipboard before recognizing it, handy if you want the screenshot too. With Clipboard History you'll have both.

Already have an image on your clipboard? Press ⌃ ⇧ ⌘ 4, which takes a screenshot straight to the clipboard, then run Recognize Text in Clipboard Image. In that command's preferences, set After Recognition to Paste Text and Keep Image to paste the text into the app you're in and put the image back on your clipboard afterwards.

Raycast's own Clipboard History can do this for images you copied earlier, too. Select one, open the Action Panel and pick Copy Text from Image. With Text Recognition turned on in its settings, you can even search old screenshots by the words in them.

ScreenOCR needs macOS 15 or later, and the first time you run it, macOS asks for Screen Recording permission. It also works on Windows. Want the text in another language? Paste it into Google Translate.

Want AI to work with what's on your screen instead? Screen Awareness sends it to Raycast AI with a hotkey:

Use Live Text

Since macOS Monterey, your Mac can recognize text in images on its own. Apple calls it Live Text, and it works in most places where you look at images.

  1. Open the image in Preview or Photos, or select it in Finder and press Space to open it in Quick Look.
  2. Hold the pointer over the text and drag to select it.
  3. Press ⌘ C, or Control-click the selection and choose Copy Text.

In Preview, if dragging draws a box instead of selecting text, choose Tools → Text Selection. The same trick works on images in web pages in Safari, and on paused frames of a video in the QuickTime Player and Safari.

If you can't select text anywhere, make sure Live Text is on in System Settings → General → Language & Region. Live Text isn't available in every language or region.

Pro tip: double-click a word to select just that word, or triple-click to select the whole line, like you would in a document.

Copy text from a screenshot

Live Text only works on images, so for text in an app or on a shared screen, take a screenshot first.

  1. Press ⇧ ⌘ 4 and drag over the text.
  2. Click the thumbnail that appears in the bottom-right corner before it disappears.
  3. Select the text in the markup window and press ⌘ C.
  4. Click the Trash icon if you don't want to keep the screenshot.

It works, but it's four steps and a race against the thumbnail. If you don't see a thumbnail, press ⇧ ⌘ 5, click Options and turn on Show Floating Thumbnail.

Frequently Asked Questions

How do I copy text from a picture on my Mac?

Open the picture in Preview or Photos, drag over the text to select it and press ⌘ C. This uses Live Text, which is built into macOS Monterey and later. For text on your screen that isn't in an image file, use ScreenOCR in Raycast.

Does Mac have built-in OCR?

Yes. Live Text recognizes text in images in Preview, Photos, Quick Look, Safari and the screenshot markup view. It works on files and web images, not on arbitrary parts of your screen.

How do I copy text from a screenshot on Mac?

Take the screenshot with ⇧ ⌘ 4, click the thumbnail that appears in the corner, then select the text and press ⌘ C. With ScreenOCR you can skip the screenshot and copy the text from a selected area in one step.

Why can't I select text in an image on my Mac?

Live Text may be turned off. Go to System Settings → General → Language & Region and turn on Live Text. In Preview, also check that Tools → Text Selection is selected. Live Text isn't available in every language or region.

Is ScreenOCR private?

Yes. ScreenOCR recognizes text on your Mac using Apple's Vision framework and doesn't send screenshots or recognized text to a cloud OCR service.

Copy text from anywhere on your screen. Try Raycast with the free ScreenOCR extension.

Download