Phones made QR codes easy, but sometimes the code is in front of your laptop instead: on a printed form next to your keyboard, inside a PDF, in an email or on a web page. You can scan many of these on a laptop without installing anything. The method depends on two things: where the code is (on paper or on your own screen) and which system you use (Windows, Mac or ChromeOS).
Menu names change between versions, so if a label does not match exactly, look for the closest option. If you are on a phone, see our guides for iPhone and Android.
Quick answer
| Where the code is | Windows laptop | Chromebook | Mac |
|---|---|---|---|
| Printed or on another screen | Camera app → Barcode mode | Camera app → Scan → QR code | Use your phone's camera |
| On your laptop's own screen (web page) | Chrome: right-click → Search with Google Lens | Same as Windows | Same as Windows |
| In a PDF, email or app | Screenshot, then Google Lens | Screenshot, then Lens in the Gallery app | Screenshot, then Google Lens |
The rule of thumb: a webcam can only read codes held up in front of it, not codes on its own screen. For on-screen codes, you need software that reads the image.
Method 1: Windows Camera app (printed codes)
Recent versions of the Windows Camera app can read QR codes and barcodes with your laptop's webcam.
- Open Start, type Camera and open the app.
- Select the Barcode button on the side of the window.
- Hold the QR code in front of the webcam so the whole square is visible and in focus.
- When the code is recognized, a link or text appears at the bottom of the window. Select it to open the website, or copy the text.
If you do not see a Barcode button, update Windows and the Camera app from the Microsoft Store. On some older versions, the option was hidden behind an experimental features setting in the Camera app's settings. If the camera does not start at all, check Settings → Privacy & security → Camera and make sure camera access is turned on.
Wi-Fi QR codes work too: on Windows, scanning one with the Camera app opens Settings so you can confirm joining the network. To create your own, see how to make a WiFi QR code.
Make a free QR code for a link, WiFi or contact card — generated in your browser.
Open the free QR code generator →Method 2: Chromebook Camera app (printed codes)
ChromeOS has a QR scanner built into the Camera app.
- Open the Camera app from the launcher.
- Switch to Scan mode at the bottom of the viewfinder.
- Choose QR code.
- Hold the code in front of the webcam. When it is detected, the link, text or Wi-Fi prompt appears; select it to open or copy it.
Method 3: Google Lens in Chrome (codes on your screen)
If the QR code is on a web page you are viewing, you do not need a camera at all.
- Open the page in Google Chrome (on Windows, Mac or ChromeOS).
- Right-click the QR code image and choose Search with Google Lens. If the code is part of a larger image, you can right-click anywhere on the page, choose the Lens option and drag a box around the code.
- A side panel opens. Lens usually shows the decoded link or text, often with a button to open or copy it.
Google's help pages note that Lens works best when Google is your default search engine, and that the selected part of the page is sent to Google to be processed. Keep that in mind for codes that contain private information. Other browsers offer similar visual search features under different names.
Method 4: Screenshot the code (PDFs, emails and apps)
For a code inside a PDF reader, an email app or a video call, take a screenshot first, then let Lens read the image.
Step 1: capture the code.
- Windows: press Windows + Shift + S and drag a box around the code.
- Mac: press Command + Shift + 4 and drag a box around the code.
- Chromebook: press Ctrl + Shift + Show windows and select the area.
Step 2: read the image.
- On a Chromebook, open the screenshot in the Gallery app and use its Lens option.
- On any laptop, go to Google's image search in your browser, choose to upload an image and select the screenshot.
Step 3: check the result and open the link only if it looks right.
Capture the code at a decent size, with a little white border around it. A tiny or cropped code is harder to read. Our guide to the QR code quiet zone explains why that border matters.