Printed a code and need to change the link? QR Gen makes codes you can edit later.Edit codes after printing with QR Gen.See QR Gen

Open on your phone

How to scan a QR code on a laptop

Scan a QR code on a laptop with the Windows Camera app, a browser scanner or a screenshot. Fix blocked cameras on Windows, Mac and Chrome.

To scan a QR code on a laptop, use its webcam. On Windows, open the Camera app, make sure the Barcode button is selected and hold the code up to the lens. On a Mac, or in any browser, open a web scanner such as our free QR scanner, press Start the camera, allow access and hold the code inside the frame. If the code is on the laptop’s own screen, the webcam can’t see it, so screenshot it instead.

A laptop has no rear camera, no Quick Settings tile and no Control Center scanner. What it has is a front-facing webcam and a browser, and both work once you know the three snags: the camera permission, the code’s size in the frame, and the code being on the same screen you’re sitting at. This page is the laptop branch of the main guide on how to scan a QR code.

Windows: the Camera app

Microsoft documents this clearly. According to Microsoft’s guide to the Windows Camera app, you:

  1. Open the Camera app.
  2. Make sure the Barcode button on the right-hand side of the app is selected.
  3. Hold the code in front of the camera so it’s in focus. The app scans it automatically.
  4. Check the bottom of the window. For a QR code, the link for the website appears there; select it to open the site. For a plain barcode, the text appears and selecting it copies it.

Two practical points. The Barcode button is the easy thing to miss, and Microsoft’s steps start from it. Selecting the link opens it straight in your default browser, so the same rule as on a phone applies: read the address first.

If you don’t see a Barcode button, don’t spend long on it. Microsoft’s page doesn’t say which Windows builds or webcams show it, so the browser route below is the quicker fix.

Mac, Chromebook and Linux: a browser scanner

We found no Apple support page that describes scanning a QR code with a Mac’s webcam, and the Mac App Store has third-party scanner apps, which you would have to trust with your camera. A web page does the same job without installing anything, and works the same on any laptop with a camera and a recent browser.

On our scanner the steps are:

  1. Open the page and stay on the Camera tab.
  2. Press Start the camera, then allow access when your browser asks.
  3. Hold the code inside the yellow square. As soon as it reads, the camera stops and a result card appears.
  4. If it’s using the wrong camera, press Switch camera. A laptop usually has one, but an external webcam or a docking-station camera can change which one the browser picks.

The page decodes each frame on your laptop. Its own message above the button says the camera picture stays on this device. Browsers only let a page use a camera when it’s served over HTTPS (or from localhost), and they always ask the first time. MDN’s page on getUserMedia says so in so many words, and says the request can sit unanswered if you ignore the prompt, so if nothing seems to happen, look for the permission bubble near the address bar.

Fixing a blocked camera

If you pressed Block once, the browser remembers. The fix depends on where you are.

  • Chrome on a computer: per Google’s help, select More > Settings > Privacy and security > Site settings, then under Permissions choose Camera, find the site under “Not allowed to use your camera or microphone” and change it to Allow.
  • Safari on Mac: Apple’s page on Mac camera access says to choose Safari > Settings, click Websites, then select Camera. The same page covers apps: System Settings > Privacy & Security > Camera.
  • Windows system-wide: per Microsoft’s camera permissions page, go to Start > Settings > Privacy & security > Camera. Turn on Camera access, and then Let desktop apps access your camera. Microsoft states that browsers such as Edge count as desktop apps and need that switch on. If a switch is greyed out, a work or school administrator controls it.

A laptop that also has a physical shutter or a function-key camera switch is a cause none of these menus will show. Slide it open first.

The webcam sees less than a phone does

Phones are made for this job. A laptop webcam is built for a face at arm’s length, so a small code held close can struggle to come into focus. Make the code large in the frame and give the lens a second to settle.

We can put a number on that for our page. When the browser doesn’t offer its own barcode detector, the scanner works on a copy of each camera frame whose longest side is at most 720 pixels. Take a 1280 by 720 webcam frame: the copy is 720 by 405. If you hold a code so that it fills a quarter of the frame height, it’s about 100 pixels tall on that copy. A short link such as https://example.com/menu is a version 2 code, 25 modules wide, which with its four-module margin is 33 modules: about 3 pixels per module. A code carrying a long tracking address might be version 8, 49 modules wide and 57 with the margin: under 2 pixels per module, which leaves very little for blur to eat.

So the practical rule, from that arithmetic and not from any lab test: hold the code so it fills a third to a half of the frame height, keep it flat to the lens, and keep a clean white margin visible. A dense code on a business card often needs the larger end of that range. If a code is dense because you made it, shorten what it holds; QR code not scanning: 12 causes and fixes shows how much size a long address costs.

Light still matters. Sit facing a window or a lamp rather than with the light behind the code. Tilting a glossy printout slightly takes glare off the lens.

The code is on the screen you’re using

This is the situation behind most “scan on laptop” searches: a code in an email, a PDF or a web page. The webcam can’t help, because it points at you. Pick whichever of these suits:

  • Screenshot it. Capture the code, then paste or drop the image in our scanner’s Image or screenshot tab. Ctrl V (⌘ V on a Mac) works anywhere on the page. How to scan a QR code from a screenshot or photo has the full steps, including the Windows Snipping Tool route.
  • Use your phone. Point the phone’s camera at the laptop monitor. Raise the brightness on the monitor and keep the phone steady, because screens can show banding when photographed.
  • Chrome with Lens. Right-click an image on a page and choose Search with Google Lens. Google’s page notes that using Lens on page content sends a screenshot of the page and page data to Google, so skip this for anything private.

Common questions

Can I scan a QR code on a laptop without installing anything? Yes. A browser scanner needs only a webcam and permission. The Windows Camera app is already installed. Mac users have no documented built-in route that we could find, so the browser is the practical choice.

Does the webcam picture get uploaded? Not with our scanner: the decoding runs in the page on your device. Other web scanners may work differently, and the page should say what it does with the image. If it doesn’t, use one that does.

Why does it say no camera was found? The browser can’t see a camera: it may be off, in use by another app (a video call is the usual one), disabled by a switch, or blocked by one of the permissions above. Close the call app first.

Is it safe to open the link it finds? Scanning is safe, and opening is the step that needs care. Check the domain on the result card, and read is it safe to scan QR codes before you open a code from a stranger.

Ready to try it? Free, no sign-up, made in your browser.

Open the scanner