📊 Barcode Generator
Create professional barcodes for any product
Free online barcode generator for any product
Making a barcode starts with the number or text you want to encode, then the type, then the size. In this generator you enter the number or text, choose the symbology, set the bar width and height, and download the result. No account and no payment are required, and the output carries no watermark or usage limit. The download is an SVG, a vector file that stays sharp at any print size; if a printer or marketplace insists on a raster image, export the SVG to PNG at the required resolution in your design software.
The most common practical use is a small product in a home business: pickles, honey, perfumes, spices, or handmade goods. A barcode image is enough for a label you print yourself. If the product is going onto the shelves of a large retailer, the number itself must be a registered GTIN obtained from the local issuing body, not a random number.
Keep two workflows apart. An online barcode generator creates the image in a web page without installing software. A barcode PDF is a print sheet holding many codes in page order, which printers and warehouses use instead of copying one code at a time. This generator produces one code per download; for a PDF sheet, generate each SVG and place the files in your layout.
Barcode types and which one to choose for your product
EAN-13 is the standard for food and consumer retail worldwide. It has 13 digits: the first digits identify the country (Egypt 622, Saudi Arabia 628, the UAE 629), followed by the company code, the product code, and a check digit calculated by a fixed formula. Choose it if the product will be sold in a supermarket.
UPC-A has 12 digits and is used in the United States, Canada, and Amazon. Code 128 is denser and stronger, used for warehouses, internal barcodes, serial numbers, and cards, and it can carry letters and numbers together. Code 39 is the oldest and remains common in factories and fixed assets because it does not require a check digit.
QR Code is not a replacement for a barcode and not a better version of it. A barcode is read by a checkout scanner as a linear scan and carries one number; a QR code carries a link or long text and is read by a phone camera. A product on a shelf needs a barcode; an advertisement or restaurant menu needs a QR code.
Barcode for a PDF label sheet and printing at the right size
For a readable print, make the barcode area at least 30 mm wide and 15 mm high, and leave a quiet zone of at least ten times the width of the narrow bar on every side. Following the size of the labels you have already bought is safer; otherwise keep each barcode to 4 × 2.5 cm.
Two common mistakes break scanning: squeezing the barcode horizontally, which happens when it is pasted into Word and stretched from the side, and printing at 72 DPI or on glossy paper that reflects the scanner's light. Always print at actual size and do not let the printer scale the content.
Labels are printed on white matte adhesive paper with a laser printer. Glossy paper reads worse because the scanner beam reflects, and gray paper produces weaker contrast. The black bars and white spaces must be sharply distinct to the eye. This generator exports an SVG; place it in the label layout at the dimensions above rather than stretching a screenshot.
Reading a barcode with a phone and checking it
Before committing to a print run, test the code yourself: download the image, open any barcode or QR scanner app, and read it from the screen. The scanner should return the same number that is encoded, which is the quickest check of the number and its check digit before the file reaches a printer.
A supermarket checkout reads EAN-13 and UPC-A with a linear scanner or camera, while Code 128 serves the wireless scanner in a warehouse. A phone can also read a barcode with modern OCR, but it needs enough light and a short distance, no more than about 25 cm.
The check digit in EAN and UPC is calculated automatically: weights of 1 and 3 alternate from the right, and the result is subtracted from the next multiple of ten. The generator will not stop you from entering an arbitrary number, but a store may reject it because its check digit does not match the formula.
Making a barcode online — numbers and limits
Making an online barcode for a product label is straightforward when the number is available. E-commerce and retail most often use EAN-13 with 13 digits, UPC-A with 12 digits for the US market, and the flexible Code 128, which encodes numbers and letters at high density.
The last digit of EAN-13 is not random; it is calculated by a fixed rule that announces the preceding digits. Do not invent a product number: numbers for products are assigned formally in advance, while numbers you may create freely are for internal store use, packaging, and internal labels.
Two print details matter: print the barcode with a minimum width of 2 mm per digit at 100%, and leave the quiet zone on both sides free of any design element. It is part of the specification, not decoration. Most failures come from reducing the height or placing something in the margin.
Barcode for a PDF — linking and archiving
A barcode on a PDF can link a document to a URL, a data source, or a file number, so a scan takes you to the destination without typing. QR is the more general choice for long links, while Code 128 is better when the number is short and will be read by a standard laser reader.
Put the barcode in one fixed position across matching documents: top right or bottom, according to the filing system. A consistent position saves seconds in every archive operation and reduces errors in automatic reading.
If the barcode will be read from a phone scanner, save the file with one page size and a consistent color depth, and check that adding the code has not noticeably increased the file size. A small monochrome image adds little; the real risk is over-compressing the file until the code blurs.
📖 Usage Guide
Barcode Generator — create professional barcodes for any product. Choose barcode type (Code 128, EAN-13, UPC-A, Code 39), enter the number, and get an SVG barcode ready for printing. Completely free, no signup.
Supported barcode types: Code 128 (high density), EAN-13 (European), UPC-A (US), Code 39 (industrial), EAN-8, Codabar, ITF-14, Pharmacode. Choose the right format for your needs.
Barcodes are visual representations of data as parallel lines of varying widths. They're read by optical scanners in stores and warehouses. Every retail product has a unique GTIN barcode.
Uses: retail checkout, inventory management, shipping/logistics, healthcare (patient/drug ID), libraries (book cataloging), and manufacturing (tracking components).
Free, browser-based, generates SVG format (infinitely scalable without quality loss). Download and print directly.
❓ Frequently Asked Questions
Answers to the most common questions
🔗 Related Tools
🔗 Share this tool
Share this free tool with friends — no signup required