QR code scanner
Scan a QR code with your camera or read it from a picture. The page shows what the code contains, a link, a Wi-Fi network or a contact, before anything opens.
The camera stays off until you tap Start camera.
How to use it
- Tap Start camera and allow camera access when the browser asks. The camera stays off until then.
- Hold the code inside the frame, about a hand’s length away, until the page finds it.
- Read the result. Links are shown in full; open one only if the address is what you expect.
- No camera? Drop, paste or choose a photo or screenshot of the code instead.
Your camera stays on your device
The scanner reads video frames in your browser with jsQR, an open-source QR decoder. Frames are never recorded or sent anywhere, the camera turns off as soon as a code is found, and it turns off too if you switch tabs.
Photos and screenshots are read the same way, on your device. That makes this page a quick way to read a QR code on a laptop, where there is no camera app that does it.
See where a code goes before you open it
A phone camera usually opens a QR code’s link with one tap. This scanner shows the whole address first, with the domain on the button, so a fake sticker on a parking meter or a poster cannot send you somewhere unexpected without you seeing it.
- Wi-Fi codes show the network name and password, with a copy button.
- Contact codes show each field and save as a .vcf file.
- Email, call and text codes show the address or number and open the matching app only when you tap.
When a code will not scan
Give the camera light and a steady hand. Move closer until the code fills about half of the frame, then hold still. Glossy surfaces reflect light, so tilt the code slightly. Very small, damaged or low-contrast codes may need a sharper photo; crop it close to the code and read it from the image instead.
How the scanner reads a code
Each camera frame is turned into black and white pixels. The decoder, jsQR, then looks for the three finder patterns: squares whose dark, light, dark, light, dark runs measure 1:1:3:1:1 along any line through their centre. Their positions give the size and angle of the code, so the grid of modules can be sampled even when the code is tilted.
Next it reads the format information (error correction level and mask), removes the mask and runs Reed–Solomon error correction over the codewords. Damage up to the level’s limit, about 7%, 15%, 25% or 30% of codewords for L, M, Q and H, is repaired before the text comes out. Past that limit the frame is skipped and the next one is tried.
How to scan a QR code on iPhone without an app
Apple’s steps: open Camera, stay in Photo mode and hold iPhone so the code appears in the frame, then tap the link that appears at the bottom of the screen. You can also add the Scan Code control to Control Center, which has a flashlight button for dim rooms.
Use this page instead when you want to see the whole address before anything opens, when the code is on the screen of the phone you are holding (save a screenshot and use read a QR code from an image), or on a laptop.
Why the browser asks for your camera
A web page can only reach the camera through the getUserMedia API, and MDN documents two conditions: the page must be served over HTTPS, and you must allow it. This page asks only after you tap Start camera, and you can withdraw the permission in the browser’s site settings at any time.
Related tools
Questions people ask
Can I scan a QR code on my laptop?
Yes. Use the laptop’s webcam with Start camera, or take a screenshot of the code and drop it into the image box.
Is the camera recording?
No. Frames are read in memory and dropped. Nothing is saved or uploaded, and the camera stops when a code is found.
Why does the browser ask for camera permission?
Browsers ask before any site uses the camera. This page asks only after you tap Start camera.
Does it read barcodes too?
It reads QR codes only. Product barcodes such as EAN and UPC need a different decoder.
Is it safe to open the link?
Check the domain on the button. If it is not the business you expect, or it is a shortened link on a sticker, do not open it.
Does it work on iPhone and Android?
Yes, in the browser on either. If the camera does not start, check that the browser itself has camera access in the phone’s settings.
What is quishing?
Phishing through a QR code: a fake code, often a sticker over the real one, leads to a page that asks for card details or a login. Check the domain before you open a link, and type the address of a payment site yourself.
Can it read a damaged code?
Up to a point. Error correction restores about 7% to 30% of the codewords, depending on the level the code was made with. If one of the three corner squares is torn off, the code usually cannot be found at all.