To scan a QR code on a MacBook, point your iPhone’s Camera app at it. As of October 2026 I couldn’t find a general-purpose QR code scanner for macOS in Apple’s documentation for macOS 27 Golden Gate or macOS Tahoe 26, and Apple’s instructions for scanning a QR code are for iPhone and iPad. Some Mac apps read QR codes for their own setup, such as Passwords for two-factor codes and Home for accessory setup codes. The iPhone works whether the code is on paper, on a sign or on your MacBook’s screen.
Table of Contents
Scan a QR code with your iPhone
- Open the Camera app. In Photo mode, hold the iPhone so the QR code appears inside the camera frame.
- Tap the link that appears at the bottom of the screen.
Control Center works too: open it and tap Scan Code (tap the flashlight for more light). If Scan Code isn’t there, touch and hold the Control Center background, tap Add a Control, and choose Scan Code. On supported models the Camera Control scans QR codes as well. These steps follow Apple’s guide for iOS 27.
To open the scanned link on your MacBook, use Handoff: with Wi-Fi and Bluetooth on and the same Apple Account on both devices, the Safari page shows up as a Handoff icon near the right end of the Dock. Turn Handoff on under System Settings > General > AirDrop & Continuity on the Mac and Settings > General > AirPlay & Continuity on the iPhone.
Where the QR code is and how to scan it
| Where the code is | How to scan it |
|---|---|
| Paper, a sign, a package or another device’s screen | Open Camera on an iPhone or iPad, or tap Scan Code in Control Center. |
| Your MacBook’s screen: a web page, PDF, email or video | Point the iPhone at the screen and scan as above. Apple’s Safari guide doesn’t mention QR codes. |
| A passkey sign-in on your Mac | Click Other Options, choose “Passkey from nearby device”, then scan the QR code with your iPhone or iPad and confirm with Face ID. Bluetooth must be on for both devices. |
| A QR code that sets up two-factor authentication on a website | Apple’s Passwords guide has you use a setup key instead of scanning: choose the site’s manual setup option and copy the setup key. In Passwords, select the account, click Edit, click Set Up Code, paste the key into Setup Key and click Use Setup Key. On macOS Tahoe 26.6, Passwords’ own help text also says you can Control-click the QR code and choose Set Up Verification Code, or choose an image of the code. |
| A picture of a QR code on your Mac: an image file, screenshot or photo | Apple’s Mac guides don’t document an app that reads it. Show it on screen and scan it with the iPhone, or read it in Terminal (below). |
Does Live Text in Preview or Photos read QR codes on a Mac?
Apple doesn’t say it does. Its Live Text pages for Preview and Photos cover copying, looking up, translating and searching text, and opening phone numbers, email addresses and websites that appear in a picture. Neither mentions QR codes. Apple’s developer documentation says the VisionKit option to analyze an image for machine-readable codes, such as QR codes, is ignored on macOS. So I wouldn’t expect hovering over a QR code in Preview or Photos to open anything, and if a link does appear, read it before you click. Apple’s macOS 27 guide to Visual Intelligence on the Mac doesn’t mention QR codes either.
Can Photo Booth, FaceTime or Continuity Camera scan a QR code?
Photo Booth takes photos and records video, and FaceTime makes calls. I searched every page of Apple’s Photo Booth and FaceTime user guides for QR codes and found no mention, so I wouldn’t expect either app to read one.
Continuity Camera lets your Mac use the iPhone’s rear camera as a webcam. It also lets you Control-click in a note, an email or the desktop, choose Insert from iPhone or iPad, and take a photo or scan a document on the iPhone. Both hand video or a picture to the Mac, and Apple doesn’t describe either one reading a code. iPhone Mirroring doesn’t help either: Apple’s guide says the camera and microphone aren’t compatible with it.
Read a QR code from an image file in Terminal
If the code is an image on your Mac and your phone isn’t handy, Apple’s Vision framework (macOS 10.13 and later) can read it. You need Apple’s Command Line Tools, which include Swift, and xcode-select --install installs them. Save this as qr.swift:
import Foundation
import Vision
let args = CommandLine.arguments
guard args.count > 1, FileManager.default.fileExists(atPath: args[1]) else {
print("Usage: swift qr.swift path/to/image.png")
exit(2)
}
let request = VNDetectBarcodesRequest()
let handler = VNImageRequestHandler(url: URL(fileURLWithPath: args[1]))
do {
try handler.perform([request])
} catch {
print("Could not read that file as an image.")
exit(2)
}
guard let codes = request.results, !codes.isEmpty else {
print("No code found")
exit(1)
}
for code in codes {
print(code.payloadStringValue ?? "(no text in this code)")
}
Run it with the path to your image, in quotes if the path has spaces:
swift qr.swift ~/Desktop/code.png
It prints the text inside the code and opens nothing, so you can read a suspicious link before deciding. I tested it on a MacBook Pro with macOS Tahoe 26.6, using PNG and JPEG images of QR codes I generated, including a rotated, compressed one and one holding two codes. The first run can take 15 seconds or more while Swift builds its caches; later runs take under a second.
Check a QR code’s link before you open it
- Read the link on the iPhone before you tap it. The FBI warns that a malicious address can look like the real one with a typo or a misplaced letter.
- On a printed code, check that it isn’t a sticker over the original. The FTC cites reports of scammers covering QR codes on parking meters with their own.
- Don’t scan a QR code in an email or text you weren’t expecting, especially one that urges you to act now. The FTC says to contact the company through a phone number or website you already know is real.
- Be careful with passwords and payment details on a page you reached from a QR code. For a payment, type a known address yourself, as the FBI advises.
- In Safari on the Mac, View > Show Status Bar shows a link’s full address when you hold the pointer over it, and the Security pane of Safari > Settings can warn you about suspected phishing websites.
- I wouldn’t install a scanner app for one code. The FBI advises against downloading QR code scanner apps and notes that most phones already scan through the camera app.