Why You Are Here
You are labelling inventory. You want to put scannable codes on stock, assets, or shelves so a scanner can pull up the right item instantly.
You are printing product or shipping labels. You need a barcode on a label that a retail or warehouse scanner will read reliably.
You are testing a scanner or workflow. You want sample barcodes to check that your scanner, app, or point-of-sale reads a given format correctly.
What This Tool Does
The Barcode Generator turns your text or number into a scannable 1D barcode in the format you choose, and lets you download it for printing on labels, products, or shelves. It handles the check digit for formats that need one, so the code you get is valid.
Picking the Right Symbology
Barcode is not one format but a family, and choosing the wrong one is the most common mistake. Each type suits a different job.
|
Symbology |
Encodes |
Best for |
|---|---|---|
|
Code 128 |
Full ASCII, dense |
Shipping, internal inventory |
|
Code 39 |
Letters, digits, some symbols |
Simple asset and ID labels |
|
EAN-13 |
13 digits |
Retail products (outside North America) |
|
UPC-A |
12 digits |
Retail products (North America) |
|
ITF-14 |
14 digits |
Cartons and shipping cases |
Match the symbology to the reader
A warehouse workflow that scans internal codes is happy with Code 128, while a product destined for a shop till needs EAN or UPC because that is what retail scanners and databases expect. Pick the format your scanner and system are set up to read.
A Barcode Is Not the Same as a Retail Product Code
This is the honest core of the page, and the point that saves people from a real mistake. Generating an EAN or UPC image does not give you a legitimate product number.
Retail numbers must be issued, not invented
The digits inside a real EAN-13 or UPC-A are assigned through GS1, the organisation that governs retail barcodes. A number you make up may collide with a real product's code, and retailers will reject it. To sell in shops, you obtain a genuine number first, then encode it here.
This tool encodes a number, it does not register one
The generator draws a correct, scannable barcode for whatever value you give it. It cannot make that value a valid, owned retail identifier. For internal use, any Code 128 value is fine; for retail, the number must be a real GS1-issued one.
Internal use is unrestricted
If the barcode is only for your own inventory, assets, or a closed system, you can encode any value you like with Code 128 or Code 39. The restriction applies only to the public retail formats.
Scannability Depends on How You Print It
A perfect barcode image can still fail to scan if it is printed badly. A few physical rules decide whether a reader can read it.
Keep the quiet zone
Barcodes need clear white space on the left and right, called the quiet zone. Crop it off or crowd it with other elements and scanners struggle. Leave a margin around the bars.
Do not stretch or shrink too far
Squashing a barcode narrower than the scanner's minimum bar width, or blowing it up until the print blurs, both reduce readability. Scale it proportionally and keep it within a sensible size for the label.
Contrast and print quality matter
Black bars on a white background read best. Low-contrast colours, glossy reflections, and low-resolution or smudged printing all cause failed scans. Print sharp and dark on a light background.
Barcode or QR Code
The two get confused, so here is when each fits. For a 2D QR code, use the QR Code Generator (/miscellaneous-tools/qr-code-generator).
|
Use a 1D barcode when |
Use a QR code when |
|---|---|
|
A retail or warehouse scanner reads it |
A phone camera reads it |
|
You encode a short number or ID |
You encode a URL, text, or Wi-Fi |
|
It fits a narrow label strip |
You have a square space |
|
The system expects EAN, UPC, or Code 128 |
You want more data in less width |
Common Mistakes to Avoid
The digits in a retail barcode must be issued through GS1, not made up, or they may clash with a real product and be rejected by shops. Generate a retail barcode only from a genuine, owned number; for internal use, any Code 128 value is fine.
Barcodes need clear white margins on each side to scan, and cropping tight to the bars or placing text right against them causes failed reads. Leave the quiet zone intact when you place the barcode on a label.
A barcode is only useful if your reader and system expect that format. Encoding data in a symbology your scanner is not set up for means it will not read, even though the image is correct. Match the format to the equipment before printing a batch.
Quick Reference
|
Item |
Detail |
|---|---|
|
Type |
1D linear barcodes |
|
Formats |
Code 128, Code 39, EAN-13, UPC-A |
|
Check digit |
Calculated automatically |
|
Retail EAN/UPC |
Needs a real GS1 number |
|
Internal use |
Any Code 128 value works |
|
Quiet zone |
Keep clear margins each side |
|
|
Sharp, dark, high contrast |
|
2D codes |
Use the QR Code Generator |
|
Best for |
Inventory, labels, asset tags |
|
Runs |
100% in the browser, nothing stored |
