Lecteur de codes-barres

Scannez et décodez des codes-barres avec l'appareil photo de votre appareil ou en important une image. Tout le traitement s'effectue dans votre navigateur.

Glissez-déposez une image ici, ou

Related on QRCodeFYI

QR Code Reader

Scan and decode QR codes from images or camera.

How to Use

  1. 1
    Enable camera or upload an image

    Click 'Scan with Camera' to activate your device's camera feed, or choose 'Upload Image' to select a photo of a barcode from your file system. Ensure the barcode is well-lit and occupies a significant portion of the frame.

  2. 2
    Point the camera at the barcode

    Hold the barcode steady within the viewfinder guide box. The scanner continuously analyzes the feed; most 1D barcodes decode within one to two seconds when the symbol is flat, undamaged, and in focus.

  3. 3
    Review the decoded data

    The decoded value and detected symbology appear immediately after a successful read. Copy the result, or use the product-lookup link to retrieve GS1 registry information for EAN and UPC codes.

About

Barcode scanning relies on the optical contrast between dark bars and light spaces. In laser-based retail scanners, a collimated beam sweeps across the symbol and the intensity of reflected light is measured as the beam crosses each bar and space. The resulting waveform of high and low reflectance values is digitized and compared against the timing rules of the target symbology to reconstruct the encoded digit string. Camera-based readers follow a similar principle but work on a two-dimensional pixel array, sampling rows of the image to find candidate barcode patterns before applying the same decoding logic.

The ISO/IEC 15416 standard defines how 1D barcode print quality is graded on a scale from 4.0 (excellent) down to 0 (fail). The grade is determined by the worst-performing scan reflectance profile across ten scan lines through the symbol. Key parameters include minimum reflectance, symbol contrast, modulation (the consistency of bar and space widths), and defects (voids in bars or spots in spaces). GS1 Application Standard specifications for each distribution channel — retail point-of-sale, general distribution, storage and transport — specify minimum acceptable quality grades appropriate to the scanning environment.

For 2D symbologies, decode reliability is enhanced by Reed-Solomon error correction rather than print-quality grading alone. QR Code offers four error-correction levels (L, M, Q, H) that allow 7%, 15%, 25%, or 30% of codewords to be reconstructed even if the corresponding modules are damaged or missing. Data Matrix uses ECC 200, the current standard format, which applies Reed-Solomon coding across both rows and columns to provide robust recovery. Choosing the correct symbology and error-correction level for an application's scanning environment — outdoor vs. indoor, clean vs. harsh, high-speed conveyor vs. handheld — is a core decision in barcode system design.

FAQ

Why won't the camera read a barcode on my phone screen?
Scanning a barcode displayed on a screen introduces moiré interference — a visual pattern created by the interaction between the pixel grid of the displaying screen and the optical sensor in the scanning camera. This can confuse line-based decoders that rely on precise bar-to-space contrast ratios. Increasing the screen brightness to maximum and slightly tilting the source device relative to the scanning camera often reduces moiré enough to achieve a successful decode. Alternatively, capturing a screenshot and uploading it as an image file bypasses the optical interference entirely.
What barcode formats can a camera-based reader recognize?
Modern browser-based barcode readers using the BarcodeDetector API or JavaScript libraries such as ZXing can recognize a wide range of 1D and 2D symbologies including EAN-8, EAN-13, UPC-A, UPC-E, Code 39, Code 128, ITF-14, QR Code, Data Matrix, PDF417, and Aztec Code. The available symbologies depend on the underlying decoding library. Hardware laser scanners in retail environments are typically optimized for a narrower set of 1D linear codes and offer faster decode rates for those specific formats.
Why does print quality affect scanning reliability so much?
A barcode's readability depends on precise bar width ratios and sharp bar edges. The ISO/IEC 15416 standard for linear barcode print quality evaluates symbols across eight parameters including minimum reflectance, edge contrast, modulation, and defects. When bars bleed into spaces during printing — a common outcome with inkjet printing on absorbent substrates — the effective bar width increases, shifting the encoded value or pushing the symbol below the minimum quality grade. GS1 recommends achieving a minimum print quality grade of 1.5 (on a 4.0 scale) for symbols used in open trade.
Can this tool read damaged or partially obscured barcodes?
1D linear barcodes offer no error correction; a single damaged bar or space can cause a misread or decode failure. 2D symbols such as QR Code and Data Matrix include Reed-Solomon error correction that can reconstruct data even when a significant portion of the symbol is obscured or damaged — QR Code Level H can recover data with up to 30% symbol damage. For damaged 1D barcodes, attempting multiple scan angles or image-enhancement preprocessing (increasing contrast, sharpening edges) can improve decode success.
Is the barcode reader storing images I upload?
Barcode reading on BarcodeFYI is performed entirely within your browser using client-side JavaScript. Images captured via camera or uploaded from your device are processed locally in memory and are never transmitted to a server. The decoded barcode value is displayed in your browser and is not logged or stored. This client-side architecture ensures that sensitive barcodes — such as those on medical prescriptions, financial documents, or personal identity cards — remain private.