Free barcode generator: EAN-13, UPC-A, Code 128 and more
Pick a barcode type, type the number or text, and download a sharp PNG or SVG. For EAN, UPC and ITF-14 the tool checks the check digit, so a typo doesn't end up on your packaging.
Updated
12 digits, and the check digit is added; or all 13 to have it checked.
The narrowest bar. PNG downloads are drawn three times larger for print.
Dark bars on a light background scan best.
How to use it
- Choose the barcode type
EAN-13 or UPC-A for retail products, EAN-8 or UPC-E for small packs, ITF-14 for outer cartons, Code 128 or Code 39 for your own labels, tickets and stock codes.
- Enter the number
Type the digits or text. For EAN, UPC and ITF-14 you can leave off the last digit to have it calculated, or type it to have it checked.
- Set the size and look
Choose bar height, module width (the width of the narrowest bar), whether the digits show under the bars, and the bar and background colours.
- Download and test
Download SVG for print or PNG for screens and documents. Print a proof at the real size and scan it with the scanner it will meet, such as your till or warehouse gun.
Which barcode type do you need?
The type depends on who will scan it. Shops scan EAN and UPC codes carrying a product number (a GTIN). Warehouses scan ITF-14 on cartons. Code 128 and Code 39 carry your own letters and numbers, so they suit internal labels where no shop till is involved.
| Type | What it holds | Typical use |
|---|---|---|
| EAN-13 | 13 digits (12 + check digit) | Retail products in most of the world |
| EAN-8 | 8 digits (7 + check digit) | Small packs with no room for EAN-13 |
| UPC-A | 12 digits (11 + check digit) | Retail products in the US and Canada |
| UPC-E | 8 digits, a compressed UPC-A | Small packs in the US and Canada |
| ITF-14 | 14 digits (13 + check digit) | Outer cartons and cases |
| Code 128 | Letters, digits and symbols | Shipping labels, stock codes, tickets |
| Code 39 | Capital letters, digits and - . $ / + % space | Asset tags, ID badges, older systems |
What is a check digit and how is it calculated?
EAN, UPC and ITF-14 numbers end in a check digit, so a scanner can tell when a digit was misread. Starting from the digit next to the check digit and moving left, multiply the digits alternately by 3 and 1, add them up, and the check digit is whatever brings the total to the next multiple of 10.
For example, for the EAN-13 number 400638133393 the weighted sum is 89, so the check digit is 1 and the full number is 4006381333931. The tool does this for you and flags a number whose last digit doesn't match.
- Keep the quiet zones. Scanners need blank space before and after the bars; don't crop it or print text there.
- Dark bars on a light background. Black on white is safest. Red bars often fail, because many scanners use red light.
- Don't squash it. If you need it smaller, lower the module width and keep the proportions instead of stretching the image.
Do I need GS1 to sell products with a barcode?
To sell in shops or on most marketplaces, yes. The bars are free to draw, but the number must be a GTIN that belongs to you. GS1 is the organisation that issues them: you either license a GS1 Company Prefix to number many products, or, in the US, buy a single GS1 US GTIN for a one-off product. A made-up number may clash with someone else's product, and retailers check.
For your own stock labels, tickets or asset tags you don't need GS1: use Code 128 or Code 39 with any code you like.
A barcode only identifies a product. A GS1 Digital Link QR code can carry the same GTIN as a web address, so the till can read it and a customer's phone can open a page about the product. Make one with the GS1 Digital Link generator, and read GS1 Digital Link QR codes explained.
Sources
- Get started with GS1 US: GS1 Company Prefix or a single GTIN, checked 2026-10-24
More free tools
Questions
Is this barcode generator free?
Yes. There is no account, no watermark and no limit. The barcode is drawn in your browser and nothing you type is sent to a server.
Can I make up my own EAN or UPC number?
You can draw one, but don't use it on products you sell. Retail numbers must be GTINs issued by GS1, or a made-up number may belong to another company's product.
Which is better for print, PNG or SVG?
SVG. It is a vector file, so the bars stay sharp at any size and edges don't blur. Use PNG for documents, spreadsheets and screens.
What does module width mean?
It is the width of the narrowest bar. Every other bar and space is a multiple of it, so changing it scales the whole barcode evenly. Very thin modules can be too fine for a cheap printer or scanner.
Why does my number fail the check?
The last digit doesn't match the check digit worked out from the others, which usually means a typo. Check the number against your GS1 record, or leave off the last digit and let the tool calculate it.
Should I use a barcode or a QR code?
Shop tills read barcodes, so retail products need one. A QR code holds much more and phones can scan it, which is better for links. A GS1 Digital Link QR code can do both jobs with one code.
Try it on your next link
The Free plan includes a custom domain, 5 dynamic QR codes, a bio page and click analytics. No credit card.