What a barcode is and why you might need one

A barcode is a pattern of black and white bars that encodes information — usually a product number or identifier — in a format that a scanner can read. When you scan a barcode with a barcode reader (a handheld device or a smartphone camera), it instantly translates those bars into the number or text stored inside.

You might need to create a barcode if you're selling products, tracking inventory, managing library materials, or organizing items in a warehouse. The barcode itself is just the visual representation; the actual data it holds is usually a number between 8 and 128 characters long, depending on the barcode type.

Creating a barcode is straightforward and often free. You don't need special equipment — just software or an online tool, the number or text you want to encode, and a choice of barcode format that matches your purpose.

Key Takeaways

  • The most common barcode formats for retail products are UPC (12 digits) and EAN (13 digits), while Code128 works for almost any text or number.
  • You can generate a barcode using free online generators, desktop software like Barcode Studio or Zint, or built into tools like Excel or Google Sheets.
  • The barcode itself is just the image; you need to decide what data (usually a number) goes inside it before you generate it.
  • Once created, you can print the barcode on labels, packaging, or documents, or display it on a screen for scanning.

Choosing the right barcode format for your needs

Different barcode formats exist because they were designed for different purposes. The format you choose depends on what you're encoding and where the barcode will be used.

UPC (Universal Product Code) is the standard for retail products in North America. It holds a 12-digit number and is what you see on most grocery store items. If you're selling physical products through a retailer or online marketplace, you may need a UPC. You typically purchase UPC numbers from GS1, the organization that manages them.

EAN (European Article Number) is the international equivalent and holds 13 digits. It's used in Europe, Asia, and Australia. Many online marketplaces accept both UPC and EAN.

Code128 is more flexible and can encode letters, numbers, and special characters. It's commonly used for shipping labels, warehouse inventory, and internal tracking systems where you control the numbering scheme. Code128 doesn't require you to purchase numbers from an authority.

QR codes are two-dimensional barcodes that hold much more data — they can store a URL, contact information, or longer text. They're read by smartphone cameras and are useful for marketing, event tickets, or product information links.

Using free online barcode generators

The fastest way to create a single barcode is an online generator. These are web-based tools where you enter your data, choose a format, and download the barcode as an image file.

Popular free options include Barcode Lookup, TEC-IT, and Zint Online. The process is the same across most of them: enter the number or text you want to encode, select the barcode type (UPC, Code128, QR, etc.), and click Generate. The tool creates an image you can download as PNG, JPG, or SVG.

Online generators work well if you need a handful of barcodes. They're free, require no installation, and produce print-ready images. The downside is that if you need to create hundreds or thousands of barcodes, doing them one at a time becomes tedious.

When you download the image, check the resolution. For printing on labels or packaging, you want at least 300 DPI (dots per inch). Most online generators default to screen resolution, so you may need to adjust the size or export settings before printing.

Creating barcodes in bulk with desktop software or spreadsheets

If you need to generate many barcodes at once, desktop software or a spreadsheet is more efficient than an online tool.

Barcode Studio (by TEC-IT) and Zint are free desktop applications that let you create barcodes in batches. You provide a list of numbers or text, and the software generates all the barcodes at once. Both run on Windows and Mac. You can then export the barcodes as individual images or arrange them on a sheet for printing.

Excel and Google Sheets can also generate barcodes if you use a barcode font. A barcode font is a special typeface that converts numbers into barcode patterns. You type the number in a cell, apply the barcode font, and the cell displays the barcode. Free barcode fonts like Code128 and IDAutomationHC39M are available online. This method is simple if you already work in spreadsheets, though the quality depends on the font and your printer.

For large-scale operations, some businesses use barcode labeling software like Bartender or NiceLabel, which integrate with databases and can print directly to label printers. These are paid tools but offer more control and automation.

Understanding what data goes inside your barcode

Before you create a barcode, you need to decide what number or text it will encode. This is the actual data the barcode holds.

For retail products, this is usually a UPC or EAN number. If you're selling through Amazon, eBay, or another marketplace, check their requirements — they may ask for a specific number format or may assign you one. If you're creating barcodes for internal use (inventory, warehouse items, library books), you can use any numbering scheme you choose. Many businesses use sequential numbers, product IDs, or SKUs (stock keeping units).

Keep your numbering system consistent and documented. If you create a barcode for item #5001 today, make sure you don't accidentally create a different barcode for #5001 next month. A simple spreadsheet tracking which number corresponds to which item prevents confusion later.

For QR codes, the data can be a URL, contact information, or plain text. The barcode generator will encode whatever you provide.

Printing and using your barcode

Once you've created the barcode image, you need to print it or display it in a way that a scanner can read it reliably.

For printed barcodes, use a label printer or regular printer with barcode label sheets. Make sure the barcode is large enough — most scanners need at least 0.5 inches wide, though larger is better. Test the barcode with an actual scanner before printing hundreds of labels. A barcode that looks fine to the eye might not scan if the contrast is poor or the bars are too thin.

If you're displaying a barcode on a screen (for example, on a ticket or receipt shown on a phone), make sure the screen brightness is high enough and the barcode is clear and unobstructed.

Store your barcode images in a folder organized by product or batch. If you need to reprint or update barcodes later, you'll want to find them quickly. Many businesses keep both the original image files and a backup of the data (the numbers or text) that went into them.

Common mistakes to avoid when creating barcodes

The most common mistake is creating a barcode without testing it first. Always scan a test copy with the actual scanner you'll be using before you print in bulk. Different scanners have different sensitivities, and a barcode that looks correct might not scan reliably.

Another mistake is using a barcode format that doesn't match your use case. If you're selling retail products, you need UPC or EAN, not Code128. If you're tracking internal inventory, Code128 is usually better than UPC because you control the numbering. Choosing the wrong format wastes time and creates confusion.

Printing at too low a resolution is also common. If you download a barcode from an online generator and print it at screen resolution (72 DPI), the bars may be too blurry to scan. Always check the resolution before printing, and aim for at least 300 DPI.

Finally, don't reuse the same barcode for different items. Each barcode should represent one unique product or item. If you accidentally print the same barcode on two different products, scanners will read them as identical, and your inventory or sales data will be wrong.

Frequently Asked Questions

Do I need to buy a barcode number before I create one?

It depends on your use case. If you're selling retail products, you typically need to purchase a UPC or EAN number from GS1 (the official authority). If you're creating barcodes for internal inventory, warehouse tracking, or non-retail purposes, you can use any numbering system you choose and don't need to buy anything.

Can I create a barcode on my phone?

Yes. Several smartphone apps let you generate barcodes, including Barcode Generator (available on iOS and Android) and QR Code Generator. These work the same way as online tools — you enter your data, choose a format, and the app creates the barcode. You can then save it to your phone or print it.

What's the difference between a barcode and a QR code?

A barcode is one-dimensional (a series of vertical bars) and typically holds a short number. A QR code is two-dimensional (a square pattern) and can hold much more data, including URLs and text. Barcodes are scanned with dedicated barcode readers; QR codes are scanned with smartphone cameras. Choose a barcode for simple product identification and a QR code when you need to store more information or want customers to scan with their phones.

Can I edit a barcode after I create it?

No. A barcode is a fixed image that encodes specific data. If you need to change what the barcode represents, you create a new one. You can resize or adjust the appearance of the image file, but you cannot change the data it encodes without generating a new barcode entirely.

What if my barcode won't scan?

Check the contrast — the bars should be black and the background white, with no gray or faded areas. Check the size — the barcode should be at least 0.5 inches wide. Check for damage or dirt on the printed barcode. If the barcode still won't scan, regenerate it using a different tool or format, and test again before printing more copies.