Barcode generator
Make a barcode for a product, a label or an inventory system. Choose EAN-13 or UPC-A for retail products, EAN-8 for small packs, or Code 128 for any text such as order numbers and shipping labels. For EAN and UPC, type the number without its last digit and the check digit is calculated for you, or type the full number to have its check digit verified. Download the barcode as an SVG, which stays sharp at any size for print, or as a PNG.
Barcode type
Type 12 digits to have the check digit added, or 13 to check it.
Size
Test-scan printed barcodes before using them widely.
How to use the Barcode Generator
- 1
Choose the barcode type
EAN-13 or UPC-A for retail, EAN-8 for small items, Code 128 for text.
- 2
Enter the number or text
EAN and UPC need digits only; the check digit is added.
- 3
Choose a size
Larger modules scan more easily from a distance.
- 4
Download
SVG for print and design tools, PNG for documents.
How check digits work
EAN and UPC use the GS1 modulo-10 check: digits are weighted 3 and 1 alternately from the right, and the check digit brings the total to a multiple of 10. Code 128 adds a modulo-103 check symbol inside the bars.
- check digit = (10 − (Σ weighted digits mod 10)) mod 10
When to use it
- Print barcodes for products you already have GS1 numbers for.
- Label stock, assets or files with Code 128.
- Check that an EAN or UPC number has a valid check digit.
Limits
- Retail EAN and UPC numbers must be licensed from GS1; this tool draws the barcode but does not assign numbers.
- Always test-scan printed barcodes, especially at small sizes or low print quality.
- Code 128 here supports printable ASCII characters.
Privacy
Barcodes are drawn in your browser. Nothing you type is sent anywhere.
Frequently asked questions
Can I make up an EAN-13 number?
For internal use, yes, but products sold in shops need numbers from GS1 so they are unique worldwide.
What is the difference between EAN-13 and UPC-A?
UPC-A has 12 digits and is used mainly in North America; it is the same as an EAN-13 starting with 0, and scanners read both.
Which format should I use for shipping labels?
Code 128. It is compact, encodes letters and numbers, and is used by most couriers.
Why SVG?
SVG is a vector format, so the bars stay perfectly sharp when resized for printing.
What size should the barcode be?
For retail EAN-13 the nominal width is about 37 mm; it can be scaled from 80% to 200%. Keep the white margins on both sides.
Related tools
People also use
- Quotation GeneratorPrice quotations with validity date, VAT and PDF download.
- Payslip GeneratorSalary slips with earnings, deductions, net pay and PDF.
- Purchase Order GeneratorPurchase orders for suppliers, with delivery date and PDF.
- Business Card MakerDesign a two-sided business card and download a print-ready PDF or PNG.
Last updated November 22, 2026 · How we build and test our tools