Printing and sizes
How to choose a barcode scanner — 1D or 2D, corded or wireless
A linear scanner reads EAN-13 but not a QR code or GS1 DataMatrix. What to check before buying so the scanner is not too weak a year from now, and how to test it on the codes you actually print.
6 min read
A barcode scanner looks like a simple gun with a trigger, and it is often bought like one: the cheapest that "reads barcodes". The trouble is that "barcodes" are several very different things. A scanner that reads the EAN-13 on a box flawlessly may not notice a QR code on an invoice, a GS1 DataMatrix on a medicine or a code shown on a customer's phone screen at all.
This guide helps you match a scanner to the codes you have today and will have a year from now.
Three kinds of scanner
Laser scanner. The classic: a red laser line sweeps across the code and a sensor measures the reflected light. It reads linear codes only, the ordinary "stripes": EAN-13, UPC, Code 128, GS1-128, ITF-14. It handles codes at a distance and on glossy surfaces well. It will never read a QR code, because it does not see an image, only one line.
Linear CCD scanner, or linear imager. Instead of a laser it has a row of sensors like a camera's, but only one row. It also reads linear codes only. It is usually cheaper than a laser scanner and copes better with poorly printed codes, but has to be held closer.
2D scanner, or imager. Inside is a small camera that takes a picture and looks for codes in it. It reads linear and two-dimensional codes: QR, Data Matrix, GS1 DataMatrix, PDF417, Aztec. It also reads codes from phone screens well, usually at any angle, without aiming a line.
A 2D scanner reads everything a 1D scanner does, and more. Before you pick a cheaper model for linear codes only, compare it with the same manufacturer's 2D model. A 1D-only scanner makes sense when you are certain you will never see a two-dimensional code.
Why 2D is the safer choice
Two-dimensional codes are arriving where only stripes used to be:
- QR codes on KSeF invoices (Poland's national e-invoicing system) lead to a check of the invoice. If you receive invoices on paper, a 1D scanner cannot read them. See the guide on the QR code on invoices.
- GS1 DataMatrix stores a product number, an expiry date, a batch and a serial number in one small square. It is used in healthcare, and you can make one yourself in the generator.
- Sunrise 2027, GS1's plan for shop tills to read two-dimensional codes alongside EAN-13. The details, and what the plan does not mean, are in the guide on Sunrise 2027.
- Codes on phone screens: tickets, coupons, parcel pickup codes, loyalty cards in apps. A laser scanner often fails to read a code from a screen, because the screen emits its own light and reflects the laser differently from paper.
A scanner lasts several years. Buying a 1D-only scanner today, you risk having to buy a second one during its life.
Corded, wireless, presentation
A USB cable is the simplest choice at a till or a desk. No batteries to charge, nothing to lose.
Wireless helps in a warehouse and with large goods you cannot lift to the till. It usually connects over Bluetooth or through its own base station plugged into the computer. A base station usually has a longer range and needs no pairing with the computer. Check whether the scanner can store scanned codes when you go out of range.
Presentation or stand-mounted scanners read a code on their own as soon as it appears in front of the window, without pressing a trigger. Useful at a till when both hands hold the goods, and for codes on phones that customers hold up. Many handheld scanners come with a stand that has this mode, or offer one as an accessory.
How a scanner talks to the computer
Most scanners plugged into USB pretend to be a keyboard. The scanned code appears wherever the cursor is, as if someone had typed it, and at the end the scanner usually "presses" Enter. No driver is needed and it works with any program: a spreadsheet, a point-of-sale system, a browser.
This mode has two traps worth knowing about before buying:
- Keyboard layout. The scanner "types" characters as if it had a particular keyboard layout. When the computer is set to a different one, letters and special characters can come out different from those in the code. The digits of an EAN-13 usually come through fine, but codes with letters, accented characters or a web address are worth checking.
- Invisible characters in GS1 codes. A GS1-128 or GS1 DataMatrix with several variable-length fields, such as a batch and a serial number, has an invisible separator character between them. In keyboard mode this character is sometimes lost or replaced with something else, depending on the scanner's settings. A program that splits the code into fields then gets one joined string and misreads the batch or the date.
Scanners are usually configured by scanning special codes from the manufacturer's manual. That is where you set the keyboard layout, the character sent after a code and how the GS1 separator is passed on. If you work with GS1 codes, check before buying whether the scanner's manual describes that setting.
Testing a scanner before you rely on it
The best test is your own codes, printed the way you really print them.
- Print a set of the codes you use: an EAN-13 from a label, a GS1-128 from a carton, a QR code. You can make each in the generator, for example EAN-13 or GS1 DataMatrix with a date and a batch.
- Open a plain text editor and scan each code. Compare what appears with the code's content character by character.
- Scan a code from a phone screen, if customers will show codes in apps.
- Try the weaker codes: a small label, a thermal print after a few weeks in the sun, a code on a curved bottle.
If the result in the editor differs from the code's content, the scanner is not always to blame. For comparison, load a photo of the same code into the barcode reader in your browser. It shows the code's content, its symbology and, for GS1 codes, splits the string into fields. If the browser reads the code correctly and the handheld scanner does not, the problem is in the scanner's settings, not in the code.
A short checklist before buying
- Which codes do you read? If even one is two-dimensional, or will be, take a 2D scanner.
- Will codes be on screens? Then a 2D scanner, ideally with a presentation mode on a stand.
- Where do you work? At a desk a cable, in a warehouse wireless with memory, at a till a stand.
- Do you read GS1 codes with variable fields? Check in the manual how the scanner passes on the GS1 separator.
- Which system? Keyboard mode works everywhere, but if your point-of-sale system requires a specific mode, ask its supplier before buying.
The scanner is the end of a code's journey that starts at the printer. How to print a code the scanner will have no trouble with is covered in the guides on choosing a label printer and on printer resolution.