Skip to main content
FlexibleQR Logo FlexibleQR
100% In-Browser Privacy

Free Online QR Code Scanner

Scan and decode QR codes instantly using your laptop webcam, phone camera, or image file uploads. No app download required, fast hardware detection, and complete data privacy.

Camera Access Required

All image processing occurs strictly in your browser. Video is never streamed to any server.

How to Scan a QR Code Online in 3 Steps

  1. Select Input Stream or Image Upload: Choose Live Camera Scan to utilize your desktop webcam or mobile rear camera, or switch to Upload Image File to decode a screenshot, saved photo, or digital document.
  2. Grant Permission or Drop Graphic: Tap "Start Camera" and allow browser camera access when prompted by your operating system, or drag and drop any PNG, JPEG, SVG, or WebP screenshot onto the designated upload zone.
  3. Inspect Decoded Content & Launch: The scanner decodes the barcode in local device memory in milliseconds. Review the raw string or verified URL, copy the payload to your clipboard, or safely open the link in a protected tab.

Technical Architecture & Computer Vision Decoding Specifications

1. Raw Payload Parsing & Protocol Syntax Sanitization

The decoding pipeline transforms raw demodulated bitstreams into structured semantic objects conforming to ISO/IEC 18004. Upon Reed-Solomon parity verification, the engine evaluates the 4-bit mode indicator to unpack data according to its encoding mode (Numeric, Alphanumeric, Byte Mode UTF-8 per RFC 3629, or Kanji). The client-side parser identifies protocol schemas including RFC 3986 URLs (https://), ZXing wireless records (WIFI:T:WPA;S:MySSID;P:mypassword;;), electronic vCards (BEGIN:VCARD), telephony links (tel:), SMS drafts (smsto:), and cryptocurrency transactions (bitcoin:).

Crucially, scanned barcodes represent untrusted user input that may contain malicious payloads, such as cross-site scripting (XSS) vectors or deceptive homograph URLs. FlexibleQR implements strict DOM sanitization: raw decoded strings are rendered exclusively via safe text nodes or encoded properties, preventing script injection. Web addresses are parsed through the browser's native new URL() constructor to validate host protocols, safely rejecting dangerous pseudo-schemes like javascript: or data:.

2. iOS AVFoundation vs. Android CameraX & WebRTC Integration

In-browser optical scanning interfaces with hardware camera stacks via the W3C navigator.mediaDevices.getUserMedia WebRTC pipeline. On Apple iOS devices running Safari, camera access is managed through AVFoundation. Apple mandates that camera capture must be explicitly initiated by an interactive user gesture (such as tapping "Start Camera") within a secure HTTPS context. iOS sandboxes video frames inside the WebKit process, where supported versions leverage the GPU-accelerated BarcodeDetector API for instantaneous hardware decoding.

On Android devices running Chrome, Edge, or Firefox, video streaming is routed through Android's Camera2 or CameraX HAL (Hardware Abstraction Layer). FlexibleQR explicitly specifies camera constraints (video: { facingMode: 'environment' }) to prioritize the primary high-resolution autofocus rear camera over wide-angle or macro auxiliary lenses. For desktop operating systems (macOS, Windows, Linux) and browsers lacking native BarcodeDetector support (such as Mozilla Firefox), the application seamlessly activates an optimized WebAssembly / JavaScript jsQR engine that processes offscreen Canvas pixel buffers at 30 to 60 frames per second.

3. Minimum Print Dimensions, Optical Focal Distance & DPI Physics

Successful optical barcode decoding depends on satisfying the optical distance formula: Minimum Size = Scan Distance / 10. A code held 30 cm away requires a minimum physical dimension of 3.0 × 3.0 cm. A frequent cause of desktop webcam scanning failure is optical defocus: standard laptop webcams feature fixed-focus lenses calibrated for human faces situated 40 to 60 cm away. Holding a small business card 10 cm from a webcam produces severe optical blur, destroying the high-frequency edge contrast required by binarization filters.

For scanning printed media and physical packaging, barcodes must be produced at 300 DPI or higher using the formula: Pixels = Inches × 300 DPI. In addition, the physical module pitch must remain at or above 0.40 mm (0.016 inches): Module Width = Total Symbol Width / Matrix Grid Dimension. When scanning barcodes displayed on secondary computer monitors or phone screens, camera sensors frequently capture optical moiré interference patterns caused by the camera's bayer filter grid beating against the display subpixel matrix; tilting the camera 15° to 20° disrupts moiré aliasing and restores instant recognition.

4. Reed-Solomon Error Correction & Quiet Zone Architecture

The ISO/IEC 18004 decoding pipeline incorporates Reed-Solomon error correction over Galois Field GF(256). During frame processing, the computer vision algorithm detects the 1:1:3:1:1 Position Detection Patterns, constructs a projective homography matrix to de-skew perspective distortion, and samples the module grid. The decoder computes syndrome polynomials: if no transmission errors exist, all syndromes evaluate to zero. When damage, glare, or occluded center logos are detected, the Berlekamp-Massey algorithm determines the error locator polynomial, and the Forney algorithm calculates error magnitude values to reconstruct corrupted codewords.

The error recovery ceiling is dictated by the barcode's encoded level: Level L (~7%), Level M (~15%), Level Q (~25%), or Level H (~30%). However, decoding algorithms cannot begin Reed-Solomon algebraic evaluation unless the symbol boundary is isolated. ISO/IEC 18004 mandates an unobstructed Quiet Zone of at least 4 modules (4X) of solid, light background surrounding all four exterior edges. If printed text, artwork, or packaging graphics encroach upon this boundary, the binarization filter fails to distinguish the tracking eyes from external imagery, causing total recognition failure.

When to Use an Online In-Browser Scanner

Desktop Mac & Windows PCs

Scan physical QR codes on business cards, books, or badges using your computer's built-in webcam without reaching for your phone.

Scanning Screen Screenshots

Decode QR codes you encounter on websites, PDFs, or social media feeds without needing a second device.

Verifying Pre-Print Barcodes

Test your generated barcodes on screen before sending designs to commercial printing companies.

Inspecting Suspicious Links Safely

Inspect the raw URL encoded inside a suspicious barcode without automatically opening it in your browser.

5 Tips for Fast and Reliable Scanning

  • Ensure Adequate Lighting: Webcams perform best when bright ambient light illuminates the physical code evenly.
  • Avoid Overhead Glare: If scanning a glossy phone screen or plastic card, tilt it slightly to bounce reflections away from the lens.
  • Hold 15–30 cm Away: Webcams have fixed focal points; holding the code too close causes optical blur.
  • Clean Your Camera Lens: Wipe finger smudges off your laptop webcam or phone lens with a soft cloth.
  • Read Mobile Scanning Guide: Check our tutorial on How to Scan a QR Code on iPhone & Android.

Frequently Asked Questions about Online QR Scanning

Clear, accurate answers to common questions about QR codes, privacy, and scan compatibility.

Why is my camera not focusing or detecting the barcode?

Laptop webcams and budget front-facing cameras usually have fixed focal lenses with a minimum focal distance of 15 to 30 centimeters (6 to 12 inches). Holding the code too close causes severe optical blur. Additionally, check for direct overhead light reflections on phone screens or glossy laminated prints, as specular glare obscures module contrast. Hold the code steady at arm's length under balanced room light.

Is my live camera stream or uploaded screenshot sent to your server?

No. The entire optical image acquisition, frame sampling, binarization, and barcode decoding pipeline executes 100% locally inside your device browser memory using HTML5 Canvas, the W3C BarcodeDetector API, and client-side jsQR. Video stream frames and uploaded image files never leave your device and are never transmitted to FlexibleQR servers.

How do I scan a QR code from a desktop screenshot?

You do not need a smartphone to decode QR codes found on websites, social feeds, or PDF documents. Simply capture a screenshot using your computer's native shortcut (Windows: Win + Shift + S; Mac: Cmd + Shift + 4), save the image or copy it to your clipboard, switch to the 'Upload Image File' tab, and drag the file onto the drop zone for instantaneous in-memory decoding.

How do I troubleshoot camera permission issues on iOS Safari and Android Chrome?

On iOS Safari: Tap the 'aA' or lock icon on the left side of the Safari address bar, tap 'Website Settings', and change Camera permissions to 'Allow'. Alternatively, go to iOS Settings > Safari > Camera. On Android Chrome: Tap the tune/lock icon beside the URL in the top address bar, select 'Permissions', and toggle 'Camera' on. Always ensure the page is served over secure HTTPS.

What barcode and data payload formats can this scanner decode?

FlexibleQR decodes all standard ISO/IEC 18004 QR code matrix versions (Version 1 through Version 40) at all four error correction levels (L, M, Q, H). It automatically parses and highlights web URLs, WiFi network strings (WIFI:), vCard 3.0 contacts, email mailto: links, SMS/MMS messages, calendar iCalendar VEVENT entries, and raw alphanumeric text.