Skip to content
Guide7 min read

How to Create Barcodes for Your Products (Complete Guide)

Step-by-step guide to creating product barcodes online — choosing the right format, entering valid data, customizing the design, and preparing files for print.

Creating a barcode for your product does not have to be complicated. Whether you need a retail product barcode, an inventory label, or a shipping mark, the process follows the same basic steps: choose the right barcode format, enter valid data, generate the barcode, and export it in the format you need.

Step 1 — Choose the Right Barcode Format

The barcode format you choose depends on where the barcode will be used and what data it needs to carry.

Use caseRecommended formatWhy
Retail product sold in storesEAN-13 or UPC-ARequired by most retailers and point-of-sale systems
Internal inventory / warehouseCode 128Compact, supports letters and numbers, widely supported
Asset tag / equipment labelCode 39 or Code 128Easy to read, compatible with most scanners
Shipping carton or caseITF-14GS1 standard for outer packaging
URL or mobile campaignQR CodeReadable by smartphone cameras without a dedicated scanner
Small or industrial partData MatrixCan be printed very small and still scanned reliably

Step 2 — Enter Valid Barcode Data

Different barcode formats have different data rules. Code 128 accepts any combination of letters, digits, and most ASCII characters. EAN-13 and UPC-A accept only digits, and the final digit is a check digit that the generator calculates automatically. Code 39 only supports uppercase letters, digits, and a small set of symbols.

Tip: check digit formats

For EAN-13, UPC-A, and ITF-14, you only need to enter 12, 11, or 13 digits respectively. The generator appends the correct check digit automatically. If you enter the full number including a check digit, the generator will validate it.

Step 3 — Customize the Barcode Design

Most barcodes need only small adjustments. The key settings to consider are size (width and height), quiet zone (the white space around the barcode), and whether to show the human-readable text below the bars. For product labels, the text is usually shown. For purely machine-read labels, you can hide it to save space.

  • Quiet zone: never reduce it below the standard minimum — scanners need the empty border to detect the start and end of the barcode
  • Contrast: use black bars on a white background unless you have a specific reason to use other colors; low contrast is the most common cause of scanning failures
  • Size: print at the intended final size, then test-scan before printing large quantities

Step 4 — Export the Right File Format

The export format you choose affects print quality. SVG is a vector format that stays sharp at any size — use it for labels, packaging, and any print job. PNG is a pixel image that works well for presentations, websites, and prototypes. PDF is the best all-around choice for sending to a print shop because it preserves exact dimensions.

FormatBest forNotes
SVGLabels, packaging, high-resolution printScales to any size without loss of quality
PNGWeb, presentations, mockupsSet a high DPI (300+) for print use
PDFPrint shops, label printersEmbeds exact dimensions; recommended for professional printing

Step 5 — Test Before You Print

Always test-scan a barcode before printing large quantities. Print the barcode at its intended final size and scan it with the scanner you will use in production — whether that is a handheld laser scanner, a camera-based imager, or a smartphone app. Check that the scanner reads it correctly from a normal working distance.

Common scanning problems

If the barcode does not scan, check: (1) the quiet zone is not cropped, (2) the contrast is sufficient — bars should be clearly darker than the background, (3) the barcode is not too small for the scanner's resolution, and (4) the data format is valid for the barcode type.

Frequently Asked Questions

Do I need an official barcode number for my product?

For selling through major retailers, you typically need a GS1-assigned company prefix and product number. GS1 is the organization that administers official EAN-13 and UPC-A numbering globally. You can generate a barcode image from any number, but only a GS1-assigned number will be globally unique and accepted by large retailers.

Can I use the same barcode for different products?

No. Each product variation (size, color, flavor) should have its own unique barcode number. Using the same number on different products causes inventory errors and checkout failures.

What is the minimum print size for a barcode?

For Code 128, EAN-13, and UPC-A, the practical minimum is around 25mm wide. For 2D barcodes like QR Code and Data Matrix, the minimum is smaller — a QR code can be as small as 10mm and still scan reliably with a modern camera. Always test at the smallest size you plan to print.

Ready to create a barcode?

Free, browser-based, no signup required.

More articles