A Mac has no QR code scanner like the iPhone Camera app, so the quickest way to scan a QR code on a Mac or MacBook is to point your iPhone or iPad camera at the code, even when it's on the Mac's own screen, tap the link, then click the Safari icon at the right end of the Mac's Dock to open the page there with Handoff. For a QR code saved in a screenshot or image file on the Mac, open the image in a QR scanner app that reads pictures, such as QR Code Scanner * Barcode Reader on a Mac with Apple silicon.
QR codes turn up on a Mac more often than you might expect: a sign-in code on a web page, a code in a PDF ticket or an email, a two-factor setup screen, or a printed code you want to open in a desktop browser. Below: why a Mac can't scan codes the way an iPhone can, the iPhone-and-Handoff method, how to decode a QR code in a screenshot or file, what to do with a printed code, and how to fix a code that won't scan.
Can a Mac scan a QR code?
macOS doesn't include a QR code scanner: the Mac's built-in camera apps take photos and video but don't read codes, and Apple's Mac guides to Live Text describe recognizing text, phone numbers, web addresses and email addresses in images, not QR codes. A Mac can still open what's inside a QR code in two ways: with help from an iPhone or iPad camera, or with a scanner app that decodes QR codes from images.
Live Text does help when the web address is printed as text next to the code. Apple's Preview User Guide page on interacting with text in a photo explains that you can select a website shown in an image, Control-click it and open the link in your browser.
How do you scan a QR code on your Mac screen with an iPhone?
To scan a QR code on your Mac screen, point the iPhone Camera app at the screen, tap the link that appears, then continue on the Mac by clicking the Safari Handoff icon in the Dock. This works for any code you can see: on the Mac's display, on paper or on a poster.
- Open the Camera app on your iPhone or iPad and keep it in Photo mode. You can also tap Scan Code in Control Center.
- Point the camera at the QR code on the Mac's screen until the whole code is in the frame.
- Tap the link that appears at the bottom of the iPhone screen (on iOS 17 and iOS 18, tap the notification instead). The page opens in Safari on the iPhone.
- On the Mac, click the Safari Handoff icon toward the right end of the Dock, or press Command-Tab and choose it. The same page opens in Safari on the Mac.
The scanning steps are in Apple's iPhone User Guide page on scanning a QR code with the camera; our guide on how to scan a QR code on iPhone covers every method in detail. If the Handoff icon doesn't appear, check the requirements in Apple's guide to using Handoff:
- Both devices are signed in with the same Apple Account.
- Wi-Fi and Bluetooth are on, on both devices.
- The devices are within 30 feet (10 meters) of each other, as the Mac User Guide page on handing off tasks states.
- Handoff is on. On a Mac with macOS 13 or later: Apple menu → System Settings → General → AirDrop & Handoff (called AirDrop & Continuity in some versions), then turn on Allow Handoff between this Mac and your iCloud devices. On iPhone: Settings → General → AirPlay & Handoff (or AirPlay & Continuity), then turn on Handoff.
How do you scan a QR code from a screenshot or image on a Mac?
To scan a QR code from an image on a Mac, save the code as a screenshot or image file, then open that file in a QR scanner app that decodes codes from pictures. This is the method to use when you have no iPhone nearby, or when the code is in a PDF, an email or a web page.
- Capture the code. Press Shift-Command-4 and drag over the QR code. Apple's Mac User Guide page on screenshots notes that screenshots taken with keyboard shortcuts are saved to the desktop as PNG files. If the code is already an image file, skip this step.
- Open a QR scanner that reads images. QR Code Scanner * Barcode Reader is listed on the App Store for Macs with an Apple M1 chip or later running macOS 13 or later, as well as iPhone and iPad.
- Use the scan-from-image option and choose the screenshot. The app shows what's in the code, such as a link, Wi-Fi details or a contact card, before you open it.
You can also send the screenshot to your iPhone with AirDrop and decode it there; our guide on scanning a QR code from a screenshot or picture lists the ways to do that on iPhone, including Google Lens.
Online QR readers that ask you to upload an image also work, but the image leaves your Mac. We suggest decoding on the device for codes that hold private data, such as Wi-Fi passwords or account setup codes; our guide to QR scanners that work offline with no ads explains why.
How do you scan a printed QR code with a MacBook?
The simplest way to scan a printed QR code for use on a MacBook is to scan it with an iPhone or iPad and hand the page off to the Mac, using the steps above. The Mac's own camera apps can't decode the code.
Without an iPhone, take a clear photo of the code with any phone or camera, copy the photo to the Mac and decode it as an image. Hold the camera straight on, fill most of the frame with the code and make sure the light is even with no glare.
Can a Wi-Fi QR code connect a Mac to the network?
Scanning a Wi-Fi QR code with an iPhone joins the iPhone to the network, not the Mac. To get the Mac online, read the Wi-Fi password out of the QR code with your phone, then choose the network from the Mac's Wi-Fi menu. Our Wi-Fi QR code scanner guide explains what to do on a Mac and on other devices. The QR code on a router label is often that Wi-Fi code.
Which way of scanning a QR code on a Mac should you use?
Use the iPhone camera with Handoff for any code you can see, a scanner app for codes saved in files, and Live Text only for a web address printed as text.
| Where the QR code is | Best method | What you need |
|---|---|---|
| On the Mac's screen | iPhone Camera, then Handoff or Universal Clipboard | iPhone or iPad with the same Apple Account |
| In a screenshot, PDF or image file | QR scanner app with scan-from-image | Mac with Apple silicon, or AirDrop to an iPhone |
| On paper, a poster or a package | iPhone Camera, then Handoff | iPhone or iPad |
| Next to a printed web address | Live Text: select the address and Control-click | Preview, Photos or Safari on the Mac |
On an Intel-based Mac, which can't run the app, use the iPhone method or send the image to an iPhone.
Why won't my iPhone scan the QR code on my Mac screen?
An iPhone usually can't read a QR code on a Mac screen because the code is too small on the display, the screen is too dim or reflecting light, or part of the code is outside the camera frame. Try these in order:
- Make the code bigger. Zoom in on the page (Command-Plus in Safari) or open the image at full size.
- Turn up the Mac's brightness and tilt the iPhone slightly to remove glare and reflections.
- Move the iPhone back until the whole code, including the quiet margin around it, is in the frame.
- Check the code isn't cropped or blurred, for example by a video call or a low-resolution image. A damaged image may not decode at all.
- Take a screenshot instead and decode it with a scanner app, which avoids screen glare entirely.
Scan QR codes on iPhone, iPad and Mac
Scan from the camera or from a screenshot, and see what's in a code before you open it. Free, no ads, works offline.
Frequently asked questions
How do I scan a QR code on my Mac?
Point your iPhone or iPad Camera at the QR code, tap the link that appears, then click the Safari Handoff icon in the Mac's Dock to open the same page on the Mac. If the code is in a screenshot or file on the Mac, open it in a QR scanner app that reads images instead.
How do I scan a QR code on my MacBook screen?
Open the Camera app on your iPhone, point it at the MacBook screen until the whole code is in the frame and tap the link. Make the code bigger and turn up the screen brightness if the iPhone doesn't recognize it.
Can I scan a QR code with my MacBook camera?
Not with the Mac's built-in apps: the camera apps that come with macOS take photos and video but don't decode QR codes. Scan the code with an iPhone or iPad, or decode a photo or screenshot of the code with a QR scanner app.
How do I scan a QR code from a screenshot on a Mac?
Press Shift-Command-4 and drag over the code to save a screenshot to the desktop, then open the screenshot in a QR scanner app with a scan-from-image option, such as QR Code Scanner * Barcode Reader on a Mac with Apple silicon. You can also AirDrop the screenshot to an iPhone and decode it there.
Is there a QR code scanner app for Mac?
Yes. QR Code Scanner * Barcode Reader is listed on the App Store for Macs with an Apple M1 chip or later running macOS 13 or later, as well as iPhone and iPad. On an Intel Mac, use an iPhone to scan the code instead.