How to Scan a QR Code on a Laptop or PC
A QR code on your own screen cannot be scanned with the phone in your hand if the phone is the screen, and a laptop has no camera app for it. Here are the ways that work.
QR codes were made for phones, but they increasingly turn up on computers: a two-factor setup page, a Wi-Fi code in an email, a ticket in a PDF, a payment link in a chat on your desktop. Pointing your phone at the monitor often works, but not when you want the content on the computer itself, when the code is in a file, or when you do not have your phone with you. This guide covers every practical way to read a QR code on a laptop or desktop, starting with the quickest.
The quickest way: take a screenshot and paste it
If the code is already on your screen, you do not need a camera at all. A screenshot holds the code at full sharpness, which is easier to read than a camera image.
- Take a screenshot of the area with the code. On Windows press
Win+Shift+Sand select the area; on a Mac pressCmd+Shift+Ctrl+4, which copies the selection to the clipboard instead of saving a file; on a Chromebook pressCtrl+Shift+Show windows. - Open the QR Code Reader and press
Ctrl+V(Cmd+Von a Mac) anywhere on the page. - The code is found, outlined in green, and its content is shown underneath.
This works in every desktop browser and needs no installation. The image is read in your browser and never uploaded, which matters when the code holds a Wi-Fi password or a two-factor secret.
A QR code in a file: image, PDF or email attachment
For a saved image such as a PNG or JPG, drop the file on the reader or click the box to choose it; the read a QR code from an image page opens it ready for that. For a code inside a PDF, either take a screenshot of the page as above, or convert the page to an image with PDF to PNG and drop that image on the reader. PNG keeps the code sharp; a very small code benefits from choosing 300 dpi.
If a code will not read, crop the image closer around it. A large photo with a small code in one corner gives the decoder a lot of noise to look through, and all three large corner squares of the code must be visible.
Using the laptop webcam
When the code is on paper, a product box or another screen, the webcam can read it. Open the QR code scanner, press Scan with camera and allow camera access when the browser asks. Hold the code 15 to 30 centimetres from the camera and tilt it slightly if the screen reflects light. Webcams have fixed focus and low resolution, so a code that is too close stays blurred; move it back until it is sharp.
The camera image is checked a few times a second in the browser. Nothing is recorded or sent, and the camera turns off as soon as a code is found.
Built-in options on Windows, Mac and Chromebook
| System | Built-in way | Limit |
|---|---|---|
| Windows 11 | The Camera app can read QR codes with the webcam | Webcam only, not codes already on the screen |
| macOS | No built-in QR reader for the Mac camera | Use a browser tool or your iPhone |
| Chromebook | The Camera app has a scan mode for QR codes | Webcam only |
| Chrome on any system | Right-click an image and search it with Google Lens | Sends the image to Google; the image must be on a web page |
The built-in camera apps are fine for printed codes. For codes on the screen, the screenshot method is quicker and does not depend on the operating system.
What is inside a QR code
A QR code only stores text. What happens when you scan it depends on how that text starts, and the reader lays out the common kinds field by field:
| Starts with | Meaning | Shown as |
|---|---|---|
https:// | A web address | The website name and the full address |
WIFI: | A Wi-Fi network | Network name, security type and password |
BEGIN:VCARD | A contact card | Name, phone, email, organisation |
mailto: | An email to send | Recipient, subject and message |
otpauth:// | A two-factor login key | Account and service, with a warning to keep it private |
Reading a Wi-Fi code on a laptop is especially useful: it shows the password in plain text, so you can connect a laptop, a TV or a games console that has no camera. To make such a code for your own network, use the Wi-Fi QR code generator.
Check links before you open them
A QR code hides its destination until it is scanned, which makes it a convenient disguise for phishing. Fake stickers placed over real codes on parking meters, restaurant tables and posters lead to look-alike payment pages. Phone camera apps often open the link as soon as they see it; the QR Code Reader never does. It shows the website name first, so you can compare it with the one you expect before pressing Open link. Be particularly careful with codes that ask you to log in or pay.
Why a QR code will not scan
- Too small or blurred: zoom the page before the screenshot, or use a sharper photo.
- Cut off: the three corner squares and a thin light border around the code must be in the image.
- Low contrast: grey on grey or colours with little difference in brightness are hard to read; light codes on dark backgrounds are read too.
- Not a QR code: the reader handles QR codes only, not product barcodes such as EAN, or other two-dimensional codes such as Data Matrix.
- Damaged print: QR codes survive some damage through error correction, but a missing corner square cannot be recovered.