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.

  1. Take a screenshot of the area with the code. On Windows press Win+Shift+S and select the area; on a Mac press Cmd+Shift+Ctrl+4, which copies the selection to the clipboard instead of saving a file; on a Chromebook press Ctrl+Shift+Show windows.
  2. Open the QR Code Reader and press Ctrl+V (Cmd+V on a Mac) anywhere on the page.
  3. 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

SystemBuilt-in wayLimit
Windows 11The Camera app can read QR codes with the webcamWebcam only, not codes already on the screen
macOSNo built-in QR reader for the Mac cameraUse a browser tool or your iPhone
ChromebookThe Camera app has a scan mode for QR codesWebcam only
Chrome on any systemRight-click an image and search it with Google LensSends 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 withMeaningShown as
https://A web addressThe website name and the full address
WIFI:A Wi-Fi networkNetwork name, security type and password
BEGIN:VCARDA contact cardName, phone, email, organisation
mailto:An email to sendRecipient, subject and message
otpauth://A two-factor login keyAccount 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.

Frequently Asked Questions

Can I scan a QR code on my screen without a phone?

Yes. Take a screenshot of the code and paste it into the QR Code Reader with Ctrl+V or Cmd+V. No camera or phone is needed.

How do I scan a QR code with my laptop camera?

Open the QR code scanner in your browser, press Scan with camera, allow camera access and hold the code 15 to 30 centimetres from the webcam until it is sharp.

Is there a built-in QR scanner on a Mac?

Not for the Mac camera. Use a browser-based reader, or scan the code with an iPhone.

How do I see the Wi-Fi password in a QR code?

Read the code with the QR Code Reader. A Wi-Fi code stores the network name, security type and password as plain text, and the reader shows all three.

Is it safe to scan QR codes on a computer?

Reading a code is safe; opening what it points to is where the risk lies. Check the website name before opening a link, especially if the page asks for a login or payment.