Skip to main content

Free Online Barcode Generator

Create industry-standard linear 1D barcodes for retail packaging, Amazon FBA inventory, shipping logistics, and warehouse tracking. Export print-ready crisp vector SVG and high-density PNG files without watermarks or registration.

Select Barcode Format
High-density 300 DPI Barcode Output

Direct Guide: How to Generate and Print Scannable Barcodes

To generate an industrial-grade barcode, select the symbology matching your distribution channel: Code 128 for shipping labels and Amazon FBA FNSKU, EAN-13 for international retail products, UPC-A for North American point-of-sale, or Code 39 for internal asset tracking. Enter your numeric or alphanumeric payload, preview the generated barcode in real time, and download as vector SVG for zero-pixelation commercial printing or high-resolution PNG for label printers (Zebra, Dymo, Brother). All barcode algorithms run client-side in your browser for absolute data confidentiality.

Supported Barcode Symbologies & Industry Standards

Choose the optimal barcode format based on data density, scanning hardware, and international retail standards.

Logistics & Amazon FBA

Code 128 (High Density)

A modern, highly compact linear barcode capable of encoding all 128 ASCII characters (numbers, uppercase and lowercase letters, and punctuation). Code 128 utilizes auto-switching between Code Sets A, B, and C to compress consecutive digit pairs, making it the global standard for shipping container labels (GS1-128), packaging cartons, and Amazon FBA FNSKU product barcodes.

Alphanumeric • Variable Length • Checksum Included
Global Retail POS

EAN-13 (GTIN-13)

The 13-digit standard barcode used for consumer goods sold at retail point-of-sale (POS) terminals across Europe, Asia, Latin America, and Oceania. Composed of a GS1 country prefix (2–3 digits), manufacturer prefix, product item reference number, and a mandatory Modulo 10 check digit. Recognized by every supermarket laser scanner globally.

13 Numeric Digits • Fixed Length • Modulo 10 Check Digit
US & Canada Retail

UPC-A (GTIN-12)

The Universal Product Code standard for retail products sold in the United States and Canada. Contains 12 numeric digits comprising a single-digit numbering system character, 5-digit manufacturer code, 5-digit product code, and a final Modulo 10 verification digit. Fully compatible with North American POS cash registers and inventory systems.

12 Numeric Digits • Fixed Length • Modulo 10 Check Digit
Industrial & Asset Tracking

Code 39 (3 of 9)

A rugged, classic alphanumeric symbology encoding 43 characters (uppercase letters A–Z, numbers 0–9, and special symbols -, ., $, /, +, %, and space). Enclosed by start/stop asterisk symbols (*). Widely deployed across government, military (LOGMARS), automotive supply chains, healthcare specimen tubes, and internal warehouse badge identification.

Alphanumeric • Variable Length • Start/Stop Delimiters
Pre-Press & Commercial Printing Specifications

Barcode Printing Guidelines: Quiet Zones, 300 DPI & Bar Width

Ensure 100% first-pass scan rates across warehouse laser guns, flatbed checkout scanners, and mobile apps.

Barcode scanning failures cost retail supply chains millions in rejected pallets and manual checkout delays. Following strict GS1 pre-press printing guidelines guarantees flawless scanning:

X-Dimension (Narrow Bar Width)

0.330 mm (13.0 mils)

The nominal width of the narrowest bar or space in the barcode. For retail POS scanners, the recommended GS1 range is 0.264 mm to 0.660 mm. Never scale barcodes down below 80% magnification (0.264 mm / 10.4 mils) or laser beams will fail to resolve individual bars.

Quiet Zones (Light Margins)

Min 10x X-Dimension

The mandatory blank space preceding the first bar and following the final bar. For EAN-13, a left quiet zone of at least 3.63 mm (11 modules) and right quiet zone of 2.31 mm (7 modules) is mandatory. Encroaching artwork, text, or package folds within the quiet zone ruins scanner decodability.

Print Contrast Signal (PCS)

> 75% Reflectance

Optical laser scanners operate on red wavelength light (~630–670 nm). Never print red bars on white backgrounds, as red ink reflects red laser light exactly like white paper, rendering the barcode invisible to scanners. High-contrast black bars on solid opaque white backing are essential.

Resolution & Vector Export

300–600 DPI / Native SVG

Raster formats (low-resolution JPG/PNG) cause edge anti-aliasing and 'ink bleed' across bar gaps. Always export vector SVG for packaging plate layout, or output at least 300 DPI native resolution aligned with your thermal printer's physical dot pitch (203 DPI or 300 DPI).

Thermal Label Printer Recommendations (Zebra, Dymo, Brother)

When printing on direct thermal or thermal transfer roll printers, print barcodes in 'picket fence' orientation (bars running parallel to the media feed direction) rather than 'ladder' orientation. Ladder orientation can cause bar thickness variations if print speed fluctuates. Set thermal head darkness to avoid both thermal burn bridging (bars bleeding together) and faint printing (pitted bars).

eCommerce Logistics Standards

Amazon FBA FNSKU Labeling Rules & Best Practices

Avoid receiving rejections, unexpected labeling fees, and stranded inventory at Amazon fulfillment centers.

Selling on Amazon via Fulfillment by Amazon (FBA) requires compliance with strict physical labeling standards. The Fulfillment Network Stock Keeping Unit (FNSKU) barcode connects physical units directly to your seller account:

FNSKU Format & Symbology

Amazon FNSKU codes starting with 'X00' must be formatted as Code 128 linear barcodes. The label must display the 10-character FNSKU identifier, product condition (e.g., 'New'), and title.

Label Dimensions & Thermal Stock

Recommended label sizes are 1 inch x 2-5/8 inches (30-up on US Letter sheets) or 2 inches x 1 inch on thermal roll printers (Zebra, Munbyn, Rollo). Labels must use non-reflective white matte adhesive paper.

Complete Manufacturer Barcode Coverage

Every single item must have exactly one visible scannable barcode. If your product box already has an original manufacturer UPC or EAN printed on it, your FNSKU label must completely cover it to prevent warehouse scanner confusion.

Outer Carton Shipping Labels

Master carton shipping boxes require Amazon FBA Box ID labels and optional GS1-128 or ITF-14 carton barcodes positioned flat on the side of the box, at least 1.25 inches (32 mm) away from any taped seam or corner fold.

Algorithmic Precision

Modulo 10 Check Digit Calculation: Mathematical Breakdown

How retail cash registers and scanners verify barcode integrity without scanning errors.

Both EAN-13 and UPC-A barcodes include a final check digit calculated using the GS1 Modulo 10 algorithm. This algorithmic check prevents misreads caused by dirty lens optics or damaged packaging. Here is how the 13th digit of EAN-13 is calculated:

Step 1

Sum digits in even positions

(d2 + d4 + d6 + d8 + d10 + d12) × 3

Add together all digits located at even positions (counting from left to right, positions 2, 4, 6, 8, 10, 12). Multiply the resulting sum by 3.

Step 2

Sum digits in odd positions

(d1 + d3 + d5 + d7 + d9 + d11) × 1

Add together all digits located at odd positions (positions 1, 3, 5, 7, 9, 11). Keep the weight as 1.

Step 3

Calculate the total combined sum

Total = (Even Sum × 3) + (Odd Sum × 1)

Add the result of Step 1 to the result of Step 2 to obtain the total check sum.

Step 4

Calculate the Modulo 10 remainder

Check Digit = (10 - (Total % 10)) % 10

Find the smallest number that must be added to the total to reach a multiple of 10. If the remainder is 0, the check digit is 0. Otherwise, subtract the remainder from 10.

Real-World Example: Calculating EAN-13 Check Digit

Payload: 5 0 1 2 3 4 5 6 7 8 9 0
Even sum (0+2+4+6+8+0)×3 = 60 | Odd sum (5+1+3+5+7+9) = 30 | Total = 90 | (10 - (90 % 10)) % 10 = 0
Complete 13-Digit GTIN: 5012345678900
Hardware Compatibility

Barcode Scanner Hardware Compatibility Matrix

Compare scanning performance across traditional laser guns, industrial area imagers, and smartphone cameras.

Scanner TechnologySensor MechanismSupported BarcodesRecommended Use CaseRead Range & Speed
1D Laser Scanner Oscillating red laser diode (650 nm) & photodiode receiver Code 128, EAN-13, UPC-A, Code 39 Warehouse racking, supermarket conveyor belts, high throughput Up to 15 m (long-range laser) • Extremely fast (100+ scans/sec)
1D Linear CCD Imager Linear LED array with charge-coupled sensor line High-density retail barcodes, electronic screens, curved bottles POS retail counter, library checkout, pharmacy pill bottles Contact to 30 cm • High durability (no moving optical mirrors)
2D CMOS Area Imager 2D camera sensor (global shutter) with omnidirectional decoding Both 1D Barcodes (Code 128, EAN) and 2D QR / Data Matrix Logistics hub sorting, airport boarding gates, omnichannel retail Omnidirectional 360° scanning • Reads damaged or smudged labels
Smartphone Camera Mobile CMOS rolling shutter with software decoding (MLKit / Vision) High-contrast 1D and 2D QR codes Inventory audits, small business point-of-sale, customer self-checkout 10 cm to 1 m • Requires adequate ambient lighting & steady autofocus
Quality Assurance

Troubleshooting Barcode Scan Failures: Diagnostic Guide

Common reasons why barcodes fail to scan on retail registers and how to fix them.

Barcode laser reflects but does not beep / decode

Cause: Truncated Quiet Zones: Artwork, box text, or shrink wrap borders are too close to the outer bars.

Solution: Ensure at least 10x narrow bar width (X-dimension) of completely blank light space on both left and right ends of the barcode.

Scanner fails completely on colored packaging

Cause: Poor color contrast: Using red, orange, or yellow ink for bars, or printing dark bars on brown kraft cardboard.

Solution: Scanners illuminate with red 660nm light. Bars must absorb red light (black, dark blue, dark green), and backgrounds must reflect it (white, cream, bright yellow).

Thermal label barcode scans intermittently

Cause: Thermal head print bleed or burn bridging: Bars are bleeding into white spaces due to high heat settings.

Solution: Reduce thermal printer darkness/temperature setting and clean the print head with isopropyl alcohol swabs to eliminate thermal residue streaks.

Barcode on curved bottle or can fails to scan

Cause: Geometric distortion: Horizontal barcode curves around the cylindrical circumference, compressing bars in optical perspective.

Solution: Rotate the barcode 90 degrees ('ladder' orientation) so that the bars run vertically along the straight length of the bottle.

1D Linear Barcode vs 2D QR Code: Comprehensive Comparison

Understanding technical specifications, data storage, scanner requirements, and use cases.

Architectural Metric1D Linear Barcodes (Code 128, EAN, UPC)2D QR Codes (ISO/IEC 18004)
Data Storage Capacity 20 to 80 characters (numeric or alphanumeric) Up to 7,089 numeric digits, 4,296 alphanumeric, or 2,953 binary bytes
Data Types Encoded Part numbers, SKU identifiers, serial keys, GTINs Website URLs, vCards, Wi-Fi credentials, crypto addresses, PDFs
Scanner Hardware Laser scanners, 1D CCD imagers, commercial 2D imagers Native smartphone cameras (iOS/Android), 2D CMOS area scanners
Error Correction Single checksum digit (Modulo 10 or Modulo 103) Reed-Solomon 4 levels (7% L, 15% M, 25% Q, 30% H data recovery)
Scanning Orientation Unidirectional or raster laser line across all bars Omnidirectional 360° reading with 3 corner finder patterns
Physical Footprint Requires wide horizontal footprint (30–60 mm) Compact square footprint (can be printed down to 10×10 mm)
Primary Industry Retail POS checkout, pallet shipping, warehouse logistics Interactive marketing, product authentication, mobile menus, payments

Frequently Asked Questions About Barcode Generation & Printing

Detailed technical and commercial answers regarding GS1 certification, Amazon FBA, and barcode formatting.

Is this online barcode generator 100% free for commercial use? ↓

Yes. Every barcode generated on QR-Build is completely free for commercial packaging, retail distribution, warehouse inventory, and Amazon FBA listings. We do not charge licensing fees, add watermarks, or place expiration dates on your barcode graphics.

Do I need to buy barcodes from GS1 to sell in retail stores? ↓

Yes. If you are selling physical goods through traditional retail stores (Walmart, Target, Carrefour, Tesco) or major online marketplaces (Amazon brand registry), you must purchase official GS1 Company Prefixes to register legitimate GTIN-13 (EAN) or GTIN-12 (UPC) barcodes. Using invented random numbers will lead to marketplace suspension.

What is the difference between EAN-13 and UPC-A? ↓

UPC-A is a 12-digit barcode standard primarily used in the United States and Canada. EAN-13 is a 13-digit standard used in Europe, Asia, Latin America, and Oceania. Modern retail barcode scanners can decode both formats interchangeably. In fact, a UPC-A code can be converted into an EAN-13 code simply by prepending a leading zero (0).

Why should I download barcodes in vector SVG format? ↓

Vector SVG files store barcode bars as mathematical coordinate paths rather than fixed pixel grids. When scaled to fit product packaging or large shipping crates, vector SVG files remain 100% mathematically sharp without pixel blurring, jagged edges, or barcode bleed that causes scanner errors.

What barcode format should I use for Amazon FBA product labeling? ↓

Use Code 128 for Amazon FBA FNSKU barcodes. When creating your shipment in Amazon Seller Central, download the FNSKU identifier (starting with X00) and encode it as Code 128 with the product title and condition printed below the bars.

How do I calculate the check digit for an EAN or UPC barcode? ↓

EAN and UPC barcodes use the GS1 Modulo 10 algorithm. Digits in even positions are multiplied by 3, digits in odd positions are multiplied by 1, and the sum is calculated. The check digit is the number required to round the total up to the nearest multiple of 10. Our generator automatically calculates and verifies this check digit for you.

What is a barcode Quiet Zone and why is it mandatory? ↓

The Quiet Zone is the clear blank margin on both the left and right sides of the barcode. Laser scanners require this clean contrast margin to establish baseline reflectance and detect where the barcode starts and stops. Encroaching artwork or text into the quiet zone causes scanning failure.

Can I print barcodes in color instead of black and white? ↓

Yes, provided the contrast meets optical requirements. Scanners utilize red laser diodes (630–670 nm), meaning the background must reflect red light (white, yellow, orange) and the bars must absorb red light (black, dark blue, dark green). Never print red bars on white or black bars on blue backgrounds.

What resolution should I use when printing barcode labels? ↓

For commercial thermal printers (Zebra, Dymo, TSC), match the native printer resolution: 203 DPI (8 dots/mm) or 300 DPI (12 dots/mm). For commercial packaging plates, offset printing, and gravure, always use 600–1200 DPI vector output to eliminate bar distortion.

Does this barcode generator store or log my inventory data? ↓

No. The entire barcode generation process executes client-side inside your web browser using HTML5 Canvas and native SVG rendering. None of your serial numbers, product codes, or inventory payloads are ever transmitted to or stored on our servers.

Can regular smartphones scan standard 1D linear barcodes? ↓

Yes. Most modern iOS and Android camera apps and dedicated inventory apps (such as Zebra Workforce, Orca Scan, and Scandit) can decode Code 128, EAN-13, and UPC barcodes directly using onboard CMOS camera sensors, provided there is sufficient lighting and sharp focus.

Generate Print-Ready Commercial Barcodes in Seconds

Create GS1-compliant EAN-13, UPC-A, Code 128, and Code 39 barcodes. Download crisp vector SVG or high-density PNG files for free.

Create Your Barcode Now
QR Code - QR-Build

Free Online Barcode Generator

Create Your Barcode Now