Shopify Barcode Generator
Free EAN-13, UPC-A and Code 128 barcodes for your products
Turn the barcode number from your Shopify product, or your own SKU, into a scannable barcode. Download it as a sharp SVG or PNG for labels, packaging and inventory. Checks the number is valid as you type. Free, no signup.
Check digit 7 added.
Barcodes are created in your browser and nothing is saved. For products sold through retailers or marketplaces, use GTIN numbers issued to your company by GS1.
Add the Shopify Barcode Generator to your site.
Free for blogs, newsletters, client sites and courses. Paste the code into an HTML or custom code block. Please keep the credit line under the tool.
<iframe id="am-barcode-generator" src="https://www.ahmadmujtaba.com/tools/barcode-generator?embed=1" title="Shopify Barcode Generator" width="100%" height="950" style="border:0;max-width:100%;" loading="lazy"></iframe>
<p style="font-size:13px;margin:6px 0 0;">Free <a href="https://www.ahmadmujtaba.com/tools/barcode-generator">Shopify Barcode Generator</a> by <a href="https://www.ahmadmujtaba.com/">Ahmad Mujtaba</a></p>
<script>addEventListener("message",function(e){if(e.origin==="https://www.ahmadmujtaba.com"&&e.data&&e.data.amEmbed==="barcode-generator"){var f=document.getElementById("am-barcode-generator");if(f)f.style.height=e.data.height+"px";}});</script>The script line resizes the frame to fit the tool. If your site strips scripts, the tool still works at the fixed height and scrolls inside the frame.
Which barcode do you need?
EAN-13 is the 13-digit barcode used on retail products in most of the world. UPC-A is the 12-digit version used mainly in the United States and Canada. Both encode a GTIN, a globally unique product number, and the last digit is a check digit that scanners use to catch errors.
Code 128 encodes letters, numbers and symbols, so it suits your own SKUs, internal stock labels and warehouse locations. It isn't used for selling products in retail stores.
Leave out the check digit and the generator calculates it for you. Download SVG for print, since it stays sharp at any size, or PNG for quick use in documents and label software.
On Shopify, the number goes in the product's Barcode (ISBN, UPC, GTIN, etc.) field, under Inventory on each product or variant. Copy it from there, make the barcode here, and print it for your packaging or for scanning stock with Shopify POS.
Common questions.
Can I make up my own EAN or UPC numbers?
Not for products sold through retailers or marketplaces. Valid GTINs come from GS1, the organization that issues barcode numbers, and Amazon, Google Shopping and most retailers check them. You can use this generator to create the barcode image for numbers you've licensed from GS1, or use Code 128 with your own SKUs for internal labels.
What's the difference between EAN-13 and UPC-A?
UPC-A has 12 digits and is mainly used in the US and Canada. EAN-13 has 13 digits and is used almost everywhere else. A UPC-A number becomes an EAN-13 by adding a zero in front, and modern scanners read both.
What is a check digit?
The last digit of an EAN or UPC, calculated from the others so a scanner can tell if a number was misread. Enter 12 digits for EAN-13 or 11 for UPC-A and the generator adds it. If you enter the full number, it checks the digit is correct.
Which file format should I use?
SVG for print and packaging, because it's vector and stays sharp at any size. PNG works for documents, spreadsheets and label software that doesn't accept SVG. Print barcodes in black on white at a size scanners can read; don't shrink them too far.
How do I add a barcode to a Shopify product?
In Shopify admin, open the product, and in the Inventory section enter the number in the Barcode (ISBN, UPC, GTIN, etc.) field. For products with variants, each variant has its own barcode field. Shopify stores the number but doesn't create a barcode image, so use this generator to make a printable label from it.
Does Shopify need barcodes?
No, the barcode field on a Shopify product is optional. It's used for GTINs when you sell through Google Shopping or marketplaces, and for scanning stock with Shopify's inventory and POS tools.
Add your GTIN to your product pages' structured data with the product schema generator. Need the codes first? Build them with the SKU generator. More free tools: QR code generator and all free tools.
Need help making your store more profitable?
I'm Ahmad Mujtaba, a Shopify Select Partner. My team builds and maintains Shopify stores, from speed and SEO to checkout and tracking.