Skip to main content

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.

Loading tool...

Steps

1

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.

2

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.

3

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.

4

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.

5

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

Related Tools