Barcode Scanner Test

Check that a USB or Bluetooth barcode scanner works: click the box, scan a test barcode, and see exactly what the scanner typed, how fast, and which key it sent at the end. The page spots common setup problems such as a mismatched keyboard layout, Caps Lock or a missing Enter suffix.

  • 100% free
  • Works with any USB scanner
  • Diagnoses setup issues
  • Nothing uploaded

Keep this box focused. A working keyboard-wedge scanner types the code in a fast burst, usually followed by Enter.

Test barcodes

Scan these from the screen with an imager, or for laser scanners, which usually can't read screens.

Code 128, mixed caseChecks keyboard layout, Caps Lock and symbols.
EAN-13The retail barcode on most products.
Code 39Often disabled by default on scanners.
GS1-128 with separatorShows whether the GS (FNC1) separator comes through.
QR Code (2D)Only 2D (imager) scanners can read this.
Data Matrix (2D)Common on parts and medicine packs.

How to test a USB barcode scanner

  1. Connect the scanner by USB (or pair it over Bluetooth) and wait for the computer to recognise it.
  2. Click the test box so the cursor is inside it.
  3. Scan the test barcodes below, starting with the mixed-case Code 128.
  4. Check the result: the value, the speed, the key sent at the end, and any warnings about layout, Caps Lock or missing separators.

Quick answer: most USB barcode scanners act like a keyboard. When you scan, they type the code very fast and usually press Enter. If the test box shows the right value, the scanner is fine and any problem is in how your software receives it.

How keyboard-wedge scanners work

Almost all handheld USB scanners ship in “keyboard wedge” mode (USB HID keyboard). The computer sees them as a second keyboard, so they work in any program without drivers: a spreadsheet, a point-of-sale screen or this page. The scanner decodes the barcode itself, then sends one keystroke per character, usually 2 to 20 ms apart, followed by a suffix key. That speed is how this test tells a scan apart from typing.

Bluetooth scanners work the same way once paired as a keyboard. Some scanners can also run as a serial (COM) device or in HID POS mode, which software reads directly; in those modes nothing is typed, so a text box stays empty.

Common problems and fixes

SymptomLikely causeFix
Digits become symbols like & é " 'Scanner set to US layout, computer on AZERTYProgram the scanner’s keyboard country, or change the computer layout
- @ " # or Y/Z swappedUS vs UK or German layoutSame as above
Upper and lower case swappedCaps Lock onTurn off Caps Lock
Cursor doesn’t move to the next fieldNo suffix programmedAdd an Enter (CR) or Tab suffix
Extra characters at the start, like ]C1AIM symbology identifier enabledDisable the prefix
GS1 fields run togetherGS separator (FNC1) not transmittedEnable “FNC1 as GS” / ASCII 29 output
Beeps, types nothingSerial or HID POS modeScan the “USB keyboard” setup code
Some barcode types never readSymbology disabled (Code 39, ITF and Codabar often are)Enable it from the manual’s setup codes

Settings are changed by scanning programming barcodes printed in the scanner’s manual or quick-start guide. Search for your model number plus “programming guide” if you don’t have it.

No scanner? Use your camera

You can scan without hardware too. The online barcode scanner uses a phone or webcam, and scan barcodes to Excel builds a list from either the camera or a USB scanner. To make your own test labels, use the Code 128 generator.

Frequently asked questions

How do I test a barcode scanner?

Plug the scanner in, click the box at the top of this page and scan one of the test barcodes. If the scanner works, the value appears instantly with its speed and the key it sends at the end. The page then compares it with the expected value and points out problems such as a wrong keyboard layout or Caps Lock.

Why does my scanner type the wrong characters?

The scanner and the computer disagree about the keyboard layout. A keyboard-wedge scanner sends key positions, not letters, so a scanner set to US English on a French, German or UK computer turns digits and symbols into other characters. Scan the scanner’s “keyboard country” programming barcode from its manual, or switch the computer to the scanner’s layout.

Why does the scanned text come out in the wrong case?

Caps Lock is on. Keyboard-wedge scanners simulate Shift presses, so with Caps Lock on, upper and lower case swap. Turn Caps Lock off, or enable the scanner’s Caps Lock compensation setting if it has one.

My scanner beeps but nothing appears. What’s wrong?

Make sure the text box has focus (click inside it first). If it still types nothing, the scanner may be in serial (COM / virtual COM port) or HID POS mode instead of USB keyboard mode. Scan the “USB HID keyboard” setup barcode in its manual.

Why won’t my scanner read QR codes?

Laser and linear CCD scanners only read 1D barcodes. QR and Data Matrix codes need a 2D imager. If the 2D test codes here don’t scan, check the model’s specifications before changing settings.

Can a scanner read barcodes on a screen?

Camera-based 2D imagers usually can. Laser scanners usually can’t, because a screen doesn’t reflect the laser the way paper does. Print this page to test a laser scanner.

Does this page send my scans anywhere?

No. The test runs entirely in your browser. Nothing you scan is uploaded or stored.

Related free tools