Barcode Generator: Code 128, EAN-13 and More
Barcodes let a scanner read a code in a fraction of a second, without typing errors. Shops use them on products, warehouses on boxes and shelves, and offices on asset tags and files.
This barcode generator creates Code 128, Code 39, EAN-13 and UPC-A barcodes, as well as QR codes, from the text or numbers you enter, and lets you download them as PNG images or PDFs.
Choosing a format
- Code 128 is the most flexible: it encodes letters, numbers and symbols compactly. Use it for internal labels, shipping and inventory.
- Code 39 is older and simpler; it handles capital letters, digits and a few symbols, and is still common on ID cards and asset tags.
- EAN-13 is the 13-digit retail product barcode used in India and most countries. Enter 12 digits and the last, a check digit, is calculated.
- UPC-A is the 12-digit equivalent used mainly in North America.
- QR codes store much more data, such as a web link.
Retail barcodes need registered numbers
Anyone can draw an EAN-13 barcode, but selling a product in shops or on large marketplaces requires numbers issued to your company by GS1, which is GS1 India here. Made-up EAN numbers can clash with real products. For internal stock, use Code 128 with your own codes instead.
How to use this tool
- Enter the data: The text or number to encode.
- Choose the format: Code 128, Code 39, EAN-13, UPC-A or QR.
- Set the size: Adjust the height or size for your label.
- Download: Save as PNG for labels, or PDF for printing.
Features
- Code 128, Code 39, EAN-13, UPC-A and QR codes
- Adjustable size
- PNG and PDF download
- Clear message when data does not fit the format
- Generated in your browser
Worked examples
Asset tags for office laptops
An office labels each laptop with an ID such as "TS-LAP-0042".
Result: Use Code 128, which handles letters, digits and hyphens, and print the PNG on label sheets.
An EAN-13 from a GS1 number
A small brand has received a GS1 India number for a new product.
Result: Choose EAN-13, enter the number, check the human-readable digits under the bars, and send the PDF to the packaging printer.
Who it is for
- Small shops and sellers: Label stock and shelves.
- Offices and schools: Tag assets, files and library books.
- Event organisers: Print codes on passes and tickets.
Tips
- Print barcodes in black on a white background for the best scanning.
- Leave a blank margin, the quiet zone, on both sides of the bars.
- Test-scan a printed sample with a phone app before printing hundreds.
Frequently asked questions
Why does it say my data is invalid?
Each format accepts only certain characters and lengths. EAN-13 needs 12 or 13 digits and UPC-A 11 or 12; Code 39 accepts capital letters, digits and a few symbols. Use Code 128 for anything else.
Can I use these barcodes on products I sell?
The barcode itself will scan, but retail EAN and UPC numbers must be licensed from GS1. Use your GS1-issued number for products sold in stores.
Which format should I use for inventory?
Code 128. It is compact, reads reliably and accepts letters, numbers and symbols.