UPC Barcode Generator
Turn your GS1 barcode number into a print-ready barcode for your bag, pouch or case. The generator checks (or adds) the check digit, draws the bars at true GS1 size with the right quiet zones, and gives you vector files your designer and printer can use as they are.
- Free, no sign-up
- UPC-A, EAN-13, ITF-14, GS1-128
- Vector SVG and PDF
- Check digit included
How it works
Three steps from your GS1 number to a barcode that's ready for print.
Pick the barcode type
UPC-A for retail in Canada and the U.S., EAN-13 for export, ITF-14 for cases, GS1-128 for logistics labels.
Enter your number
Type 11 digits and we add the check digit, or all 12 and we check it for you.
Download and place it
Vector SVG or PDF at true size, or PNG and JPG at up to 1200 dpi, ready to drop into your artwork.
Generate your barcode
Everything updates as you type. Nothing is sent unless you press Send.
Make your barcode
Type the number GS1 gave you (or 11 digits and we’ll add the check digit). The barcode is drawn at true size with the correct quiet zones, ready for your artwork. Don’t have a number yet? GS1 Canada · GS1 US.
Not sure about magnification or bar width reduction? Leave them at 100% and 0. Your printer will tell you if flexo bar gain needs a reduction.
Get these bags madePrint it on your bags
Send this label set to Friesen Plastics and we’ll quote your printed bags. We get the bag size, the label details and the files; nothing is sent until you press Send.Friesen Plastics prints custom poly bags and pouches in-house in Lethbridge, Alberta. Send us your barcode and bag details and we’ll quote your printed bags. Nothing is sent until you press Send.
At a glance
- Barcode types
- UPC-A, EAN-13, UPC-E and EAN-8 for retail; ITF-14 for cases and shippers; GS1-128 for logistics labels.
- Size
- Drawn to the GS1 General Specifications: a UPC-A or EAN-13 is 37.29 × 25.93 mm at 100%, with 80% to 200% allowed.
- Check digit
- Calculated for you, or checked if you enter the full number.
- Barcode numbers
- Not included. Numbers come from GS1 Canada or GS1 US under your own company prefix.
- Downloads
- SVG, PDF (100% black ink), PNG and JPG at 300, 600 or 1200 dpi, all with text converted to outlines.
- Price
- Free. No account, no watermark.
- Made by
- Friesen Plastics Inc., a BRC-certified flexible packaging manufacturer in Lethbridge, Alberta.
Updated December 2, 2026
Where do I get a UPC number?
From GS1, the non-profit that runs the barcode system. In Canada that's GS1 Canada; in the U.S. it's GS1 US. GS1 licenses your business a company prefix, and you number your products from it: one number (a GTIN) for each product, size and flavour, so a 500 g and a 1 kg bag of the same coffee get different barcodes. Many large retailers and marketplaces check that the number belongs to your company in the GS1 registry, which numbers bought second-hand often don't.
Which barcode type do I need?
| Type | Digits | Use it for |
|---|---|---|
| UPC-A | 12 (GTIN-12) | Retail products scanned at checkout in Canada and the U.S. The most common barcode on food bags. |
| EAN-13 | 13 (GTIN-13) | Retail products, mainly outside North America. Scanners in Canada and the U.S. read it too. |
| UPC-E | 8 | Small retail packs. A zero-suppressed UPC-A, only possible for some numbers. |
| EAN-8 | 8 (GTIN-8) | Very small packs where even UPC-E won't fit. GS1 assigns these numbers one at a time. |
| ITF-14 | 14 (GTIN-14) | Cases, cartons and shippers. Prints well on corrugated board; not for checkout. |
| GS1-128 | Variable | Logistics labels carrying a GTIN with lot or batch, dates, weights or serial numbers. |
A UPC-A and an EAN-13 can hold the same product number: a 12-digit UPC is the same as a 13-digit EAN that starts with 0. For bags sold in Canada and the U.S., UPC-A is the usual choice.
Barcode size and print rules for bags and pouches
| Barcode | Size at 100% (including quiet zones) | Allowed range |
|---|---|---|
| UPC-A, EAN-13 | 37.29 × 25.93 mm (1.469 × 1.02 in) | 80% to 200% |
| UPC-E | 22.11 × 25.93 mm | 80% to 200% |
| EAN-8 | 26.73 × 21.31 mm | 80% to 200% |
| ITF-14 | X-dimension 1.016 mm, bars at least 31.75 mm tall, 4.83 mm bearer bars | X 0.495 to 1.016 mm |
| GS1-128 | Bars at least 31.75 mm tall for logistics, 165 mm wide at most | X 0.495 to 1.016 mm |
- Keep it 100% or larger on film. Flexible packaging stretches and wrinkles, so a bit of extra size gives scanners an easier read.
- Never cut the height short. A truncated barcode is one of the most common reasons barcodes fail verification.
- Dark bars on a light, opaque background. Black on white is best. On clear film, print a white patch behind the barcode. Red bars don't scan.
- Keep the quiet zones clear. The blank space either side of the bars is part of the barcode; don't let text or graphics into it.
- Mind the bag's seals and folds. Keep it off seals, gussets, zippers and folds, ideally low on the back panel, with the bars running in the print direction.
- Ask about bar width reduction. Flexo printing spreads ink slightly; your printer may want the bars trimmed to compensate.
How the check digit is calculated
The last digit of every UPC and EAN is a check digit that lets the scanner catch misreads. For a UPC-A, take the first 11 digits and:
- Add the digits in the odd positions (1st, 3rd, 5th … 11th) and multiply by 3.
- Add the digits in the even positions (2nd, 4th … 10th).
- Add the two results. The check digit is the number that brings the total up to the next multiple of 10.
Example: for 0 1 2 3 4 5 6 7 8 9 0, the odd positions add to 20 (× 3 = 60), the even positions add to 25, and 60 + 25 = 85, so the check digit is 5 and the full UPC is 012345678905. The generator does this for you, and GS1 has its own check digit calculator.
Putting a barcode on a food bag?
The barcode usually shares the back panel with the Nutrition Facts label. Our nutrition label generators leave room for a UPC when they size the table: the Nutrition Facts Table Generator - Canada (with the front-of-package symbol) and the Nutrition Facts Generator - USA. For the whole layout, the free FP Dieline Creator gives you a full-size dieline for your bag.
Frequently asked questions
Is this barcode generator free?
Yes. There's no account, no watermark and no limit. It runs in your browser, and nothing you type is sent anywhere unless you choose to send it to us for a printed-bag quote.
Do you sell UPC numbers?
No. The generator turns a number you already have into a barcode. Barcode numbers come from GS1 (GS1 Canada or GS1 US), which licenses a company prefix to your business. Each product, size and flavour gets its own number from that prefix.
Can I just make up a UPC number?
A made-up number will scan, but it isn't licensed to your company and may already belong to someone else's product. Many large retailers and online marketplaces check that a barcode number is registered to the brand owner in the GS1 registry, so use a number from your own GS1 company prefix.
What size should a UPC barcode be on a bag?
The nominal (100%) size of a UPC-A is 37.29 × 25.93 mm (about 1.47 × 1.02 in) including the quiet zones on each side. GS1 allows 80% to 200% of that. On flexible film we recommend 100% or larger, and never cut the bar height short, which is a common reason barcodes fail verification.
Which file should I give my designer or printer?
SVG or PDF. Both are vector files that stay sharp at any size, and the text is converted to outlines so no fonts are needed. The PDF uses 100% black ink only. PNG and JPG files are available at 300, 600 or 1200 dpi for programs that can't place vector art, saved with the dpi set so they place at true size.
Can a barcode go on a clear bag?
Yes, but print a solid white patch behind it. Scanners need dark bars on a light, opaque background, so a barcode printed straight onto clear film over a dark product often won't scan. Black bars on white work best; avoid red bars, which scanners can't see.
Do I need the numbers under the barcode?
Yes, for retail barcodes. GS1 calls for the human-readable digits under UPC and EAN barcodes so a cashier can key the number in if the barcode won't scan. The option to hide them is there for special cases your printer or customer asks for.
What is bar width reduction?
On a flexographic press, ink spreads a little and makes bars print wider than the file. Bar width reduction (BWR) trims every bar in the file by a set amount to compensate. Your printer will tell you the right value for their press and film; if you're not sure, leave it at 0 and let your printer apply it.
Can Friesen Plastics print my barcode on my bags?
Yes. Friesen Plastics prints custom poly bags and pouches in-house in Lethbridge, Alberta, for customers across Canada and the U.S. Send us your barcode and bag details with the form in the tool, or call (800) 661-8024.
Sources
- GS1 General Specifications (symbol sizes, quiet zones, magnification)
- GS1 Canada: EAN/UPC symbol reference
- GS1 Canada · GS1 US (barcode numbers)
- GS1: Check digit calculator
This tool draws barcodes to GS1 dimensions. Print quality decides whether a barcode scans, so have your printer verify the first run.
More free packaging tools
Nutrition Facts Table Generator - Canada 🇨🇦
The bilingual Canadian table plus the Health Canada “High in” front-of-package symbol.
Nutrition Facts Generator - USA 🇺🇸
The FDA Nutrition Facts label in standard, dual-column, tabular or linear format.
FP Dieline Creator ↗
A free, full-size, print-ready dieline for your poly bag or pouch artwork.
FP Pallet Optimizer ↗
Plan how your cases and bags stack on a pallet or in a truck, in 3D.
Print your barcode on custom bags
Friesen Plastics prints custom poly bags and pouches in-house in Lethbridge, Alberta. Send us your barcode and bag size for a quote.