Barcode Generator โ€“ Code 128 & EAN-13

Make a Code 128 or EAN-13 barcode for labels, inventory or invoices โ€” with the check digit added โ€” and download it as SVG or PNG.

Last updated:

Free barcode generator

Need barcodes for your shop's stock, courier labels, library books, asset tags or invoices? This barcode generator makes Code 128 barcodes from any text or number and EAN-13retail barcodes from 12 or 13 digits โ€” calculating and checking the check digit for you. Adjust the bar width and height, choose whether to print the text underneath, and download a crisp SVG for printing or a PNG for documents. It's all drawn in your browser.

How to use it

  1. Choose Code 128 (any text) or EAN-13 (product numbers).
  2. Type the value and adjust the size.
  3. Download, print, and test-scan before bulk printing.

Example

For EAN-13, entering the 12 digits 890123456789 gives a check digit of 0, so the full barcode is 8901234567890. Indian GS1 numbers start with 890. For links, Wi-Fi details or UPI payments, a QR code is the better choice; for unique asset IDs, try the UUID generator. Remember that a real retail EAN must be registered with GS1.

Rate this tool

Frequently asked questions

What is the difference between Code 128 and EAN-13?
EAN-13 is the 13-digit retail barcode printed on products sold in shops (Indian products start with 890). Code 128 can hold letters, digits and symbols of any length, so itโ€™s used for shipping labels, inventory, asset tags and invoices.
Can I make a barcode for my product to sell in shops?
You can draw any EAN-13 here, but to sell in retail stores and on marketplaces the number itself must be registered โ€” in India through GS1 India. Donโ€™t invent numbers for products youโ€™ll sell; use Code 128 for your own internal labels.
What is the check digit?
The last digit of an EAN-13 is calculated from the first 12, so scanners can detect a mistyped number. Enter 12 digits and itโ€™s added for you; enter 13 and itโ€™s checked.
Will the barcode scan when printed?
Yes, if you print it large enough with a white margin (the quiet zone) around it. Download the SVG for sharp printing at any size, keep bars at least about 0.25 mm wide, and test with your scanner or a phone app before printing in bulk.