Barcode question answer

Why does my generated barcode not scan?

For cases where a barcode is generated but a phone or scanner cannot read it reliably.

Direct answer

A barcode usually fails to scan because of invalid content, the wrong barcode format, insufficient quiet zones, low contrast, small size, distorted scaling, poor print quality or limited scanning capability in the app or device being used. Test the original image with more than one scanner before inspecting the printed label.

Common causes of barcode scan failure

Cause
Symptom
Fix
Content or format
Invalid output or missing characters
Match the value to the barcode format rules
Quiet zone
Barcode touches borders or text
Leave blank space on both sides
Small size
Works on screen but not after printing
Increase width, height and print resolution
Low contrast
Slow or unstable scanning
Use dark bars on a light background
Print quality
Blurred or broken bars
Export SVG or high-resolution PNG and check printer settings
Scanner or app capability
One scanner reads it but another does not
Cross-test with the actual scanner, PDA or app used in the workflow

Recommended workflow

1

Test the original preview with multiple scanners

Use the target scanner, PDA or app when possible. If only one app fails, the issue may be scanner capability or supported barcode formats.

2

Check content and format

Use Code 128 for mixed alphanumeric IDs. Use EAN, UPC or ISBN only when the value follows those standards.

3

Check quiet zones

Keep blank space around both sides of the barcode.

4

Print larger

Avoid squeezing the barcode horizontally because it changes bar width ratios.

5

Try SVG or larger PNG

Use a sharper export format when print output looks soft or pixelated.

Common mistakes

Taking screenshots of barcodes and reusing compressed images.
Squeezing the barcode horizontally to save label space.
Using low-contrast or inverted colors.
Changing check digits in EAN, UPC or ISBN values manually.

FAQ

Why can my phone scan it but my scanner cannot?

Phones often have higher tolerance. Dedicated scanners can be more sensitive to size, quiet zones, contrast and print quality.

Why can one scanning app read it while another cannot?

Scanning apps and devices differ in supported formats, autofocus, image processing and tolerance. Always test with the actual scanner or app used in your workflow.

Do barcodes need blank space around them?

Yes. The blank area is called the quiet zone and helps the scanner detect the barcode boundaries.

Can I use colored barcodes?

Yes, but dark bars on a light background are safest. Avoid low contrast, gradients and inverted colors.