Free generator No sign-up
Shopify Barcode Generator: UPC, EAN and Code 128
Make UPC-A, EAN-13 and Code 128 barcodes as PNG or SVG, with check digits worked out for you. Paste up to 200 SKUs to get a ZIP file or a printable sheet.

fiverr. Vetted Pro · Top Rated
UPC-A, EAN-13 and Code 128 barcodes as PNG or SVG. Everything runs in your browser. Nothing you type is saved or sent anywhere.
Best for your own SKU labels and Shopify POS scanning.
Letters, numbers and keyboard symbols. 9 characters.
6 barcodes ready below. Every line is valid.
Ready: a Code 128 barcode for TEE-BLK-M. Good for your own stock labels and for scanning in Shopify POS.
Standard is close to full retail size at 300 DPI.
Keep UPC and EAN at Standard. Short suits small SKU labels.
UPC and EAN numbers only work in stores and on marketplaces if they come from GS1. This tool draws the barcode for a number you already have. It doesn't give you a new number.
This free Shopify barcode generator makes UPC-A, EAN-13 and Code 128 barcodes right in your browser. Type a SKU or a product number and you get a crisp PNG or SVG in a second. It works out UPC and EAN check digits for you. It also turns a list of up to 200 SKUs into a ZIP file or a printable sheet.
Barcodes save time at the counter and in the stock room. But many store owners learn one rule too late: a UPC or EAN number only works in retail if it comes from GS1.
Here is what you will learn:
- How to use the Shopify barcode generator for one barcode or a whole list
- Which barcode type to pick, and when you need GS1
- How check digits work, with two worked examples
- Where barcodes go in Shopify, and how to print labels that scan
- The mistakes that cause scan errors and rejected listings
How to use the Shopify barcode generator
The Shopify barcode generator opens with a sample SKU, so you see a real barcode right away. Nothing you type is saved or sent.

- Pick the barcode type. Code 128 for your own SKUs. UPC-A or EAN-13 for a retail number you already own.
- Type the value. For UPC-A, type 11 digits and the check digit is added. Type all 12 and it checks the last digit. EAN-13 works the same way with 12 or 13 digits.
- Read the message under the box. It tells you in plain words what is wrong, such as a letter in a UPC or a wrong check digit.
- Set the options. Choose the size, bar height, quiet zone and whether to show the text under the bars.
- Download or copy. Click Download PNG or Download SVG. Copy number copies the full value, check digit included, so you can paste it into Shopify.
For many barcodes at once, click Many (batch). Paste your codes one per line and click Make barcodes. You get a preview grid, a red list of any lines to fix, and two buttons: Download all as ZIP and Print sheet (3 per row). The ZIP can hold PNG or SVG files.
PNG files from the Shopify barcode generator are saved at 300 DPI, so label software prints them at the right size. SVG files stay sharp at any size, which suits packaging artwork.
Which barcode type should you pick?
Pick by where the barcode will be scanned. In any barcode generator for Shopify, Code 128 is for use inside your own business. UPC-A and EAN-13 are for products sold through other retailers or marketplaces.
| Type | What it holds | Best for | Need GS1? |
|---|---|---|---|
| Code 128 | Letters, numbers, symbols | Your own SKUs, stock counts, POS | No |
| UPC-A | 12 digits | Retail in the US and Canada | Yes |
| EAN-13 | 13 digits | Retail in most other countries | Yes |
Shopify calls UPC “GTIN-12” and EAN “GTIN-13”. The Shopify barcode generator doesn’t make the short forms, UPC-E and EAN-8, used on tiny packs.
UPC barcode generator vs real UPC numbers
A UPC barcode generator draws bars for a number. It can’t make that number yours. Keep that in mind before you print.
Every retail UPC or EAN number belongs to a company through GS1, a not-for-profit standards group. Many retailers and marketplaces check numbers against GS1 data. Shopify does too: if you enter a barcode that’s registered with GS1, Shopify sets its type to GTIN. If your product name and vendor don’t match the GS1 listing, you see a warning.
So a made-up number can fail those checks. Here is what GS1 US charges, as checked in November 2026:
- One barcode: a single GS1 US GTIN costs $30, with no yearly fee.
- Ten barcodes: a GS1 Company Prefix costs $250, then $50 a year.
- One hundred barcodes: $750, then $150 a year.
GS1 US says each version of each product needs its own number. A t-shirt in 3 sizes and 3 colors needs 9 barcodes. Prices differ in other countries, so check your local GS1 office.
Once you have your numbers, this Shopify barcode generator turns them into clean barcode images for free. GS1 gives you the number, and the UPC barcode generator draws it.
How check digits work: the formula in plain words
The last digit of every UPC and EAN is a check digit. A scanner uses it to catch a misread or a typo. Here is how to work it out:
- Start from the rightmost digit, leaving out the check digit.
- Multiply that digit by 3, the next one to the left by 1, then 3, then 1, and so on.
- Add up all the results.
- The check digit is whatever you add to reach the next multiple of 10. If the sum already ends in 0, the check digit is 0.
Worked example 1: a UPC-A check digit
Take the 11 digits 03600029145. The digits in odd places, counting from the left, are 0, 6, 0, 2, 1 and 5. They add up to 14, and 14 × 3 = 42. The digits in even places are 3, 0, 0, 9 and 4. They add up to 16.
The total is 42 + 16 = 58. The next multiple of 10 is 60, so the check digit is 2. The full UPC is 036000291452. Type the 11 digits into the Shopify barcode generator and it says: “Check digit 2 added for you.”
If you type 036000291455 instead, the Shopify barcode generator flags it in red: the last digit should be 2, not 5. That check catches most typos before they reach a label.
How Code 128 checks itself
Code 128 has no check digit you can see. Each character becomes a value, and the barcode adds a hidden check symbol made from those values. Scanners test it on every read.
Code 128 also packs digits two at a time. That is why a SKU made only of numbers prints much shorter than one with letters.
Worked example 2: a Code 128 SKU label
The sample SKU is TEE-BLK-M, a black medium t-shirt. At the Standard size, each thin bar is 4 pixels wide. The Shopify barcode generator builds a 616 × 232 px image. At 300 DPI, that prints 2.05 inches wide, white space included.
Now try 1234567890 in the Shopify barcode generator. It has one more character, but the image is only 440 px wide, or 1.47 inches. On small labels, short or number-heavy SKUs fit better.
Shopify barcode generator for SKUs and Shopify POS
If you don’t sell through big retailers, you may not need GS1 at all. A Code 128 barcode of your SKU works well in your stock room and at your counter.
Shopify’s barcode types include Custom, which takes any value up to 255 characters. Shopify lists Code 128 under Custom. In Shopify POS, you can find a product by scanning any of its barcodes or its SKU. You can scan with your device’s camera or with a supported scanner, such as the Socket Mobile S700.
The simplest setup I use on client stores:
- Give each variant a short, clear SKU, such as TEE-BLK-M.
- Put the same text in the variant’s barcode, with the type left as Custom.
- Paste all your SKUs into the batch mode of this barcode generator for Shopify.
- Print the sheet, stick the labels on your shelves or products, and scan a few to test.
Keep SKUs to plain letters, numbers and dashes. Code 128 holds most keyboard symbols, but accented letters like é won’t encode. The Shopify barcode generator tells you which character to remove.

Where barcodes go in Shopify
Whatever you make in the Shopify barcode generator, the value goes on each product or variant, in the Inventory section. Shopify lets you add up to 20 barcodes per product or variant, which helps when suppliers use different codes.
Add a barcode to a product without variants
- From your Shopify admin, go to Products and click the product.
- In the Inventory section, click the Barcodes field.
- In the Barcode field, paste the number from the green card in the Shopify barcode generator.
- Optional: change the type from Custom to UPC, EAN or another standard. Registered GTINs are spotted for you.
- Click Save.
Add barcodes to variants
In the Variants section, select the variants, then click the … menu and Edit barcodes. Enter a barcode for each variant, click Done, then Save. Shopify’s guide on using barcodes for products shows every step, including the mobile app, where you can scan a barcode with your camera.
Add barcodes in bulk
For a big catalog, use the product CSV. The column is called Barcodes, with a semicolon between two or more barcodes. My Shopify product CSV template tool helps you build that file without errors. The bulk editor also works, and you can even type barcodes into it with a scanner.
How to print labels from a barcode generator for Shopify
A barcode that won’t scan is worse than none. These tips come from Shopify’s and GS1 US’s printing guides:
- Print at 300 DPI or higher. The PNG files from this barcode generator for Shopify are already tagged 300 DPI.
- Keep it big enough. Shopify suggests at least 1.5 inches wide and 1 inch tall. The Standard size gives a UPC-A of 1.51 inches wide.
- Use black bars on white. Avoid red or brown ink. Scanners use red light, so red bars look blank to them.
- Keep the quiet zone. That is the white space on both sides. Leave it on unless your label adds its own space.
- Don’t cut the height. GS1 US warns that trimming a UPC can cause wrong scans.
- Don’t stretch the image. If you need a new size, make a new barcode. Or use the SVG file, which scales cleanly.
- Test one before you print many. Print one sheet, scan a few labels, then print the rest.
The Shopify barcode generator’s print sheet puts 3 barcodes in each row. Print it at 100% scale with “fit to page” turned off. For a label printer, Shopify supports models like the DYMO LabelWriter 550 and Zebra ZD220 or ZD421 in North America. With a normal desktop printer, Shopify’s own label app prints to Avery 5160 sheets.
If you also want a code that opens a web page, a barcode is the wrong tool. Use my Shopify QR code generator for that.
Common barcode mistakes on Shopify stores
These are the problems I see most on client stores.
Making up UPC numbers
It is easy to type 12 random digits into a UPC barcode generator, and the image will even scan. But the number isn’t yours, and it may belong to another company. Use Code 128 SKUs inside your business and GS1 numbers for retail.
Giving every variant the same barcode
If small, medium and large share one barcode, POS adds the wrong size and your stock counts drift. Each variant needs its own code.
Trusting the Retail Barcode Labels app blindly
Shopify’s free Retail Barcode Labels app makes Code 128 barcodes from the last 8 digits of each variant ID. Shopify warns that two variants can sometimes end up with the same code. These codes also aren’t suitable for Google Shopping. And if you create barcodes for products that already have them, the app overwrites the old ones. Your own SKUs plus a Shopify barcode generator avoid all three issues.
Typos in long numbers
One wrong digit sends a scan to nothing. Type 11 or 12 digits for UPC-A and let the Shopify barcode generator check the last one. The same goes for EAN-13.
Forgetting to add barcodes before launch
Adding barcodes to 300 variants after you open is slow. If you sell in person, add them while you set up products. My Shopify launch checklist covers this with the other setup jobs.
Questions about the Barcode Generator
Can’t find your answer? Ask me directly, I’m happy to help.
Can Shopify generate barcodes?
Yes, with Shopify’s free Retail Barcode Labels app. It makes 8-digit Code 128 barcodes from your variant IDs. They work in your own store and POS. They aren’t suitable for Google Shopping or retail, where you need GS1 numbers.
How do I make barcodes for Shopify?
Use a free barcode generator for Shopify like the one on this page. Pick Code 128 for SKUs, or UPC-A or EAN-13 for a GS1 number, then download a PNG or SVG. Paste the same value into the product’s Barcodes field in Shopify.
How do I add a barcode to a Shopify product?
Open the product in your Shopify admin. In the Inventory section, click Barcodes, enter the number and click Save. For products with variants, use Edit barcodes in the Variants section.
What is the difference between SKU and barcode in Shopify?
A SKU is your own internal code for tracking stock. A barcode is a number that scanners read, often a GS1 number like a UPC. Many stores use their SKU as the barcode value with Code 128. Shopify POS can find a product by either.
Can I make my own UPC barcode?
You can draw one for free with a UPC barcode generator, but the number must come from GS1 to be valid in retail. In the US, a single GS1 US barcode number costs $30 with no yearly fee. For internal use only, a Code 128 SKU barcode is free and works fine.
Can I print my own barcode labels?
Yes. Download PNG or SVG files from the Shopify barcode generator, or use the print sheet with 3 barcodes per row. Print at 300 DPI or higher in black ink, keep the white space at the sides, and test-scan one label first.
Other free Shopify tools
◎ Free QR tool
QR Code Generator
Static QR codes for products, collections, discount and cart links, with campaign tags and PNG or SVG downloads.
Free, no sign-up
◎ Free template + checker
Product CSV Template and Checker
Download Shopify's current product CSV template, then check your file for import errors before Shopify does.
Free, no sign-up
◎ Free generator
Size Chart Generator
Build a size chart in inches or cm from 8 presets, then copy the HTML for Shopify or download a CSV or PNG.
Free, no sign-up
◎ Free generator
Product Description Generator
Turn your features and specs into 3 Shopify-ready description layouts in clean HTML, plus an SEO title and meta.
Free, no sign-up
◎ Free generator
Discount Code Generator
Make up to 10,000 unique random discount codes, or a memorable code like WELCOME10. Copy or download a CSV.
Free, no sign-up
◎ Free calculator
Pricing Calculator
Find the price to charge from your costs, fees and goal margin, with .99 rounding and compare-at prices.
Free, no sign-up
Want a free check of your store?
Send me your store link. I'll look at your homepage, product page and mobile layout and reply with the 3 changes that would help sales most.
✓ Free quote✓ Fixed price✓ You own everything