Skip to content

How to Scan a QR Code from a Screenshot on Mac

By Eduard Bruch, developer of Optic · Updated

If the screenshot with the QR code is already on your Mac, open it in Preview and let a screen OCR app read the code straight off the screen. If the screenshot is still on your iPhone, the iPhone's own Photos and Camera apps are usually the quickest way.

Short answer: for a QR code that is on your Mac screen, open the image and drag a box around the code with an app that reads codes on screen. My pick for this is Optic, a menu bar app that copies the text in any area you drag across the screen and decodes QR codes the same way ($4.99, a one-time purchase on the Mac App Store).

Disclosure: I build Optic.

First: where is the screenshot?

The right tool depends on which device holds the image.

  • The screenshot is on your iPhone. Apple built QR reading into the iPhone. The Camera app reads codes you point it at, and on recent iOS versions Photos can recognize a QR code in a saved image. That is Apple's own feature, it costs nothing, and if you only need the link on the phone, it is the simplest route.
  • The screenshot is on your Mac. Maybe someone sent it in Messages or Mail, it came in a PDF, or you saved it from a web page. Pointing your phone at the monitor works sometimes, but it gives you the result on the wrong device and glare often gets in the way. Reading the code on the Mac keeps the link where you want to use it.

The rest of this guide covers the Mac case. For other ways to read codes on a Mac, see how to scan a QR code on Mac.

Read a QR code from a screenshot with Optic

Optic does not open image files itself. It reads what is visible on screen, so the code has to be shown first.

  1. Open the screenshot in Preview (or Quick Look, Mail, Messages, a browser: any app that shows it).
  2. Click the Optic icon in the menu bar and choose Capture QR Code.
  3. Drag a box around the code. The box does not have to be tight; this mode pads the selection so a snug box still works.
  4. The decoded content is copied to the clipboard. Paste it with Command-V wherever you need it.

If the code holds a link, you can also open it with one click from Optic's capture history in the menu bar.

There is a second path: when you use Capture Text and the area contains a code, Optic copies the code's content instead of the text. This "Auto-detect QR codes alongside text" setting is on by default and can be turned off in Settings.

Which codes it reads

Optic uses Apple's Vision framework to detect 2D codes: QR, Micro QR, Aztec, Data Matrix and PDF417.

Private codes stay on the Mac

Some QR codes carry things you would not want to upload: Wi-Fi passwords, two-factor setup links, private invite URLs. Online QR decoders ask you to upload the image to their server. Optic decodes on the Mac. The app has no network access at all, no account and no analytics, and it reads screen pixels only inside the box you draw. It needs the macOS Screen Recording permission for that, and the first-run onboarding walks you through it.

Capture history

Each decoded code goes into the capture history in the menu bar popover, next to your text captures. The history keeps the last 20 captures with a small thumbnail and the time, and lets you copy again, open a link, or delete an entry. It is stored locally and never uploaded. If you decoded a ticket link earlier today and need it again, it is a click away as long as it is among the last 20 captures.

Codes also turn up outside screenshots, for example on a slide in a Zoom screen share or on a web page; the QR code reader for Mac guide covers those.

Where Optic does not fit

  • 1D barcodes. EAN, UPC, Code 128 and Code 39 are not supported, only the 2D codes listed above.
  • Codes on paper. Optic has no camera scanning. For a printed code, use your iPhone's Camera.
  • Opening files. It does not import images or PDFs; the code must be on screen first.
  • iPhone or iPad. Optic is a Mac app only.

FAQ

Can I scan a QR code from a screenshot without my phone?

Yes. Open the screenshot on your Mac and use a screen QR reader such as Optic: choose Capture QR Code from the menu bar, drag around the code, and the content is on your clipboard.

Does scanning a QR code in a screenshot upload the image anywhere?

Online decoders do. Optic does not: it has no network access and decodes the code on the Mac.

Can Optic read barcodes on products?

No. It reads 2D codes (QR, Micro QR, Aztec, Data Matrix, PDF417), not 1D product barcodes like EAN or UPC.

What if the QR code is inside a PDF?

Open the PDF in Preview so the code is visible, then capture it from the menu bar the same way as any screenshot.

Get Optic on the Mac App Store · All Optic facts. Optic needs macOS 14 Sonoma or later. For text instead of codes, see how to copy text from the screen on Mac.