Back to blog
Research-backed growth article

How to Generate a Product Barcode for Free

Learn how to generate a product barcode for free online. This guide covers barcode types, when a free generator is enough, when you need GS1 registration, and the exact requirements for selling on Amazon, Walmart, and Shopify.

Rabi Narayan PradhanProduct & Growth Research10 min read
Why readers save this article
A GS1-registered single product GTIN costs $30 one-time — but generating the barcode image itself is always free.
Generating a barcode image (the pattern of lines) is always free using online tools — there is no cost to create the image itself.
Selling on Amazon US, Walmart Marketplace, and major grocery chains requires a GS1-registered GTIN (UPC or EAN). A single GS1 GTIN costs $30 one-time with no annual renewal.
For internal inventory, warehouse labels, event tickets, and asset tracking you do not need GS1 registration — any number you assign is valid because no external party will verify it.
UPC-A is the standard for retail products in the US. EAN-13 is the standard for the rest of the world. Code 128 is the standard for shipping labels and internal logistics.
Download barcode images as SVG for print and packaging — SVG scales without quality loss. Download PNG at a minimum of 300 DPI for anything going to a printer.
Each product variation (size, colour, style) requires a separate unique barcode — they cannot share a GTIN.

Generating a barcode image is free. Generating a barcode image with a number that major retailers and online marketplaces will accept is a different — and sometimes expensive — process that requires GS1 registration.

Most tutorials conflate these two things. The result is confusion: people generate a UPC-looking barcode with a free tool, upload it to Amazon, and get rejected because the number is not registered to their brand.

This guide separates the two clearly: when a free barcode generator is genuinely all you need, when you need a GS1-registered number first, which barcode type to choose for your use case, and how to download and print a production-ready barcode image at no cost.

Two different things both called barcode generation

When you generate a barcode with a free online tool, you are creating an image — a visual pattern of lines or squares that encodes a number or text. The image itself is free to create. The tool has no way of knowing whether the number you entered is registered to anyone, whether it is a valid GTIN format, or whether any retailer would accept it.

When a retailer like Amazon or Walmart scans that barcode at receiving, their system looks up the number in the GS1 Global Registry to verify it belongs to the brand on the label. If the number was made up or purchased from an unofficial reseller, the lookup fails and the shipment may be rejected.

So there are two separate questions: Can I generate a barcode image for free? Yes, always. Can I generate a barcode number that retailers will accept without paying GS1? No — for official retail use, the number must be GS1-registered to your company.

When a free barcode generator is all you need

Most barcode use cases do not require GS1 registration because no external system is checking the number against an external registry.

Internal inventory management: warehouse shelf labels, bin labels, asset tags, equipment tracking. You assign the numbers yourself; your own warehouse management system is the only registry that matters.

Shipping labels with internal tracking numbers: your own fulfilment system or a carrier API generates the tracking number; you encode it in Code 128 and print it. The carrier's system records the number, not GS1.

Event tickets and entry passes: the event management system assigns ticket IDs; the door scanner checks your own database, not GS1.

Restaurant and hospitality price labels: internal SKUs encoded in Code 128 or EAN-8 for in-store POS systems that you manage yourself.

Print and marketing materials: QR codes, or barcode decorations that carry product URLs or short codes to your own destination.

For all of these, a free barcode generator like LinkLab's barcode tool gives you a production-ready image in PNG or SVG in seconds, with no registration required.

Internal inventory and warehouse labels — your system, your numbers.
In-store POS labels for self-managed retail environments.
Shipping labels using carrier-assigned tracking numbers.
Event tickets and access control systems.
Asset tags and equipment tracking.
Marketing materials and QR codes for campaigns.

When you need a GS1-registered number first

You need a GS1-registered GTIN before generating your barcode if any external party will scan and verify the number against the GS1 Global Registry.

Amazon US requires a valid GS1 UPC-A for product listings. Amazon explicitly states that UPC numbers from third-party resellers are not permitted — the number must be registered to your brand in GS1's system. Amazon EU requires EAN-13 under the same policy.

Walmart Marketplace requires GS1-registered UPC-A barcodes for all products. The same is true for Target Plus, Costco, and major grocery chains.

GS1 offers two options. A single GTIN (for one product) costs $30 USD one-time with no annual renewal fee — it includes lifetime access to the GS1 US Data Hub where you create and download your barcode image. A GS1 Company Prefix is the option for multiple products: you get a shared prefix that allows you to create 10 to 100,000 unique GTINs under your brand. Company Prefix pricing is tiered and includes an annual renewal fee.

Once you have your GS1 GTIN, you generate the barcode image using GS1's free online tool in their Data Hub, or using any barcode generator — the image generation step is always free.

Amazon US: GS1-registered UPC-A required; third-party reseller UPCs rejected.
Amazon EU: GS1-registered EAN-13 required.
Walmart Marketplace: GS1-registered UPC-A required.
Major grocery and pharmacy chains: GS1 membership required.
Single GS1 GTIN: $30 one-time, no annual fee.
GS1 Company Prefix: tiered pricing based on number of products, annual renewal fee.

Choosing the right barcode type

The barcode type you generate depends on what you are labeling and how it will be scanned.

UPC-A is the mandatory format for consumer products sold in US retail stores. It is a 12-digit numeric barcode. If you are selling at retail in North America, this is your format.

EAN-13 is the 13-digit international equivalent of UPC. If you are selling outside North America, or on international Amazon and global marketplaces, use EAN-13. Most scanners in the US can read EAN-13 as well — it is backwards-compatible.

Code 128 is the standard for shipping and logistics labels. It encodes alphanumeric characters (letters, numbers, symbols) and is far more compact than Code 39. Use Code 128 for any internal SKU, shipment tracking, warehouse bin label, or asset tag where you control the scanning environment.

EAN-8 is a compressed version of EAN for very small product packaging where a full EAN-13 or UPC does not fit physically.

Code 39 is an older format still used in legacy industrial, automotive, and healthcare environments. Choose Code 128 over Code 39 for new implementations unless your environment requires Code 39 specifically for scanner compatibility.

If you want to add a digital destination alongside your product barcode — a product story page, a how-to video, an ingredient list, or a loyalty sign-up — add a QR code as a second element on the label. The barcode handles POS scanning; the QR code handles consumer engagement.

UPC-A: US retail products. 12 digits. GS1 registration required for major retail.
EAN-13: Global retail products. 13 digits. International standard.
Code 128: Shipping labels, warehouse, internal SKUs, asset tags. Alphanumeric.
EAN-8: Tiny packaging where standard EAN-13 does not fit.
Code 39: Legacy industrial and healthcare environments.
QR code alongside barcode: consumer engagement layer on product packaging.

How to generate a barcode image for free: step by step

Step 1: Choose your barcode type based on the use case above. If you are creating a retail product label and have a GS1 GTIN, choose UPC-A or EAN-13. If you are creating an internal inventory label or shipping label, choose Code 128.

Step 2: Enter the number or text to encode. For UPC-A and EAN-13, enter your GS1 GTIN exactly. For Code 128, enter your internal SKU, serial number, or any alphanumeric string. Most free generators calculate and append the check digit automatically — do not add it manually unless the tool specifically requires it.

Step 3: Configure dimensions if the tool allows it. Set the barcode width and height to match your label size. For retail product labels, the minimum scannable size for UPC-A is 26.69mm wide by 18.28mm tall (80% magnification). Going smaller risks scan failure at retail checkout.

Step 4: Download in SVG format for any print application — packaging, shelf labels, shipping labels. SVG is a vector format that scales to any size without pixelation, ensuring clean lines when printed on high-resolution label printers. Download PNG only if SVG is not available, and at the highest resolution the tool offers (minimum 300 DPI for print).

Step 5: Test before printing in bulk. Import the barcode image into your label design, print one test label, and scan it with the device that will be used in production — a retail scanner, a warehouse gun, or a phone. Confirm the decoded value matches what you encoded. Only proceed to bulk print after a successful scan test.

Barcode requirements by sales channel

Amazon US: requires UPC-A registered with GS1. The GTIN must be registered to your brand name in the GS1 Global Registry. Amazon verifies this at the time of listing creation. GTIN exemptions are available for custom-made or handmade products, bundles, and certain categories — apply through Seller Central before listing.

Amazon EU / Amazon UK: requires EAN-13 registered with GS1. Same verification policy as US. UK-based brands register through GS1 UK.

Walmart Marketplace: requires GS1-registered UPC-A. GTIN verification is mandatory at onboarding. No exemption process analogous to Amazon's.

Shopify: accepts UPC, EAN, or custom internal identifiers in the barcode field. No external verification. If you are syncing Shopify to Amazon or Walmart via an integration, ensure the barcode field contains a valid GS1 GTIN.

Etsy: no barcode requirement for Etsy listings. Useful if you manage cross-platform inventory using a third-party tool that requires unique identifiers.

In-person retail and pop-up events: use your GS1 UPC or EAN if your POS system is set up to look up products by barcode. Alternatively, use an internal SKU in Code 128 if the POS is self-managed and you only need to trigger an item lookup in your own database.

SVG vs PNG: which download format to use

SVG (Scalable Vector Graphics) is the correct format for any barcode that will be printed. SVG files define barcode lines as mathematical paths rather than pixels, so they scale to any size without losing crispness. A barcode exported as SVG and printed at 0.5mm per line or 5mm per line will scan equally well — the lines are perfect at every scale.

PNG is a raster format — it stores the image as a grid of pixels. If you generate a PNG at low resolution and scale it up in your design software, the lines become blurry or pixelated, which can cause scan failures. If SVG is not available, download PNG at the highest available resolution — ideally 300 DPI or higher for print. For screen display only (a website or email), PNG at 72 DPI is fine.

Avoid JPEG for barcodes entirely. JPEG compression introduces artefacts around sharp edges — exactly the kind of sharp black-and-white boundaries that barcodes consist of. Even a small JPEG artefact can corrupt a line width and make the barcode unscannable.

LinkLab's barcode generator exports both SVG and PNG, making it straightforward to get the right format for packaging design, label printing, and digital use in one workflow.

Frequently asked questions

Start in under 60 seconds

Your URL shortener should do more than shorten
better links, QR codes, and analytics

Join teams using LinkLab to shorten URLs, create branded links, track campaign clicks, manage custom domains, and scale link workflows without switching platforms.

No credit card required
Free forever plan
5-minute setup