WordPress Logo – Athemeart WordPress Themes

How to Generate Custom QR & Barcodes for WooCommerce Inventory Management (5 Best Plugins + Free Tool)

Most WooCommerce stores do not fail on traffic. They fail on stock. A bestseller shows “in stock” on the site, the shelf is empty, and a customer waits three days for an apology email. A barcode generator for WooCommerce closes that gap by giving every product, variation and order a scannable ID, so counting, picking and shipping become a scan instead of a search.

This guide shows you how to create custom QR codes and barcodes for WooCommerce inventory management, from choosing the right code type to printing labels and scanning stock in. You will also get a side-by-side look at five real plugins (free and paid), copy-ready code snippets, and a free online QR code generator and scanner plus a free barcode generator and scanner you can use right now with any store.

Quick answer: Give every product and variation a unique SKU or GTIN, use Code 128 or QR for internal inventory and EAN-13 or UPC-A for retail and marketplaces, generate the codes with a plugin or a free online tool, print them on labels, then scan to look up products and update stock.

What you will be able to do after reading

  • Pick the right code type (EAN-13, UPC-A, Code 128, QR, Data Matrix) for each job
  • Compare the best QR and barcode generator for WooCommerce plugins, free and premium
  • Add order barcodes for WooCommerce to emails, invoices and packing slips
  • Print labels on A4, Letter and thermal rolls without wasting a sheet
  • Scan a code to find a product or adjust stock, including via the REST API
  • Get ready for GS1 Sunrise 2027, when retail checkouts start reading 2D codes
From SKU to scanThe barcode workflow for WooCommerce inventory1Product dataSKU / GTIN2GenerateBarcode + QR3PrintLabels4ScanPhone or gun5UpdateStock + ordersFrom SKU to scanThe barcode workflow for WooCommerce inventory
The barcode and QR code workflow for WooCommerce inventory management: product data, code generation, labels, scanning and stock updates.

Why QR codes and barcodes matter for WooCommerce inventory

WooCommerce is flexible, but it does not know what is physically on your shelf. It only knows what you typed. Every manual edit is a chance for a typo, a wrong variation or a forgotten recount, and those small errors add up to oversells, backorders and refunds. If you are new to the platform, our explainer on what WooCommerce is and how it works covers the basics before you go deeper into stock control.

The scale of the problem is bigger than most store owners assume. IHL Group research puts the global cost of retail at about $1.77 trillion a year, made up of roughly $1.2 trillion in out-of-stocks and $572 billion in overstocks. You cannot fix that alone, but accurate counts at your own scale are the first lever you control.

Inventory distortion cost chartBar chart: out-of-stocks cost about 1.2 trillion dollars and overstocks about 572 billion dollars a year.Global retail inventory distortion: about $1.77 trillion a yearOut-of-stocks and overstocks, the two costs accurate stock counts help shrinkOut-of-stocks$1.2TOverstocks$572BSource: IHL Group inventory distortion research
Out-of-stocks and overstocks drive roughly $1.77 trillion of annual retail inventory distortion (IHL Group).

QR codes are the other half of the story. Shoppers and staff are now used to pointing a phone at a code: eMarketer figures reported by show US smartphone users who scan QR codes growing from about 91 million in 2023 to a projected 102.6 million in 2026. Market researchers such as Mordor Intelligence also estimate the global QR code market will more than double by 2030. That habit means a QR label on a shelf, a box or a packing slip needs no training.

US QR code scanner users chartColumn chart: 91 million US smartphone users scanned QR codes in 2023, 99.5 million in 2025, and 102.6 million are projected for 2026.US smartphone users who scan QR codes (millions)025507510091M202399.5M2025102.6M2026 (projected)Source: eMarketer figures reported by Statista
US smartphone users who scan QR codes keep rising (eMarketer figures reported by Statista).

What barcodes and QR codes fix in a WooCommerce store

  • Receiving stock: scan the code on a delivery and add units, instead of searching by name.
  • Cycle counts: count a shelf by scanning, then compare the totals with WooCommerce. Our WooCommerce inventory management guide shows how to schedule these counts.
  • Picking and packing: a scan confirms that the right product and variation went into the box.
  • Order tracking: an order barcode on the packing slip lets anyone pull up the order in seconds.
  • Returns: scan the returned item and restock it without retyping anything.
  • Retail and POS: a proper EAN or UPC lets one catalogue serve your website, your shop counter and your marketplaces.

Barcode vs QR code: which one should you use?

Short version: use a 1D barcode (Code 128, EAN-13, UPC-A) when the code only needs to carry a short ID that a scanner gun reads. Use a 2D code (QR, Data Matrix) when you want to carry a URL, a longer string or more data, or when the label is tiny.

Barcode and QR code typesIllustration of EAN-13, Code 128, QR Code and Data Matrix symbols with their typical WooCommerce uses.The four code types you will meet in WooCommerce inventory5 901234 123457EAN-13 / UPC-ARetail products, marketplacesATA-000123Code 128Internal SKUs, orders, shippingQR CodeURLs, bins, order lookupsData MatrixTiny labels, parts, GS1 dataIllustrative patterns only, not scannable
Barcode and QR code types compared by typical WooCommerce use. Patterns are illustrative and will not scan.
Code type Best WooCommerce use Data it carries Watch out for
EAN-13 / UPC-A Retail products, marketplaces, Google Shopping feeds 13 or 12 digits (GTIN) Needs real, unique GTINs if you sell through third parties
Code 128 Internal SKUs, order numbers, shipping labels Letters, numbers, symbols Long values make the label wide
Code 39 Legacy scanners, simple internal IDs Uppercase letters, digits Bulky for what it carries
ITF-14 Cartons and wholesale cases 14 digits Only for outer packaging
QR Code Product page links, bin and shelf lookups, order lookups from a phone URLs and long text Use a destination you control, not a random shortener
Data Matrix Very small parts and labels, GS1 data Dense text and numbers Needs a 2D-capable scanner

Rule of thumb for small stores: encode your SKU in Code 128 for the warehouse, add the real EAN or UPC for retail, and put a QR code on the shelf or packing slip when you want phones to open a product page or an order. The plugins below let you mix these on one label.

GS1 Sunrise 2027 and your WooCommerce GTINs

Most guides skip this, and it matters. GS1, the standards body behind UPC and EAN, is leading an industry push called Sunrise 2027. The goal is that by the end of 2027, retail point-of-sale systems can read certain 2D codes, namely QR codes carrying a GS1 Digital Link and GS1 DataMatrix, alongside the familiar UPC and EAN barcodes. You can read the official overview on the , and the convenience-store association NACS has a practical piece on .

The transition does not retire the old barcode overnight. Brands are encouraged to print both a 2D code and an EAN or UPC during the changeover. For a WooCommerce store, three things follow:

  • Keep your GTINs clean. Store them in WooCommerce’s native GTIN, UPC, EAN or ISBN field (available in recent WooCommerce versions) rather than in a custom note. Good identifiers are what both 1D and 2D codes encode.
  • Choose plugins that support QR and Data Matrix, not only EAN and UPC, so you can add 2D codes later without switching tools.
  • Use a destination you control for any QR code on a product, so the printed label never breaks.

How to choose a barcode generator plugin for WooCommerce

Search for a QR and barcode generator for WooCommerce and you will find dozens of options, from free to hundreds of dollars. Before you compare names, decide what you actually need. This checklist keeps the choice honest, and our roundup of essential WooCommerce plugins is a good companion if you are building out the rest of your stack.

  • Code types: does it support EAN-13, UPC-A and Code 128, and also QR if you need it?
  • Value source: can it build the code from SKU, product ID, GTIN or a custom field?
  • Automation: will it auto-generate codes for new products and orders, and for variations?
  • Order barcodes: can it add codes to order screens, emails and PDF invoices?
  • Label printing: A4 and Letter sheets, thermal rolls, custom label sizes, a preview and a test page?
  • Scanning: can a scan find a product, change stock or move an order status?
  • Integrations: POS, ERP, REST API, WPML, your invoice plugin?
  • Compatibility: is it tested with your current WooCommerce version and High-Performance Order Storage (HPOS)?
  • Licence model: annual, lifetime, per-site? What happens to the features if the licence lapses?

Quick comparison of the five plugins

Plugin Best for Code types QR Order barcodes Label printing Scan to act Price
Barcode and QR Code (FmeAddons) All-in-one 13 protocols Yes Yes Sheets and thermal Yes, shortcodes and REST From $49 a year
WooCommerce Barcode Generator (Sharabindu) Order barcodes and invoices EAN-13, EAN-8, UPC, Code 128 Separate plugins Yes (Pro) Yes, bulk and stickers Yes (Pro) From $49, lifetime options
Barcode Generator for WooCommerce (free) Free product barcodes EAN-13, EAN-8, UPC-A, Code 128 No Pro only Yes Pro only Free
Print Labels with Barcodes (UKR Solution) Label design Code 128, Code 39, QR, Data Matrix, UPC, EAN Yes Order labels A4, Letter, thermal Via companion scanner plugin Licence needed to print
EAN for WooCommerce (WPFactory) GTIN and EAN management EAN-13, UPC-A, EAN-8, ISBN-13, JAN, EAN-14 Pro (2D) EAN in orders Pro (PDF) Search by EAN Free core, paid Pro

Prices and plan names change often, so confirm them on each vendor page before you buy. Now let us go through each option in detail.

1. Barcode and QR Code for WooCommerce: best all-in-one barcode and QR generator

Barcode and QR Code for WooCommerce overview graphicGraphic summarising Barcode and QR Code for WooCommerce: Best all-in-one: products, orders, labels and scanning.1Barcode and QR Code for WooCommerceBest all-in-one: products, orders, labels and scanning13 code typesQR + Data MatrixOrder barcodesThermal labelsScan shortcodesREST lookupSKU-100245Scan, count, ship
Barcode and QR Code for WooCommerce: best all-in-one: products, orders, labels and scanning.

Barcode and QR Code for WooCommerce, built by FmeAddons and sold on the official WooCommerce marketplace, is the most complete QR and barcode generator for WooCommerce in this list. It covers generation, scanning and label printing in one plugin, which is rare. It is listed under the Inventory and order management category and passes the marketplace’s security and compatibility checks.

Key features

  • 13 barcode protocols, including UPC, UPC-E, EAN 8, EAN 13, Code 128, Code 39, Code 93, ITF 14, QR Code, Data Matrix, PDF 417, Codabar and Aztec Code. You can set one protocol for products and another for orders.
  • Seven ways to build the value: product SKU, product ID, a prefix and suffix sequence (such as EXT-000123-EU), a custom field, the product page URL, a custom URL, or the WooCommerce GTIN field.
  • GTIN sync: copy generated codes into the native GTIN field, or copy existing GTIN values into barcodes, in bulk and in either direction.
  • Auto-apply to new products and orders, with include and exclude rules by product or category.
  • Label printing for US Letter and A4 sheets, plus roll and thermal labels (2 x 1 in, 4 x 6 in shipping, 50 x 25 mm and more), with a live preview, a test page, 14 product fields and 9 order fields.
  • Scan shortcodes that can raise or lower stock, or set an order to Processing or Completed, with role-based access.
  • REST API lookups so a POS, ERP or mobile app can fetch a product or order by barcode.

Scope of use

Use it as the single barcode system for a store that sells online and ships from its own stock: generate codes for the whole catalogue, print shelf and shipping labels, and let staff scan to receive stock or complete orders. The page-URL option turns every product into a QR code that opens its own page, which is handy for shelf tags and packaging inserts. It needs WooCommerce 4.0+ and PHP 7.4+, and the vendor lists testing with WooCommerce 11.2.1.

Best for

Growing stores and agencies that want one supported tool for product barcodes, order barcodes, labels and scanning, and do not mind a yearly licence.

Pricing and what to watch

  • Listed at $49 for a 1-year plan (a 2-year plan is discounted), with updates, support and a 30-day money-back guarantee.
  • It is a newer product (version 1.0.5 at the time of writing), so check the changelog and documentation before rolling it out store-wide.
  • Product lookups through the REST endpoint need no authentication, so decide whether you are comfortable exposing that product data; order lookups do require a WooCommerce REST key.

Check It Now (Barcode and QR Code for WooCommerce)

2. WooCommerce Barcode Generator by Sharabindu: best for order barcodes and invoices

WooCommerce Barcode Generator Pro overview graphicGraphic summarising WooCommerce Barcode Generator Pro: Best for order barcodes, invoices and shipping stickers.2WooCommerce Barcode Generator ProBest for order barcodes, invoices and shipping stickersEAN-13 / EAN-8UPC + Code 128Order emailsPDF invoicesBulk labelsScan to searchSKU-100245Scan, count, ship
WooCommerce Barcode Generator Pro: best for order barcodes, invoices and shipping stickers.

Sharabindu’s WooCommerce Barcode Generator has been around since 2021 and is one of the longest-running options for product and order barcodes for WooCommerce. The Pro plugin generates a unique EAN-13 for every product on activation, so a store with hundreds of SKUs can go from nothing to fully coded in minutes.

Key features

  • Automatic product barcodes in EAN-13, EAN-8, UPC and Code 128, including a separate code for every variation.
  • Order and item barcodes built from the order ID or transaction number, added to customer and store emails.
  • PDF invoice and packing slip barcodes, so an order can be verified with one scan.
  • Label designer with product name, price, weight, dimensions, category, tag, brand and two custom text fields; bulk print by quantity, and shipping stickers for packages.
  • Scan to search: look up orders and products by scanning, with live demos for POS-style order search and product lookup.
  • Migration friendly: reuse barcodes already stored in GTIN, SKU or a custom meta key after importing from Shopify or another platform.
  • Barcodes can be shown on product pages through a shortcode, which also works in Elementor, Divi and WPBakery.

Scope of use

Best suited to stores that care about the order side of fulfilment: print the order barcode on the packing slip, scan it at the packing bench, and find the order without typing. You can trial the product side first with the free version on WordPress.org (see item 3).

Best for

Stores that need barcodes on emails, PDF invoices and shipping stickers, and want human support (live chat and WhatsApp are advertised).

Pricing and what to watch

  • Plans at the time of writing run from a 1-site annual licence at $49 to lifetime licences ($129 for one site, up to 25 sites), with a 14-day refund window. Sale prices change.
  • Important: on an annual licence, Pro features switch off when the licence expires. Barcodes you already printed keep working, but the plugin stops generating and displaying them. Lifetime plans avoid that.
  • QR codes are not the focus here; the vendor sells separate QR plugins.

Check It Now (WooCommerce Barcode Generator Pro)

3. Barcode Generator for WooCommerce (free): best free barcode generator for WooCommerce

Barcode Generator for WooCommerce (Free) overview graphicGraphic summarising Barcode Generator for WooCommerce (Free): Best free barcode generator for WooCommerce.3Barcode Generator for WooCommerce (Free)Best free barcode generator for WooCommerceFreeEAN-13 / UPC-ACode 128SKU or GTIN sourceLabel printingDownload CenterSKU-100245Scan, count, ship
Barcode Generator for WooCommerce (Free): best free barcode generator for woocommerce.

If you searched for a free barcode generator for WooCommerce or a barcode generator for WooCommerce free download, start here. It is the free edition of Sharabindu’s plugin on WordPress.org, and it handles the core product job without any licence: a unique, scannable barcode for every product.

Key features

  • Automatic barcode for every product, generated from the SKU (and updated if the SKU changes), the product ID, an auto-generated number, or WooCommerce’s GTIN, UPC, EAN and ISBN values.
  • EAN-13, EAN-8, UPC-A and Code 128 output.
  • Print labels one at a time or in bulk for packaging, shelves and boxes.
  • Download Center: search, filter and download all product barcodes from one admin page.
  • Product page display in several positions, or anywhere through a shortcode.
  • Translation ready and compatible with WPML and Loco Translate.
  • Barcodes are generated on the fly, not stored as image files, and the plugin does not connect to third-party services.

Scope of use

Small shops, local retailers and anyone testing barcodes before they commit to a paid tool. You get product barcodes and label printing for free; order barcodes, invoice barcodes, advanced label design, variable product support and POS-style scanning sit in Pro.

Best for

Beginners and budget-conscious stores that want free barcodes for WordPress-powered shops, plus anyone who wants to try the Sharabindu workflow before upgrading.

Pricing and what to watch

  • Free, requires WordPress 6.0+, PHP 7.2+ and WooCommerce. Tested up to WordPress 7.1.2.
  • It is a young listing (around 200 active installations and no public reviews yet), so test on a staging site first.
  • Variable product barcodes are a Pro feature, so a catalogue full of variations will outgrow it.

Check It Now (Barcode Generator for WooCommerce Free)

4. Print Labels with Barcodes (A4 Barcode Generator): best for custom label sheets

Print Labels with Barcodes overview graphicGraphic summarising Print Labels with Barcodes: Best for A4 sheets, thermal rolls and custom labels.4Print Labels with BarcodesBest for A4 sheets, thermal rolls and custom labelsCode 128 / 39QR + Data MatrixA4, Letter, thermalCustom sheetsProduct + order labelsSKU-100245Scan, count, ship
Print Labels with Barcodes: best for a4 sheets, thermal rolls and custom labels.

Built by UKR Solution, this plugin focuses on one job and does it well: turning WooCommerce products, categories and orders into printable barcode and QR labels. With around 900 active installations and a 4.5 out of 5 rating on WordPress.org, it is the best-known label-first option in this list.

Key features

  • Many code types: Code 128, Code 39, QR Code, Data Matrix, GTIN and the GS1 family (UPC-A, UPC-E, EAN-13, EAN-8).
  • Code from anything: product ID, SKU, GTIN or any custom field, with optional prefixes and combined values.
  • Printer support: A4, Letter and P4 sheets, plus roll and thermal printers such as DYMO, Zebra and Brother.
  • Built-in label sheets from 12 up to 324 labels per page, and your own custom sheet formats.
  • Fields on the label: name, SKU, price, attributes, customer data and more; one label per unit in stock if you wish.
  • Four ways to start printing: from the All Products list, a single product, the product edit page, or each variation.
  • Save labels as PNG or export all pages as a PDF.

Scope of use

Shops that print a lot of labels: shelf tags, price stickers, bin labels and shipping labels. Pair it with the vendor’s separate Barcode Scanner plugin and its mobile app when you also want to scan products and orders to manage stock.

Best for

Stores with a thermal printer or specific label sheets that need exact layout control, and teams that want to design templates with HTML and CSS (Business plan).

Pricing and what to watch

  • Read this before installing: the free WordPress.org listing works as a demo, and recent reviews from 2026 report that printing asks for a licence. Budget for a Basic, Business or Premium plan.
  • Version 4.0 was a full rewrite in July 2026, so test your label templates after updating.
  • Browsers differ on margin-free printing; the vendor suggests testing with a printer-margin check page and using sheets with page margins if needed.

Check It Now (Print Labels with Barcodes)

5. EAN Barcode Generator for WooCommerce: best for GTIN, UPC and EAN management

EAN Barcode Generator for WooCommerce overview graphicGraphic summarising EAN Barcode Generator for WooCommerce: Best for GTIN, EAN and UPC management.5EAN Barcode Generator for WooCommerceBest for GTIN, EAN and UPC managementEAN, UPC, ISBN, JANBulk toolsSearch by EANStructured dataHPOS compatibleSKU-100245Scan, count, ship
EAN Barcode Generator for WooCommerce: best for gtin, ean and upc management.

EAN for WooCommerce by WPFactory is popular for good reason: more than 10,000 active installations and a 4.9 out of 5 rating on WordPress.org. It is less about printing pretty labels and more about getting your product identifiers right, which is exactly what marketplaces and shopping feeds care about.

Key features

  • Store GTIN, EAN, UPC, ISBN, JAN and EAN-14 values for simple, variable and variation products.
  • Bulk tools: generate EANs with a country prefix and seed, copy from SKU, product ID or meta, assign from a prepared list, or delete in bulk, manually or automatically.
  • Search by EAN in the admin and on the storefront, and search orders by EAN.
  • Structured data: add the identifier to product schema for better search visibility.
  • Show it anywhere: product pages, categories, cart, checkout, order items, emails and supported invoice plugins.
  • Compatibility: HPOS, Google Listings and Ads, Point of Sale for WooCommerce, OpenPOS, Dokan, WCFM, MultiVendorX, Rank Math and several PDF invoice plugins.
  • Pro adds barcode images, printing multiple barcodes to PDF, extra fields (for example EAN plus MPN) and full 1D and 2D (QR) support.

Scope of use

Ideal when your first problem is data, not labels: you have a catalogue that needs valid GTINs for Google, Amazon-style feeds or a POS, and you want them stored consistently. Combine it with a label tool from this list if you also need to print.

Best for

Multi-vendor sites, stores syncing to a POS, and anyone feeding product data to shopping channels.

Pricing and what to watch

  • The core plugin is free; barcode images and PDF printing need the paid Pro version, and one reviewer noted that the free version only shows the numbers.
  • Generated EANs are placeholders for internal use. If you sell through marketplaces that verify identifiers, use real GTINs from your manufacturer or GS1.

Check It Now (EAN Barcode Generator for WooCommerce)

Order barcodes for WooCommerce: pick, pack and ship with one scan

Product barcodes tell you what is in the box. Order barcodes for WooCommerce tell you which box belongs to which customer. A short code on the packing slip, email or invoice lets anyone at the packing bench open the right order without typing a number or squinting at a printout.

Order barcode workflowOne scan opens the order at every step1Order placedBarcode created2Email + slipCode printed3Pack benchScan to open4ProcessingStatus set5CompletedShippedOrder barcode workflowOne scan opens the order at every step
How an order barcode moves an order from checkout to shipment.

Here is how the plugins above handle it:

  • Barcode and QR Code for WooCommerce builds order codes from the order ID, order number or a custom field, shows them on the admin order page and in confirmation emails, and its order shortcode can set an order to Processing or Completed on scan. If you want to place that scan box on a page, our guide to WooCommerce shortcodes explains how shortcodes work.
  • Sharabindu’s WooCommerce Barcode Generator adds the order barcode, and optionally each item’s barcode, to customer and store emails, then to PDF invoices and packing slips. It also creates shipping stickers.
  • Print Labels with Barcodes can print a label for a whole order, or one for each purchased item, from the Orders screen.
  • EAN for WooCommerce lets you add EANs to order items and search orders by EAN.

Tip: make the order barcode value something your team already uses, such as the order number. Then a person can still type it in if a scanner battery dies.

Free online QR and barcode generator for WooCommerce (no plugin needed)

You do not always need a plugin. For a small catalogue, a one-off promo, or a quick test before you buy anything, an online barcode generator for WooCommerce is faster and costs nothing. aThemeArt has two free browser tools built for exactly this:

  • Barcode generator and scanner: create common formats such as EAN-13, UPC-A and Code 128 from your SKU or GTIN, download the image, or scan an existing barcode from your camera or an image.
  • QR code generator and scanner: turn a product URL, a bin location or any text into a QR code, and read QR codes you already have.
Free online generator workflowNo plugin needed for small catalogues1Enter valueSKU, GTIN or URL2Pick typeEAN, Code 128, QR3DownloadPNG image4AttachGallery or labelFree online generator workflowNo plugin needed for small catalogues
Create a code with the free online generator and attach it to a WooCommerce product.

This is a free QR code generator for WooCommerce workflow that works with any theme:

  1. Open the product in WooCommerce and copy its SKU (or its public URL for a QR code).
  2. Paste it into the generator, choose the code type, and download the PNG.
  3. Upload the image to the Media Library, add alt text such as “Barcode for SKU ATA-000123”, and place it in the product gallery, the description, or a printable label template.
  4. Scan the result with your phone or scanner before printing a full batch.

For catalogues beyond a few dozen products, a plugin from the list above saves hours, because it generates, stores and prints in bulk. The free tools remain useful as a quick checker whenever a label will not scan.

Step by step: set up barcodes for WooCommerce inventory

  1. Clean your identifiers first. Every product and variation needs a unique SKU, and retail items need a valid GTIN. Fix duplicates and blanks before you generate anything. A WooCommerce bulk edit plugin makes this quick for large catalogues, and exports from CSV are fine as long as you keep codes as text (spreadsheets love to delete leading zeros on UPCs).
  2. Choose the code type per job. Code 128 or QR for internal use, EAN-13 or UPC-A for anything sold through third parties.
  3. Choose the value source. SKU is easiest to read and type. Product ID never changes. GTIN is required for feeds. You can also store a special bin or supplier code in a custom field; our guide to WooCommerce product options and custom fields shows how to add one.
  4. Generate the codes. Use a plugin to bulk generate for existing products and auto-apply to new ones, or the free online tools for a handful of items.
  5. Print a test page first. Print on plain paper at 100% scale and hold it against your label sheet, then scan a few labels with the device your team will actually use.
  6. Label the stock. Put labels in a consistent spot on every item or bin so people do not hunt for them.
  7. Scan to look up and update. Use the plugin’s scan screen, or send the scanned value to your own tool via the REST API (see below). For lookups inside your shop, make sure the SKU is searchable; our WooCommerce product search guide covers that.
  8. Audit every month. Scan a random bin, compare it with WooCommerce, and fix the cause of any gap.

Selling to trade customers who order by SKU? A WooCommerce product table that shows SKU and stock next to an add-to-cart box makes barcodes and quick ordering work together.

Code snippets for developers

Plugins cover most needs, but a few small snippets make custom setups cleaner. Add them to a child theme or a snippets plugin (see our list of code snippet plugins and sources for WordPress) and test on staging first. If you want to explore other places to hook in, the WooCommerce hooks list with examples is a handy reference.

1. Auto-assign an internal SKU to new products

Every barcode needs a unique value. This snippet gives any new product without a SKU a predictable one based on its ID, such as ATA-000123.

/**
 * Give new products without a SKU an internal one, e.g. ATA-000123.
 * Add to a child theme's functions.php or a snippets plugin.
 */
add_action( 'woocommerce_new_product', 'ata_assign_internal_sku', 10, 1 );

function ata_assign_internal_sku( $product_id ) {
	$product = wc_get_product( $product_id );

	if ( ! $product || $product->get_sku() ) {
		return; // Keep SKUs that were entered manually.
	}

	try {
		$product->set_sku( sprintf( 'ATA-%06d', $product_id ) );
		$product->save();
	} catch ( WC_Data_Exception $e ) {
		// SKU already exists: log it and let a human decide.
		error_log( 'Barcode SKU not set for product ' . $product_id . ': ' . $e->getMessage() );
	}
}

2. Calculate the EAN-13 check digit

The last digit of an EAN-13 is a check digit calculated from the first twelve. This helper is useful when you build internal codes or validate imports.

/**
 * Return the EAN-13 check digit for a 12-digit string.
 * Example: ata_ean13_check_digit( '400638133393' ) returns 1.
 */
function ata_ean13_check_digit( $digits12 ) {
	if ( ! preg_match( '/^\d{12}$/', $digits12 ) ) {
		return false;
	}

	$sum = 0;
	for ( $i = 0; $i < 12; $i++ ) {
		$sum += (int) $digits12[ $i ] * ( 0 === $i % 2 ? 1 : 3 );
	}

	return ( 10 - ( $sum % 10 ) ) % 10;
}

Numbers that start with 20 to 29 are reserved for restricted, in-store use under GS1 rules, so they are a common choice for internal EAN-style codes. Never put invented numbers on products you sell through marketplaces that validate GTINs.

3. Show the native GTIN on the product page

Recent WooCommerce versions store a GTIN, UPC, EAN or ISBN value on the product. This prints it as text under the title, which doubles as the human-readable fallback if a scanner is unavailable.

/**
 * Print the product's native GTIN/UPC/EAN/ISBN value under the title.
 */
add_action( 'woocommerce_single_product_summary', 'ata_show_gtin', 6 );

function ata_show_gtin() {
	global $product;

	if ( ! $product || ! method_exists( $product, 'get_global_unique_id' ) ) {
		return; // Older WooCommerce without the native GTIN field.
	}

	$gtin = $product->get_global_unique_id();

	if ( $gtin ) {
		echo '<p class="ata-gtin">GTIN: ' . esc_html( $gtin ) . '</p>';
	}
}

4. Look up a product by scanned SKU and update stock through the REST API

A scanner that types the code is enough to drive this from a small script, phone shortcut or POS. Use HTTPS, create a dedicated REST key with only the permissions you need, and keep it out of public pages. Our WordPress security checklist covers key handling, and a quick host helps too: see the fastest WooCommerce hosting picks if lookups feel slow. The endpoints are documented in the official WooCommerce developer resources.

# 1) A scanner types the SKU. Find the matching product:
curl -u ck_xxxxxxxx:cs_xxxxxxxx \
  "https://example.com/wp-json/wc/v3/products?sku=ATA-000123"

# 2) Use the "id" from the response to set the counted stock:
curl -X PUT -u ck_xxxxxxxx:cs_xxxxxxxx \
  -H "Content-Type: application/json" \
  -d '{"manage_stock": true, "stock_quantity": 42}' \
  "https://example.com/wp-json/wc/v3/products/123"

Label printing guide: sizes, layout and scan quality

A perfect code on a bad label still fails at the bench. Get these basics right and your team will stop complaining about scanners.

Inventory label anatomyA sample product label with store name, product title, variation, price, barcode, SKU and QR code, each explained.Anatomy of a WooCommerce inventory labelYOUR STORELinen Throw Pillow, SageVariation: 45 x 45 cm$24.00SKU ATA-000123Store name or logoBrand the label for returns and retail shelvesTitle + variationStaff pick the right size or colour at a glancePriceSkip separate price tags on the shelfBarcode + QRBarcode for the scanner gun, QR for phones and bin lookups
A well-designed inventory label shows the essentials and pairs a barcode with a QR code.
Label type Typical size Use it for
Small roll or thermal label 50 x 25 mm or 2 x 1 in Product and bin labels with a barcode and SKU
Medium roll label 3 x 2 in Labels with price, variation and a QR code
Shipping label 4 x 6 in Order barcode, address and carrier details
A4 or Letter sheet 12 to 65+ labels per sheet Bulk shelf tags and price stickers on an office printer
  • Contrast: dark bars on a white background. Avoid coloured or glossy labels under bright lights.
  • Size: a standard EAN-13 is about 37.3 x 25.9 mm at 100% magnification. Shrinking it too far is the number one reason a scanner refuses a retail code.
  • Quiet zone: leave blank space around every code. QR codes need a clear border on all four sides.
  • Print at 100% scale: turn off “fit to page” in the print dialog.
  • Printer resolution: thermal printers at 203 dpi or higher work well for 1D codes; use a higher resolution for small QR or Data Matrix labels.
  • Human-readable text: print the SKU or number under the code so people can type it if needed.
  • Test first: scan a printed sample with your actual scanner before printing a full roll.

QR codes and barcodes for WordPress beyond WooCommerce

Not every site sells products. If you run a blog, a restaurant, an event page or a portfolio, you may only need a QR code for WordPress that points to a page, a menu, a contact card or a download. The same ideas apply, with fewer moving parts.

Two ways to add a QR code to WordPress

  1. Static code, no plugin: generate the QR code with the free online QR generator above, upload the PNG to the Media Library and insert it with the Image block. Add descriptive alt text, for example “QR code linking to our spring menu”. The code never expires and adds no plugin weight.
  2. Plugin, for dynamic codes: a WordPress QR code plugin makes sense when you need to change the destination later without reprinting, track scans, or insert codes with a shortcode, widget or page-builder block. Roundups of QR code plugins for WordPress usually split them into basic generators, dynamic or tracked codes, page-builder add-ons and tools that can also read codes.

How to choose a QR code plugin for WordPress

  • Do you need to edit the destination after printing (dynamic codes)?
  • Do you need scan analytics, and is that data stored on your site or on a third-party service?
  • Does it fit your editor (Gutenberg, Elementor, WPBakery, shortcodes)?
  • Does it generate codes on your own domain, so printed codes never depend on someone else’s redirect?

Free barcodes for WordPress work in the same way. Generate the image with the free online barcode generator, or use one of the free plugins above if the codes belong to products. If you are choosing a store theme to carry all of this, our list of best free WooCommerce themes highlights options that keep product pages clean enough for a barcode block.

A security note on QR codes: criminals now print fake QR codes on stickers (“quishing”). For your own labels, point codes to your own domain, avoid third-party link shorteners, and tell customers what the code opens (“Scan for product details”).

Common mistakes to avoid

  • Duplicate or missing SKUs. WooCommerce enforces unique SKUs, and a barcode built from a blank value is worse than no barcode.
  • Using made-up EAN or UPC numbers for marketplaces. Google Shopping and similar channels often validate identifiers. Use real GTINs for those channels and internal codes elsewhere.
  • Skipping variations. A size or colour needs its own code, or staff will count the wrong item.
  • Encoding a URL that can change. Printed QR codes outlive your site structure. Use a stable path or a redirect you control.
  • Not testing the printed label. Screen previews lie. Scan the actual paper.
  • Losing leading zeros. Open CSV files as text so UPC and EAN values keep their zeros.
  • Letting a licence lapse. If a plugin switches features off when an annual licence expires, labels keep scanning but new products stop getting codes. Put the renewal date on your calendar.
  • Ignoring compatibility. Confirm HPOS support and the tested-up-to WooCommerce version before you install anything on a live store.

Building barcode workflows for clients? Our agency playbook for reducing WooCommerce build time shows how to standardise setups like this across projects.

Frequently asked questions

What is the best barcode generator for WooCommerce?

For an all-in-one tool covering product and order codes, QR support, labels and scanning, Barcode and QR Code for WooCommerce is the strongest option here. For order barcodes on invoices, pick Sharabindu’s Pro plugin. For a free start, use the free Barcode Generator for WooCommerce plugin or EAN for WooCommerce.

Is there a free barcode generator for WooCommerce?

Yes. The Barcode Generator for WooCommerce plugin on WordPress.org is free and creates product barcodes with label printing. EAN for WooCommerce stores EAN and GTIN values for free, and our online barcode generator creates codes without any plugin.

Where can I get a barcode generator for WooCommerce free download?

Download it from the WordPress.org plugin directory, or install it from Plugins, Add New in your dashboard by searching for “Barcode Generator for WooCommerce”. The free listings for the Sharabindu plugin and EAN for WooCommerce are both there.

Can I make a QR code for WooCommerce products?

Yes. Barcode and QR Code for WooCommerce can encode the product page URL, SKU or a custom URL as a QR code, and Print Labels with Barcodes supports QR and Data Matrix. For a quick one-off, use the free QR code generator and add the image to the product.

Do I need to buy GTINs, EANs or UPCs?

Only if you sell through channels that validate them, such as marketplaces and shopping feeds. In that case, use the identifiers assigned by your manufacturer or issued by GS1. For internal inventory, any unique SKU in Code 128 or QR works fine.

Which barcode type is best for inventory management?

Code 128 is a strong default for internal SKUs because it carries letters and numbers compactly. Use EAN-13 or UPC-A when the item is sold at retail, and QR or Data Matrix when you want a phone-friendly or very small code.

How do I scan barcodes to update WooCommerce stock?

Use a plugin with a scan feature, such as the product shortcode in Barcode and QR Code for WooCommerce, which can reduce or increase stock per scan. Or send scanned SKUs to the WooCommerce REST API and update the stock quantity from your own tool.

Can I put barcodes on order emails and invoices?

Yes. Sharabindu’s Pro plugin and Barcode and QR Code for WooCommerce add order barcodes to emails, and the Sharabindu plugin also supports several PDF invoice plugins.

Are barcodes saved as image files on my site?

It depends. The free Barcode Generator for WooCommerce plugin generates barcodes on the page instead of storing image files. If you use an online generator, you download an image and upload it yourself.

Final verdict: the best barcode generator for WooCommerce

The best barcode generator for WooCommerce depends on the job you are hiring it for. Use this table to decide quickly.

If you need… Choose
One tool for products, orders, QR codes, labels and scanning Barcode and QR Code for WooCommerce
Order barcodes on emails, invoices and shipping stickers WooCommerce Barcode Generator by Sharabindu
A free place to start with product barcodes Barcode Generator for WooCommerce (free)
Precise label sheets and thermal printing Print Labels with Barcodes
Clean GTIN, EAN and UPC data for feeds and POS EAN Barcode Generator for WooCommerce
A quick, no-install test or one-off code The free aThemeArt barcode generator and QR code generator

Start small: clean your SKUs, generate codes for your ten best sellers, print one test sheet, and scan it with the device your team actually uses. When that works, roll it out to the whole catalogue. Accurate stock is not glamorous, but it is the quiet reason loyal customers keep coming back.

Inspire us with your love!

Saiful Islam

By Saiful Islam

Saiful Islam, the founder of aThemeArt, is a successful freelancer, a father of two boys, and an enthusiast in coding, YouTube, and gaming. Connect with me on Twitter, Facebook, and Instagram to stay updated with my latest endeavors.

You can check also

Leave a Reply

Your email address will not be published. Required fields are marked *.

*
*