Point your camera straight at the code, keep it still, and let the phone focus

To photograph a QR code that will scan, hold your phone 4 to 8 inches away from the code and point your camera lens directly at it. The code should fill most of your screen but not be so close that it blurs. Keep the phone steady for a second or two — movement causes blur, which breaks the scan. Your phone's camera will focus automatically; you will see the code sharpen on screen before you take the shot.

The most common mistake is holding the phone at an angle. QR codes are square, and your camera needs to see all four corners at roughly the same distance. If you tilt the phone, the far corners blur or fall out of frame, and the scanner cannot read the code. Stand directly in front of it or position yourself so the camera is parallel to the code's surface.

Lighting matters more than most people think. QR codes are black and white, so they work in dim light, but glare washes them out. If you are photographing a code on a screen, tilt your phone slightly to avoid the reflection of overhead lights. If the code is printed on paper or a sign, step to the side so your shadow does not fall across it.

Key Takeaways

  • Hold your phone 4 to 8 inches from the code, with the camera lens pointing straight at it, not at an angle.
  • Keep the phone still for a second while the camera focuses; movement causes blur that prevents scanning.
  • Make sure all four corners of the code are visible and roughly the same distance from your lens.
  • Avoid glare from overhead lights or screen reflections by adjusting your position or angle slightly.
  • Check that the photo is sharp before you rely on it; a blurry image will not scan.

Why distance and angle matter more than your phone's camera quality

A QR code is a grid of small black and white squares. Your phone's camera has to distinguish each square from its neighbors. If you are too far away, the squares blur together. If you are too close, the phone cannot focus and the edges soften. The sweet spot — 4 to 8 inches — lets your camera resolve each square clearly.

Angle is equally important because QR codes are read row by row, left to right. If your camera is tilted, the rows on the far side of the code are farther away than the rows on the near side. The far rows blur while the near rows stay sharp, and the scanner cannot read the whole code. Holding the phone parallel to the code — as if you were taking a flat photo of a poster on a wall — keeps every row the same distance from your lens.

How to check if your photo is sharp enough to scan

After you take the photo, open it in your phone's photo gallery and zoom in. You should be able to see the individual black and white squares clearly, with sharp edges between them. If the squares look fuzzy or blend into each other, the photo is too blurry to scan. Delete it and try again, holding the phone more still or adjusting your distance.

A common sign of a bad photo is that the outer edge of the code is sharp but the center is soft, or vice versa. This usually means your phone's camera was not quite focused when you took the shot. Wait longer before pressing the shutter button — most phones take a second or two to lock focus — or tap the code on your screen to force the camera to focus on that spot.

Lighting conditions that work and ones that do not

QR codes work in daylight, indoor lighting, and even dim light because they are high-contrast black and white. The problem is not darkness but glare and reflection. If you are photographing a code on a glossy poster or a phone screen, the light bouncing off the surface washes out the black squares, making them gray. Step to the side or angle your phone so the light reflects away from your lens instead of into it.

Shadows are less of a problem than glare, but a shadow falling directly across the code can make parts of it unreadable. If you are outdoors on a sunny day, position yourself so your body does not block the light. If you are indoors under fluorescent lights, move slightly to avoid the bright spot reflecting off the code's surface.

Taking a photo of a QR code on a screen

Photographing a code displayed on another phone, computer, or tablet is trickier than photographing a printed code because screens produce their own light and can create glare. Reduce the brightness of the screen slightly if you can — this cuts glare without making the code too dim to read. Angle your phone so you are not looking straight into the light of the screen.

The distance rule still applies: 4 to 8 inches from the screen. If the code is small on the screen, move closer to the lower end of that range. Keep your phone parallel to the screen surface, not tilted. If you are still getting glare, try taking the photo in a dimmer part of the room or ask the person holding the screen to tilt it slightly away from the overhead lights.

What to do if your photo will not scan

If you have taken a photo but it will not scan, the most likely cause is blur. Delete the photo and take another one, this time holding the phone more still and waiting longer for the camera to focus. If blur is not the problem, check the lighting: move to a spot with less glare and try again.

If the code itself is damaged — torn, faded, or partially covered — no photo will fix it. The scanner needs to see at least 30 percent of the code to read it, but a photo of a damaged code will not improve its readability. If you have access to the code in another form (a printed version, a different screen, a different angle), try photographing that instead.

Frequently Asked Questions

How close can I hold my phone to a QR code?

Closer than 4 inches and your camera will struggle to focus; the code will look blurry. Stick to 4 to 8 inches. If the code is very large, you can stand farther back, but the code should still fill most of your screen.

Does the QR code have to be perfectly straight in my photo?

No, but it should be as close to straight as possible. A slight tilt is fine, but a severe angle makes the far corners blurry and unreadable. Aim for parallel to your camera lens.

Can I take a QR code photo in the dark?

Yes, if there is enough light to see the code on your screen. QR codes are black and white, so they do not need much light. The problem is usually glare from overhead lights or screens, not darkness.

What if I move while taking the photo?

Movement causes blur, which breaks the scan. Hold the phone still for at least one second after you point it at the code. Let the camera focus before you press the shutter button.

Is a zoomed-in photo better than a wide photo?

A zoomed photo where the code fills most of the screen is better than a wide photo where the code is tiny. The scanner needs to see the details of each square, so the code should be large in your frame.