Skip to content

Sample barcodes

Barcodes to scan: free test codes in every format

Ready-made barcodes to scan in eleven formats, from QR and EAN-13 to PDF417 and Aztec. Point a scanner, till or app at the screen, or make your own test code below. Free, no sign-up.

Make your own barcode to scan

Each sample shows the value it holds, so you can check your scanner reads it back exactly.

Sample barcodes to scan for testing

The gallery above holds one working sample of every format we support: QR, EAN-13, UPC-A, EAN-8, UPC-E, Code 128, Code 39, ITF, Data Matrix, PDF417 and Aztec. Each one is printed with the value it encodes, so a test is simple. Scan it, then compare what your device returns with the text under the code.

Use them to check a new handheld scanner, confirm a till or POS system accepts a format, or try out a barcode reading library before you build around it. If a format fails, you know the problem is the scanner settings rather than a badly made label.

What each test barcode tells you

How to create a scannable barcode of your own

  1. Pick a format in the generator. Use EAN-13 or UPC-A for retail tests, Code 128 for anything with letters.
  2. Type the value. For EAN and UPC, leave off the last digit and the check digit is added for you.
  3. Check the preview, then download SVG for print or PNG for screens and documents.
  4. Print at 100% scale, or show it full size on a screen, and scan it with the device you are testing.

Why a test barcode fails to scan

When one of the samples will not read, the cause is usually one of a few things. The format may be switched off in the scanner's settings; ITF, Code 39 and the 2D formats are often disabled from the factory. The code may be too small for the device, so zoom the page or print it larger. Or the reader may be a 1D laser model, which cannot read QR, Data Matrix, PDF417 or Aztec at all.

If a scan returns the wrong value, check whether the scanner adds a prefix, suffix or check digit of its own. Many do, and the setting is in the scanner's manual. Test with the samples first, so you know the hardware works before you blame a label.

Tips for testing scanners, apps and web scan tools

Scanning from a screen is harder than scanning paper. Turn the brightness up, and try a second angle if glare hides the bars. Laser scanners often cannot read screens at all, so print a copy when testing one.

Developers testing a web scan barcode feature, or a React Native or Flutter scanning library, should test more than the happy path. Try a small code, a code at an angle and two codes in one frame. Our online scanner reads several codes in one image, which gives you a reference result to compare against. Images are read on your device and never stored.

Related

FAQ

Questions

Where can I find barcodes to scan for testing?

The gallery at the top of this page has a working sample in each of eleven formats, with the encoded value printed underneath. They are free to use for testing scanners, tills and apps.

How do I make a barcode to scan?

Choose a format in the generator, type your number or text and download it as SVG or PNG. Print it at 100% scale or show it on a screen, then scan.

Can I test a barcode scanner online?

Yes. Open a sample from this page on one device and scan it with the other. To check what a barcode image says without a hardware scanner, upload it to our online barcode scanner.

Can Google Lens scan barcodes?

Google Lens and most phone camera apps read QR codes and common retail barcodes. Support for Data Matrix, PDF417 and Aztec varies, so test those formats before you rely on them.

Are these sample barcodes real product numbers?

They are test values for checking that a code reads. Do not print them on products for sale; retail barcodes need numbers licensed from GS1.