Software & OS

QR Code Scanner for Laptop: Scan a QR Code in Windows 11

The easiest QR code scanner for a laptop is already installed on Windows: open the Camera app, select the Barcode button, and hold the code in front of the webcam. The decoded link appears at the bottom of the window, and selecting it opens the website.

The steps below are for Windows 10 and 11, following Microsoft's Camera app guide. If the Barcode button is missing on your version, or your laptop has no working camera, skip to the sections on the phone fallback and troubleshooting.

How to scan a QR code on a Windows laptop

  1. Select Start, type Camera, and open the Camera app. (If you are not sure how to get a live preview, see how to open the camera on a laptop.)
  2. On the right-hand side of the app, make sure the Barcode button is selected.
  3. Hold the QR code in front of the webcam so that it is in focus. You do not press a shutter button.
  4. Look at the bottom of the Camera app. For a QR code, the link for the website appears there. Select the link to go to the site.

The Camera app scans automatically. As soon as it can read the code, the result shows up, so keep the code still for a second or two rather than moving it around.

What you get for a QR code and for a barcode

The same Barcode mode reads both kinds of code, but it shows the result differently:

Code typeWhat appears at the bottom of the Camera appWhat you do
QR codeThe link for the websiteSelect the link to open the site
BarcodeThe text of the barcodeSelect the text to copy it to the clipboard

A QR code can also hold plain text, not only a web address, since it is just an encoded string. The Microsoft guide only describes the website-link case for QR codes, so if your code contains something else, treat the result as text and check it yourself.

What a QR code actually contains

A QR code is a two-dimensional pattern of dark and light squares called modules. It is defined by the international standard ISO/IEC 18004, and the Denso Wave page on standardization lists its limits. A symbol is between 21 x 21 and 177 x 177 modules, growing by 4 modules per side. At the largest size it can hold up to 7,089 numeric characters, 4,296 alphanumeric characters or 2,953 bytes of binary data.

The standard also defines four error correction levels, which are the reason a scuffed or partly covered code can still scan. They can restore roughly 7% (level L), 15% (M), 25% (Q) or 30% (H) of the code's data. That is why a code with a logo in the middle often still works, and also why a damaged code sometimes works on one scan and fails on the next.

Camera access: why the preview may be black

If the Camera app opens but shows nothing, or Windows says it cannot access the camera, check the privacy settings. On Windows 11 the path is Start > Settings > Privacy & security > Camera. Microsoft lists three switches:

  • Camera access must be On. It lets each user on the device decide whether apps can use the camera. If you cannot change it, an administrator has to.
  • Let apps access your camera must be On for Microsoft Store apps, and the Camera app must be On in the list below it.
  • Let desktop apps access your camera must be On for desktop apps such as browsers and video conferencing apps. You cannot set this one per app.

On a work or school laptop these switches are sometimes locked by policy. In that case scanning with the laptop camera is a decision for your IT administrator, not something to work around.

Get a reliable scan from a webcam

Most laptop webcams are fixed-focus or have weak autofocus, and they are built to frame a face at arm's length. A small printed code held very close to the lens is often blurry. These adjustments are common sense rather than anything from the Microsoft guide, but they are quick to test:

  • Move the code back. Start at about an arm's length and bring it closer until the preview looks sharp. Microsoft's own instruction is to hold the code so that it is in focus.
  • Cut glare. A glossy printout or a phone screen reflecting a window or lamp can wash out half the pattern. Tilt the code until the reflection leaves it.
  • Keep it flat and square to the lens. A code on a curved bottle or held at a steep angle is harder to read than one facing the camera.
  • Raise the screen brightness if you are showing the code on a phone, so the dark and light modules have clear contrast.
  • Try again with a bigger code. If you control the source, a larger print makes every module cover more of the webcam image.

If the code is on your screen, not on paper

The Camera app reads codes through the webcam, so it cannot read a QR code shown in a browser tab or an image file on the same laptop. You would have to point the webcam at another screen to scan it, which usually works poorly.

For a code on your own screen, the simplest route is to scan it with a phone camera aimed at the laptop display, then send yourself the link. For a code in an image file, use a tool that decodes images. I have not verified a specific Windows or Mac app for this from the vendor's own documentation, so check the privacy terms of any decoder before you upload a file to it, since the image may be sent to a server.

Scanning on a Mac or Chromebook

This article covers the Windows Camera app, because it is the case Microsoft documents. Other laptops differ and I could not confirm the exact steps from an official source, so use your phone camera as the dependable fallback there, then open the link on the laptop or send it across.

Check the link before you open it

Scanning a code does not make its destination trustworthy. The decoded link can point to any site, and a fake code stuck over a real one is a known way to send people to the wrong place. Read the full address that appears at the bottom of the Camera app before you select it. Look at the domain name, not just the start of the link, and be careful with any page that immediately asks for a password or a payment. For a methodical check, see how to check if a link is safe.

If the Camera app will not scan

  • The Barcode button is not there. Your Camera app version or camera may not offer it. Use the phone fallback above.
  • The preview is black or shows an error. Work through the three privacy switches in the order listed. Also close any video call or other program that may already be using the webcam.
  • The preview works but nothing is detected. The code is probably out of focus, too small in the frame or washed out by glare. Change the distance and angle slowly and wait a moment between changes.
  • The result looks wrong. The code may not hold a web address at all. Read the text shown and decide whether it makes sense before acting on it.

Frequently asked questions

Do I need to install a QR code scanner on my laptop?
Not on Windows. The Camera app that ships with Windows can scan QR codes and barcodes when its Barcode button is selected. Microsoft documents this in its Camera app guide. You only need a working webcam and camera access turned on for apps.
Can a laptop scan a QR code without a camera?
Not by pointing at it, because scanning needs an image sensor. If the code is on a webpage or in a file, you need a tool that reads an image, not a camera. If the code is printed on paper, use your phone's camera and send the decoded link to your laptop.
What does the Windows Camera app show after scanning a QR code?
For a QR code, the link to the website appears at the bottom of the Camera app, and you select it to open the site. For a barcode, the decoded text appears at the bottom, and selecting it copies the text to the clipboard.
Is it safe to open a link from a QR code?
A QR code is only an encoded string of text, so the link can point anywhere. Read the full address before you open it, and be careful if it asks you to sign in or pay. A code stuck over another code on a poster or sign deserves extra suspicion.

Sources