Toolstia / QR code scanner
Scan a QR code
A QR code is a square pattern that holds a short piece of text: a web address, a Wi-Fi login, a contact card, a payment request or any plain words. Normally you point a phone camera at it, but there are times when that is not possible: the code is in a screenshot, a PDF, an email, a photo from a friend, or on a laptop screen, and you just want to read what is inside. This scanner reads the code from a picture you upload or from your device camera, and shows the text it holds.
The decoded text appears in a box with a Copy button. If it is a web address starting with http:// or https://, an Open link button is shown as well, with a reminder to open only links from codes you trust. Anything else, such as Wi-Fi details or a contact card, is shown as raw text.
Decoding is done by script in your browser, so an uploaded picture is not sent to a server, and the camera video is processed on your device and not recorded. The sections below describe how the reading works and what to try if a code will not scan.
Drop a picture with a QR code
PNG, JPG, WebP or a screenshot. It stays on your device.
How it works
- Choose Upload a picture or Use the camera.
- Add the picture, or hold the code steady in the camera view.
- Copy the decoded text, or open the link if you trust it.
Uploading a picture
Drop in a photo, screenshot or saved image. The tool looks for a QR code in it, including codes that are light on a dark background. If it fails, try a sharper picture with the whole code visible.
Using the camera
Your browser will ask for permission to use the camera. The video is analysed on your device and is never recorded or sent anywhere. Camera access needs a secure (https) page.
Check links before opening
A QR code can hold any web address, including harmful ones. Read the decoded address first and open it only if you recognise and trust it.
What QR codes can hold
Web addresses, plain text, Wi-Fi details, contact cards and more. This tool shows the raw text stored in the code.
How scanning an uploaded picture works
Your picture is drawn onto a canvas, with a white background under it so that transparent areas do not become black. The tool tries to find a QR code first in a copy whose longer side is at most 1600 pixels, and, if that finds nothing, again in a copy at most 900 pixels. Trying two sizes helps with very large photos, where a small code can be lost in noise, and with pictures where a smaller version is cleaner. The decoder also tries both normal and inverted colours, so light codes on dark backgrounds are read.
Only the first picture is used, and only one code is read per picture. If a poster has several codes, crop the image to the one you want.
How the camera mode works
In camera mode the browser asks permission, and the back camera is preferred when your device has one. A frame is taken from the live video, shrunk to at most 640 pixels wide, and checked for a code. If none is found, a new check is made about 150 milliseconds after the previous one finishes. As soon as a code is decoded, the result is shown and the camera is switched off. You can stop the camera yourself at any time, and it is also stopped when you leave the page or switch back to the upload tab.
Browsers allow camera access only on secure pages. If the camera cannot start, you will see a message that says whether permission was denied, no camera was found or something else went wrong, and you can always fall back to uploading a picture.
Getting a difficult code to scan
The most common causes of failure are blur, glare, a code that is cut off or too small in the frame, and low contrast. For a screenshot, make sure the whole code is included, with a quiet blank border around it. For a photo of a printed code, hold the camera parallel to the paper and fill about half of the frame. If the code is on a screen, turn down glare and avoid moire patterns by moving slightly closer or further away. A heavily damaged or decorative code with a large logo in the middle may still decode, since QR codes have error correction, but there is a limit.
This reads QR codes only. Barcodes on products, Data Matrix and other 2D codes are not supported.
What the text can look like
A plain link looks like https://example.com/page. A Wi-Fi code is a line such as WIFI:T:WPA;S:NetworkName;P:password;; with the network name and password inside. A contact card begins with BEGIN:VCARD. A phone number may appear as tel: followed by digits, and an email as mailto: followed by the address. The tool shows this text exactly as stored, and offers the Open link button only for web addresses that start with http:// or https://, so it will not offer to open other kinds of link.
Check before you open
A QR code is only a way of carrying text, and the text can point anywhere. Codes stuck on parking meters, flyers or emails can be placed to lure people to look-alike sites. Because you see the address before you open it, you can check the domain: does it match the company you expect, and is it spelled correctly? Be cautious with shortened links, which hide the real destination, and never enter passwords or payment details on a page you reached from a code you cannot verify. When in doubt, type the known address yourself.
Making a code instead
If you need to create a QR code, not read one, use the QR code generator on this site. Test the finished code with this scanner, or a phone, before you print it.
Questions
Is my picture uploaded?
No. It is read in your browser.
Why does the camera not start?
You may have blocked camera access, no camera may be available, or the page is not secure. You can upload a picture instead.
Can it read barcodes?
No, only QR codes.
How do I make a QR code?
Use the QR code generator.
Can it read a QR code from a PDF?
Not directly. Take a screenshot of the PDF page, or export the page as an image, and upload that picture.
Does the scanner remember the codes I scan?
No. The result is shown on the page only and disappears when you reload or leave. Copy anything you want to keep.
Why does the Open link button not appear?
It is shown only when the text is a web address beginning with http:// or https://. Other kinds of text, such as Wi-Fi details, are shown as plain text for you to copy.
Does a scanned code mean the link is safe?
No. The tool only decodes the text, and it does not check whether the destination is safe. Look at the address before you open it.