How to scan a QR code with a Windows webcam

Use a built-in or USB camera for a printed QR code and read a screenshot when the code is on your PC.

Open the camera scanner in your browser and allow camera access. If the code is on the same Windows screen, capture it and use the image reader instead.

Set up the right camera

If you use a USB webcam, open the Windows Camera app first to check that it works, then close the app before starting the browser scanner.

Scan a printed code

  1. Choose Scan with camera and grant access when prompted.
  2. Hold the code in the center of the preview with all four edges visible. Pull it back a little if the squares look blurred.
  3. Wait for the camera to stop, then check the decoded address or text before using it.

If you get a black preview

Close any meeting app that is using the webcam. Check Windows camera privacy settings for desktop apps and check the site's camera permission in the browser.

Frequently asked questions

Do I need a webcam for a code in a document?

Save the image or take a screenshot containing the code and its border, then use the image reader.