How to scan a QR code from a screenshot
Your phone can't scan a QR code shown on its own screen. Three ways to read one from a screenshot, an image or a PDF.
When a QR code shows up on the same screen you're already looking at — a mobile boarding pass, a login code in an email, a code shared during a screen-share call — your camera is useless: you can't point it at a screen you're staring straight into without glare, distortion, or simply not being able to back the phone up far enough. The fix is to treat the code as an image file instead of a live scene: capture it, then decode the capture. The QR code reader on Docuboxer does exactly that — from an uploaded image, a pasted screenshot, or a live camera — entirely in your browser, with nothing uploaded anywhere.
Method 1: capture and upload the image
This is the most direct route when the code is on a webpage, a desktop app, or an open document. Take the screenshot with your OS shortcut — Shift+Cmd+4 on macOS, Win+Shift+Son Windows — then drag the resulting file onto the reader, or click to pick it from your downloads. You don't need to crop it first: the reader scans the whole capture for a code, though results are best when the QR code takes up a reasonable share of the frame rather than sitting as a tiny square in a corner.
Method 2: paste directly with Ctrl+V
This is the fastest path and skips saving a file entirely: after capturing the screen, go straight to the reader and hit Ctrl+V (Cmd+Von Mac). Whatever image is sitting in your clipboard decodes instantly. It's the natural flow when a screenshot lands in your clipboard from a messaging app or your OS's own screenshot tool rather than being saved as a file first.
When the QR code is inside a PDF
Here the usual problem is size: a full-page PDF shrinks a QR code down to a small square if you screenshot the whole page. Before capturing, zoom in inside the PDF viewer (or your email client) until the code fills a good portion of the screen, then screenshot only that region. More real pixels in the final image means more room for error in decoding. If the email carries the code as a separate image attachment instead of embedding it in the body, download that attachment directly and upload it — skipping the extra screenshot step avoids the sharpness loss it usually introduces.
Why your QR code won't scan (and how to fix each cause)
A QR code that won't decode almost never means the code itself is broken — it's almost always a problem with the input image, and each cause has a fix:
- Low contrast: a faint gray code on a white background, or a screenshot with brightness cranked up enough to wash out the blacks. Boost contrast, or turn off dark mode on the source page before capturing if that's an option.
- Cropped too close to the edge: QR codes need a blank border around the pattern — the "quiet zone" — for a decoder to even recognize it as a QR code rather than noise. If your capture cuts right at the square's edge, recapture with visible margin around it.
- Low resolution: zooming into a small image doesn't add real information, it just stretches existing pixels. Track down a larger version of the source instead of zooming into an already-small screenshot.
- A code on a busy or patterned background: QR codes printed over textures, flyer artwork, or photo backgrounds confuse a decoder because the pattern competes visually with the code's own modules. Crop the capture down to just the code and a small margin.
- Inverted codes (light modules on a dark background): most QR codes are black on white, but some designs flip that. Not every reader checks both polarities by default; Docuboxer's does, automatically, along with a higher-scale pass, before giving up.
If you're the one generating a QR code that needs to survive rough conditions — printed on a poster that'll see low light or wear, for instance — the QR code generator lets you set the error correction level up front, which is the best prevention there is.
The security upside: decode before you open anything
Pointing your camera at a code and letting the OS open the link automatically is the fastest flow, but also the blindest one — you never see the actual URL before visiting it. Decoding first as plain text flips that: you read the content, check the domain, and only then decide whether it's worth opening. Docuboxer's reader takes it a step further: if the visible text of a link implies one domain but the real link points somewhere else, or if the code uses an unsafe scheme, it warns you before turning it into a clickable button. It's the same instinct as pasting a suspicious URL into the URL encoder/decoder to pick it apart character by character instead of clicking blind.
Worth remembering too: a screenshot can carry the original photo's metadata if it comes from your camera roll rather than a fresh screen capture — GPS location included, in some cases. If you're going to share that image with someone after reading the code, check what's embedded in it first with the EXIF metadata viewer.
What can't be recovered
It's worth being upfront about the limits here: a badly damaged code, one with a large smudge or crease over its position markers, or one where only a small fraction is actually visible, can't be recovered — not by this tool, not by any tool. How much damage a code tolerates depends on the error correction level it was generated with. The standard defines four levels, trading off tolerance against how much space the code takes up: L (~7% damage tolerated), M (~15%), Q (~25%) and H (~30%). Below roughly 30% of the code visible, even level H falls short. That figure is a design property of the format, not a precise, eyeball-verifiable percentage — in practice, if it's hard for you to tell where the pattern starts and ends, it's hard for a decoder too.
One thing this tool doesn't do: barcodes
Docuboxer's reader is built specifically for QR codes; it doesn't decode linear barcodes like EAN-13 or UPC, which use a completely different structure. If what you actually need is to generate one of those — for a product, an inventory system, a shelf label — the barcode generator is the right tool.
Frequently asked questions
Why can't my phone scan a QR code that's on its own screen?
Because the camera has to point outward to focus on something, and the code is inside the screen you're already looking at — there's no way to frame it with the same camera. The fix isn't optical, it's a file problem: capture the screen and decode the resulting image instead of trying to scan it live.
How do I read a QR code from a screenshot on a laptop or desktop?
Take the screenshot with your system's tool (Shift+Cmd+4 on macOS, Snipping Tool or Win+Shift+S on Windows), then drop the image into a QR reader or paste it directly with Ctrl+V. You don't need to save a file first — the clipboard image works exactly like an uploaded one.
How do I scan a QR code from a PDF?
Zoom in on the code inside the PDF viewer until it fills a good portion of the screen, then screenshot just that area. The more real pixels the code occupies in the captured image, the more reliably it decodes — capturing a full page with a tiny QR code in the corner is the most common reason this fails.
Why does my QR code fail to scan?
The usual culprits: low contrast between the code and its background, the code cropped too close to its edge (QR codes need a blank border, called the quiet zone, to be recognized at all), low resolution after zooming into a small image, a code printed over a busy or patterned background, and light-on-dark (inverted) codes, which not every reader checks for by default.
Is it safe to scan an unknown QR code this way?
It's safer than pointing your camera at it and letting the phone open the link automatically, because you see the decoded content as plain text before visiting anything. A good reader also flags it when the visible text implies one domain but the actual link points somewhere else — a common QR phishing (quishing) trick.
Can a damaged or partially blocked QR code still be read?
Depends on the error correction level it was generated with — QR codes tolerate roughly 7% to 30% damage depending on the level (L, M, Q or H). Below that, or with less than about 30% of the code visible, no reader can reconstruct the missing data. That's a property of the format, not a limitation of any particular tool.
Scan a QR code right now
Upload an image, paste with Ctrl+V, or use your camera. Free and 100% local.
Open QR code reader →Related tools
- Scan QR code — From an image, the clipboard, or your camera.
- Generate QR code — Customizable, with control over the error correction level.
- Generate barcode — EAN-13, UPC, Code128 and more.
- View and remove EXIF metadata — Check what's embedded in an image before sharing it.
You might also like: 13 privacy-first tools for developers.