Free Online Barcode Generator
1D / Linear Barcode Generator
Barcode Data
Free Online Barcode Generator
A barcode is really just a number or a short string of text translated into a pattern a scanner can read faster than a human could type it. That's the whole idea, and it's why barcodes ended up everywhere — a library checking a book back in, a hospital confirming the right medication for the right patient, a warehouse worker scanning a pallet instead of reading a label by eye. This tool generates the common 1D barcode formats — Code 128, Code 39, UPC-A, EAN-13, ITF-14, Codabar, MSI Plessey, and Pharmacode — directly in your browser.
Picking the Right Format for the Job
The formats aren't interchangeable, and the right one depends on what you're actually encoding and where it needs to be scanned:
- Encoding only numbers, and need to pack in a fair amount of data? Code 128 handles both letters and numbers efficiently and is the default choice for shipping labels and logistics.
- Need letters, numbers, and a few symbols, in an environment with older or simpler scanning equipment? Code 39 is less space-efficient but extremely widely supported, which is why manufacturing and asset-tracking systems still lean on it.
- Labeling a retail product for supermarket checkout in North America? UPC-A. Selling internationally? EAN-13.
- Labeling shipping cartons or bulk packaging rather than individual retail units? ITF-14 is built specifically for that.
- Working in a library, blood bank, or similar setting with legacy scanning systems? Codabar is the long-standing standard there.
- Managing warehouse shelving or basic inventory control? MSI Plessey still shows up in older inventory systems.
- Marking pharmaceutical packaging where space is extremely tight? Pharmacode was designed for exactly that constraint.
If you're integrating with an existing scanner or system rather than starting from scratch, check what format that system already expects before generating anything — retrofitting the wrong barcode format is more work than choosing correctly up front.
Generating One
- Pick the format from the list above based on your use case.
- Enter the data — numeric-only formats will reject letters, so match your input to what the format actually supports.
- Adjust bar width, height, and colors if you have specific printing requirements.
- Generate and download as PNG for standard use or SVG if the barcode needs to scale up for larger packaging.
Getting a Barcode That Actually Scans
A barcode that looks fine on a screen can still fail at the scanner, usually for one of a few avoidable reasons:
- Quiet zone matters. Barcodes need clear empty space on either side — cropping too tight or placing other text right up against the edges is one of the most common causes of scan failures.
- Don't shrink it past readability. Every format has a practical minimum size before the bars become too fine for a scanner (or a worn-out scanner, which is common in real warehouses) to resolve reliably.
- Print resolution matters more than it seems. A barcode that looks crisp on a high-DPI screen can blur at low print resolution. If labels are being mass-printed, test one physical copy before committing to a full run.
- Match the format to the scanner, not just the data. Some older handheld scanners are configured to read only specific formats. A perfectly valid Code 128 barcode won't scan on a reader that's only been set up for Code 39.
A Few Places These Actually Show Up
A handmade-goods seller scaling past a few dozen orders a month usually hits a point where tracking stock by memory stops working — generating Code 128 or UPC-A labels for each product line and scanning them at receiving and shipping solves that without buying inventory software. A hospital pharmacy uses barcodes on medication packaging as a final check against dispensing errors, usually paired with an electronic record rather than a public product catalog. A small publisher's warehouse might use ITF-14 on shipping cartons while the individual books inside carry their own separate ISBN barcodes — two different formats doing two different jobs on the same shipment.
Questions People Usually Have
What's actually different between a 1D barcode and a QR code?
A 1D barcode like the ones here stores data in a single line of varying-width bars, which limits how much it can hold. A QR code stores data in a two-dimensional grid, so it can hold far more — a full URL, for instance — in a smaller physical footprint.
Can I use these barcodes for a real commercial product?
Yes, though for UPC-A and EAN-13 specifically, retailers and marketplaces that check product identifiers usually expect the underlying number to come from a registered GS1 company prefix, not just any number that happens to be the right length.
Why did my barcode scanner fail to read a code that looks correct?
Almost always one of: the format doesn't match what the scanner is configured to read, the quiet zone around the barcode got cropped or covered, or the print size dropped below what that format needs to stay legible.
Is there a limit on how many barcodes I can generate?
No — generate as many as the job requires, whether that's one label or several hundred for a full product catalog.
Does this tool store the data I enter?
No. Barcode generation happens locally in your browser, so nothing you type is uploaded or retained anywhere.