Live Camera

Scan QR Code
with Your Camera

Point your camera at any QR code for instant live decoding. Works on iPhone, Android, and desktop webcam. No app needed β€” runs entirely in your browser.

Camera is off

Allow camera access when prompted by your browser

Upload image instead

If camera scan fails, upload the QR code image

Decoded Result

Browser-Based Live QR Scanner

Our camera-based QR scanner uses the Web MediaDevices API to access your device's camera directly within the browser β€” no app installation, no plugins, and no data transmission to servers. The live video feed is analyzed frame-by-frame using our multi-engine decoder.

How It Works

The scanner captures a new frame every 500 milliseconds and runs it through the jsQR decoding engine. When a QR code is detected, the camera automatically stops and the result is displayed. If the primary engine fails to detect a code, subsequent engines are tried automatically.

Device Compatibility

  • iPhone / iPad: Requires Safari or Chrome, iOS 11+ for camera API access
  • Android: Chrome and Firefox are supported on Android 5.0+ devices
  • Desktop: Works with any webcam β€” useful for scanning QR codes displayed on screens
  • macOS Safari: Fully supported with user permission prompt

Camera Tips

  • Hold your device steady and ensure the QR code is well-lit
  • Position the QR code within the scanning frame guide
  • For outdoor use, avoid direct sunlight glare on the QR code surface
  • If the rear camera fails, try the front camera (flip button)

QR Code Camera Scanning Security

Camera-based QR scanning carries specific security considerations compared to image upload. When you scan a QR code live, your device's OS may immediately prompt you to open the decoded URL β€” bypassing the preview step that our tool provides.

Why Using a Browser Scanner Is Safer

Many device camera apps automatically suggest navigating to a decoded URL with a single tap. Our browser-based scanner always shows you the full decoded content first, giving you the opportunity to review and verify the URL before deciding to visit it. This extra step is your first line of defense against QR phishing attacks.

Common Camera Scanning Attacks

  • QR code overlay attacks: Malicious stickers placed over legitimate QR codes in restaurants, parking meters, and public spaces
  • Event ticket fraud: Fake event QR codes that redirect to phishing sites instead of legitimate ticketing platforms
  • Package delivery scams: Fraudulent "delivery notification" QR codes in physical mail
  • Cryptocurrency theft: QR codes claiming to be wallet addresses that actually belong to attackers

Front Camera vs Rear Camera for QR Scanning

The rear camera wins for almost every scanning situation. Higher megapixel count, faster autofocus, and a dedicated lens optimized for middle-distance shots. Our scanner defaults to the rear camera on mobile devices for this reason.

The front camera becomes useful in exactly one scenario: scanning a QR code displayed on another screen. Turning a phone around to scan a desktop monitor is awkward, and the rear camera often focuses on the monitor bezel rather than the QR. The front camera lets you hold the phone naturally, face-forward, while pointing it at the screen.

On desktop, the webcam is your only option. Most built-in laptop webcams work fine for scanning QR codes printed on paper or displayed on a phone screen held up to the webcam. External webcams tend to focus faster but are no more accurate at reading QR patterns.

Why Camera Scanning Sometimes Stalls

If the live scanner sits on a QR code for more than a few seconds without locking in, five things are usually responsible. Walking through them in order resolves most cases within 30 seconds.

  1. Focus distance. Most phone cameras cannot focus closer than about 10 cm. If you are practically touching the QR with your phone, pull back.
  2. Glare. A glossy QR code under direct light shows bright reflections that blow out the pattern. Tilt the code or your phone by 10 to 20 degrees to break the reflection.
  3. Low ambient light. The scanner uses the live video feed, not the flash. In dim rooms, enable more room light or point the QR code toward a window.
  4. Wrong camera selected. If the preview looks impossibly close (your eye instead of the QR), the front camera is active. Tap Flip.
  5. QR code too small in frame. Move closer until the QR code fills at least a quarter of the scan frame. The finder patterns need enough pixels to be detected.

If none of these resolve it, the QR code itself may be damaged beyond what a live feed can recover. Switch to the Upload tab and try a still photo. The decoder runs more aggressive preprocessing on stills than on live frames.

How the Live Scan Frame Rate Affects Results

Our camera scanner analyzes roughly two frames per second rather than every frame. This is deliberate. Processing every frame at 30 or 60 fps would drain the battery, generate heat, and barely improve detection accuracy. QR codes are static objects. Two samples per second is plenty to catch one as soon as it is stable in frame.

What this means in practice: hold the phone steady for about one second once the QR is framed. Most people wave their phone back and forth expecting a faster response. That motion blur is the actual reason the scan feels slow. A still phone locks in almost instantly.

Browser Permissions and HTTPS

Camera access requires your browser to grant explicit permission. The first time you open the camera tab, a dialog appears asking to allow camera access for qr-decoder.com. Granting it stores the decision until you revoke it in browser settings.

The browser only exposes the camera API on secure (HTTPS) pages. That is why the scanner does not work on plain HTTP or on local file previews. Our site runs over HTTPS with a valid certificate, so this requirement is invisible in normal use. If you are testing a modified copy of the code locally, you will need either HTTPS via a local certificate or a localhost exception, both of which browsers allow.

Revoking permission later is straightforward. In Chrome, click the small camera icon in the address bar and choose Block. In Safari on macOS, the setting lives in Safari Preferences under Websites > Camera. Revoking permission does not affect your scan history or any other stored data.

Camera Scanner FAQ

Why is the camera not working?
Common causes: (1) Browser permission denied. Click the camera icon in your browser address bar and allow access. (2) Another app is using the camera. Close other apps or tabs using the camera. (3) HTTPS required. The scanner only works on secure pages. (4) Older browser. Update to the latest version of Chrome, Safari, or Firefox.
Does camera scanning work on mobile?
Yes. The camera scanner works on iPhone (Safari/Chrome, iOS 11+) and Android (Chrome/Firefox). On mobile, we default to the rear (environment-facing) camera, which is usually better for scanning QR codes.
Is my camera feed recorded or stored?
Absolutely not. The live camera stream is processed entirely in your browser's memory. No frames, screenshots, or video are transmitted to any server. Camera access stops immediately when you click Stop Camera.
What if the QR code is on my screen?
You can use your device's front camera to scan QR codes displayed on another screen. Alternatively, take a screenshot and use the Upload tab to decode from the image file. This typically gives better results for screen-displayed QR codes.
Does the scanner drain my battery?
The scanner uses the camera only while the page is open and the scan is active. It stops immediately when you close the tab, navigate away, or click Stop Camera. Battery impact while scanning is comparable to a video call for a similar duration.
Can I scan multiple QR codes in a row without stopping?
Yes. After a successful scan, the camera stays active so you can bring the next QR into frame. The result panel updates with each new decode. Clear the result between scans if you want a clean slate.
What happens if my device has multiple cameras?
The Flip Camera button cycles between the available cameras. On most phones, this switches between the main rear camera and the front-facing camera. Devices with an ultra-wide or telephoto lens may expose those as additional options depending on the browser.