A barcode turns an identifier into a pattern that a compatible scanner can read. This generator creates Code 128, EAN-13, EAN-8 and UPC-A images for labels, stock references and product mock-ups. You can preview the symbol before saving a scalable SVG or a PNG image. Start with an identifier you already control. Creating the picture does not reserve a retail number, register a product, or prove ownership of an existing code. For shop labels, match the format to the scanners and software that will read them.
Step by step
How to use Barcode Generator
Choose the barcode format first. Code 128 is useful for internal references containing letters and digits. EAN and UPC formats follow fixed numeric rules, so a stock code that works in Code 128 may be rejected when you switch to a retail format.
Enter the content carefully. Keep leading zeroes when they belong to the identifier. For EAN-13, EAN-8 and UPC-A, the library can calculate the final digit from an accepted shorter input or check a supplied full code. An error means the current content is incompatible with the selected format.
Set the bar width and height for your intended label. Wider bars usually survive small printing variations better, but need more horizontal space. Keep the surrounding white area, because scanners use it to distinguish the symbol from neighbouring marks and text.
Choose whether to show the encoded text beneath the bars, select SVG or PNG, and generate the preview. Compare that readable text with your source list. Download the image, print one sample at the final physical size, and test it with the scanner you plan to use.
Practical tasks
Options and tips for Barcode Generator
Choosing between SVG and PNG
SVG is a good choice for a print layout because the bars remain sharp when the graphic is resized. PNG fits ordinary image editors, documents and applications that do not accept SVG. Avoid enlarging a small PNG after download: blurred edges can make a technically valid barcode difficult to scan. Keep the aspect ratio intact and use a plain white background. Cropping away white margins, stretching only the width, or adding decoration inside the symbol can reduce reliability even when the original download is correct.
A practical label check
Imagine a storeroom using the internal reference BOX-204-A. Code 128 can represent that reference, but generating it does not add the item to an inventory database. Your stock application must already recognise the same text when a scanner enters it. Retail checkout systems have additional requirements for assigned identifiers and product records. For either workflow, test several labels under normal lighting and at the actual print quality. A successful preview is only the first check; the printed label and receiving system complete the workflow.
A little help
Frequently asked questions
Does this create an official retail product number?
No. It creates an image from the content you provide. Obtain and manage retail identifiers through the appropriate allocation process for your business, then use the assigned number when creating the label.
Why is my number rejected?
A retail format requires a specific length and a valid check digit. Letters, missing digits or a mistyped final digit can cause rejection. Recheck the original identifier rather than removing digits until an image appears.
Can I put many different products under one barcode?
The generator will draw whatever valid identifier you supply, but reusing one code for distinct products can confuse stock counts and checkout prices. Follow the identification rules used by your inventory or retail system.
Are my barcode values uploaded?
Barcode rendering happens in your browser with a locally hosted library. The generated SVG or PNG becomes a download on your device; the tool does not submit the encoded value to an inventory service.
Your next step