How to Generate a Barcode Online
Create professional barcodes in EAN-13, UPC-A, Code 128, Code 39, and other formats with our free Barcode Generator. Download as PNG or SVG.
Steps
Choose the barcode format
Select the barcode symbology that matches your use case. EAN-13 and EAN-8 are used for retail products in Europe and internationally. UPC-A and UPC-E are the North American retail standard. Code 128 encodes all 128 ASCII characters and is used for shipping labels, ID cards, and general logistics. Code 39 is used in automotive, defence, and healthcare. QR Code (a 2D matrix barcode) can encode URLs and rich data.
Enter the barcode value
Type the number or text to encode. For EAN-13, enter 12 digits — the 13th check digit is calculated automatically. For UPC-A, enter 11 digits. For Code 128 and Code 39, enter any text or alphanumeric string within the character set limitations of the chosen format.
Configure display options
Set the width (number of pixels per bar module), height, and whether to display the human-readable text below the barcode. Most barcode scanners read the barcode itself, not the text, but the text is important for manual verification and re-entry if scanning fails.
Preview and verify
Review the barcode preview. Check that the human-readable number below the barcode matches your input. For retail barcodes (EAN-13, UPC-A), verify the check digit is correctly calculated. If possible, scan the preview with a barcode scanner app to confirm it reads the correct value.
Download and use
Download as PNG (for digital documents and low-resolution print) or SVG (for professional print quality at any size). For product labelling at print production quality, use SVG format and print at minimum 300 DPI.
Barcode Formats and Their Applications
The wide variety of barcode formats exists because different industries developed their own standards before international standardisation. EAN and UPC were developed for grocery retail in the 1970s and remain the global standard for consumer product identification. Code 128 was developed in 1981 for general-purpose data encoding and is the most versatile 1D format, used in shipping (FedEx, UPS, USPS all use variants), healthcare, and manufacturing. Code 39 is the oldest alphanumeric barcode, widely used in military and automotive supply chains due to its simplicity and ruggedness. ITF-14 (Interleaved 2 of 5) is used for outer carton and shipping container labelling. Codabar is used in blood banks, libraries, and FedEx airbills. Understanding which format your industry uses prevents compatibility issues with existing scanning infrastructure.
Frequently Asked Questions
EAN-13 is the international standard for retail products sold outside North America. UPC-A (12 digits) is the North American standard. Both are widely supported by point-of-sale systems globally — most modern scanners read both. To use EAN-13 or UPC-A barcodes for actual retail products (sold in stores with scanner checkout), you need to purchase a legitimate GS1 company prefix to ensure globally unique numbers. This tool generates the barcode image; purchasing a GS1 number is a separate process.
The barcode image itself can be used on any product. However, for retail products sold in stores that use scanner-based point-of-sale systems, the barcode number must be globally unique — a requirement met by purchasing a GS1 company prefix. Using random numbers risks conflicts with existing products. For internal inventory management, warehouse operations, or products sold directly without retail barcode scanning, you can assign your own numbering scheme freely.
1D (one-dimensional) barcodes like Code 128, EAN-13, and UPC-A encode data in the widths and spacings of vertical bars — they can only be read by scanning horizontally across the bars. 2D barcodes like QR codes and Data Matrix encode data in both dimensions (patterns of dots, squares, or hexagons) — they can store far more data and can be read at any angle. 1D barcodes are standard for retail and logistics because they are simpler and faster to scan with dedicated hardware. QR codes are preferred when URL, contact, or rich data needs to be encoded.