Test a barcode scanner

Click in the box and scan. You see every character the scanner sent, its prefix and suffix keys, the speed, and what's different from the code you scanned.

Free, no sign-up, no credit card. Codes never expire, and nothing you type is sent anywhere.

Press Escape, then Tab, to leave the box with the keyboard.

Nothing yet. Click in the box and scan a barcode.

Sample codes to scan

Choose one to compare what your scanner sends with what the code holds. Laser scanners may not read a screen well. Print the sample sheet for them, or use an imager.

How to test a barcode scanner

  1. Plug in or pair the scanner and click in the box.
  2. Scan a sample code on this page or one from the printable sample sheet, then pick that code in the list.
  3. Read what came in: the data, any keys before or after it, a symbology identifier, and the speed.
  4. If the data differs from the code, read the likely cause under the box and change that setting on the scanner.

What to know

How a scanner reaches the computer

  • Most handheld scanners pretend to be a keyboard. They type what they read, one key at a time, and often end with Enter or Tab.
  • This page only reads those key presses, so any USB, Bluetooth, or wireless scanner in keyboard mode works. Scanners set to a serial port or to a vendor app don't type, and show nothing here.
  • A scanner sends a character every few milliseconds, while a person takes 100 ms or more. The speed shown tells the two apart.

What the report shows

  • Data is what came in after any symbology identifier, as text. Characters shows how many.
  • Keys before and after the data are a scanner's prefix and suffix, such as Enter, Tab, or a function key.
  • A symbology identifier is an AIM code, such as ]E0 for EAN or UPC, ]C1 for GS1-128, or ]d2 for Data Matrix, that some scanners put in front.

Source: ISO/IEC 15424, data carrier identifiers (AIM symbology identifiers)

Common problems

Digits come in as symbols such as & é " '

The scanner assumes a US keyboard and the computer is set to a French (AZERTY) layout. Change the scanner's keyboard country setting to match the computer, or the computer's layout to match the scanner.

Letters are in the wrong case, or Y and Z are swapped

Wrong case usually means Caps Lock is on, or the scanner's case setting is flipped. Swapped Y and Z means a German-style layout on the computer and a US setting on the scanner.

The last digit is missing

Some scanners leave off the check digit of EAN, UPC, and similar codes by default. Look in the scanner manual for a setting that sends the check digit.

Extra characters appear in front, such as ]E0

That is a symbology identifier. If your program doesn't expect it, switch off the identifier in the scanner's settings, or have the program strip it.

Questions

Why does nothing appear when I scan?

Click in the box first, because the scanner types into whatever is selected. If the box is selected and still nothing appears, the scanner may not be in keyboard mode, or the barcode type may be switched off in its settings.

Why do I need Keep Tab inside the box?

Many scanners end a scan with Tab, and Tab normally moves the keyboard to the next control. With the choice on, the Tab is caught and shown. Press Escape, then Tab, to leave the box with the keyboard.

Can I scan the codes on the screen?

Imagers and phone-style scanners usually can. Laser scanners may not read a screen, so print the sample sheet and scan the paper.

Does this page see what I scan?

The keys are read in your browser and nothing is sent anywhere. Scan only sample codes, and not private codes, into any box on any page.