Barcode generator — EAN-13, UPC-A, Code 128 and Code 39
LOCALType a value, pick a symbology and a clean barcode appears on the canvas while you type. This generator supports EAN-13, UPC-A, EAN-8, Code 128 and Code 39, and it runs entirely in your browser, so the number or text you enter never leaves your device. There is no upload, no account, no sign-up and no paid API behind it. Adjust the bar width, bar height, text size and colors, choose whether the human-readable value appears under the bars, then download a vector SVG that stays sharp at any label size or a PNG that is ready for print and the web. When you need many codes, paste one value per line and export every valid one as a ZIP.
How it works
- 01
Enter a value and choose a format
Pick the symbology first, because each one expects a different payload. EAN-13 takes 12 digits, UPC-A takes 11 and EAN-8 takes 7, and the final digit is the check digit, which the tool calculates and shows for you. Code 128 accepts letters, digits and common symbols, while Code 39 is limited to uppercase letters, digits and a few punctuation marks. The preview updates as you type, and a value that cannot be encoded is rejected with a clear message instead of drawing a broken barcode. If you already have a full number including the check digit, paste it as is; a wrong check digit is caught before anything is drawn.
- 02
Adjust size, colors and the value text
Use the controls to set bar width, bar height, text size and the colors of the bars and background. Bar width is the most important setting for scanning: very thin bars can disappear on cheap printers or blurry screens. Turning the human-readable text on or off only changes the caption under the bars, not the encoded data. Keep dark bars on a light background with strong contrast, and leave the quiet zone around the symbol empty, because most scanners need that margin to find the start and end of the code. The canvas preview always shows the current settings, so you can compare options before you download.
- 03
Download SVG or PNG
Two export formats cover different jobs. SVG is a vector file, so it stays razor sharp at any size and is the better choice for packaging design, labels and professional printing. PNG is a raster image that opens anywhere and is ready for websites, documents and most office printers, provided you print it large enough that the bars are not resampled or blurred. Download the preview you like, check it at the final size, and scan a test copy before you commit to a print run. Because everything is generated locally, the download starts instantly and no file is uploaded.
- 04
Export a whole batch as a ZIP
Switch to the batch panel when you have a list. Paste one value per line and press the ZIP button; the tool encodes every line with the format and style currently selected and packs one PNG per valid value into a single archive. Lines that are not valid for the chosen symbology are skipped rather than turned into broken symbols, so a mixed list still produces a usable file. This is handy for shelf labels, sample packs or a spreadsheet of product codes, and it saves you from downloading hundreds of images one at a time.
When to use it
Product and packaging labels
EAN-13 and UPC-A are the symbols shoppers and point-of-sale systems expect on retail packaging, and EAN-8 fits very small items where space is tight. Use the generator to place a realistic barcode on a mockup, a proof or a small batch of labels. Remember that selling through normal retail channels still requires a licensed GS1 prefix; the generator draws a standards-compliant symbol but does not assign you a company number.
Internal inventory and asset tags
Code 128 is compact and encodes letters, digits and symbols, which makes it a good fit for shelf labels, storage boxes, spare parts and equipment tags. Code 39 is older but still widely supported by handheld scanners and industrial printers, and its uppercase-only alphabet keeps things simple. Because the values are internal, you can choose your own numbering scheme without a GS1 prefix, and the ZIP export makes it quick to print a whole rack of labels at once.
Design mockups and print proofs
Designers often need a believable barcode on a carton, a bottle or a brochure before the real production file exists. Exporting SVG keeps the symbol crisp when the artwork is scaled up for a large proof or a magazine layout, while PNG is convenient for quick screen mockups. Always print a test and scan it with the device that will be used in the real workflow, because a barcode that looks fine on screen can still fail on paper.
Questions
Is this barcode generator really free, and is my data uploaded?
Yes, it is completely free and there is no account, no sign-up and no paid API behind it. The page draws the barcode with JavaScript on a canvas in your browser, so the values you type are never sent to a server and nothing is stored in a database or a log. Once the page has loaded, generating barcodes needs no network connection at all. You can use it for client work, internal codes or test data without worrying about who can see the numbers.
Will the barcodes scan, and are they good enough to print?
The symbols follow the official encoding rules for each format, so a correctly sized, high-contrast barcode should read on a normal scanner. Print quality still depends on your printer, the bar width and the quiet margins, and PNG files must be printed large enough that the bars are not resampled into a blur. For anything important, print a test label and scan it with the exact reader used in production. Also keep in mind that a barcode is an identifier, not a security feature, so it should never be the only protection against copying or fraud.
Which symbology should I choose?
For products sold at retail, use EAN-13 almost everywhere, UPC-A in North America and EAN-8 only on very small packages. For internal labels, closures, shelves or tickets, Code 128 is the most flexible option because it is compact and encodes letters, digits and many symbols. Code 39 is a safe fallback when an older scanner or legacy system expects it, but it only covers uppercase letters, digits and a few punctuation characters and takes more space for the same data. When in doubt, check what the receiving system or scanner actually supports.
What is the check digit, and why does it reject my number?
EAN-13, UPC-A and EAN-8 end with a check digit calculated from the other digits, and scanners use it to catch typos. The tool expects the payload without that digit, then computes and displays it, so for EAN-13 you type 12 digits, for UPC-A 11 and for EAN-8 7. If you paste a complete number with a wrong check digit, or the wrong count of digits, the value is rejected with a message instead of producing a symbol that scanners would refuse. This is deliberate: a failing barcode on a product is worse than an early error message.
Can I export many barcodes at once?
Yes. Open the batch panel, paste one value per line and download a ZIP that contains one PNG per valid entry. The export uses the format, bar width, colors and text settings currently selected, so set the style once before you start. Lines that are not valid for the chosen symbology are skipped, which means a mixed list of codes and notes still produces a usable archive. This is the fastest way to prepare a sheet of shelf labels, sample products or a spreadsheet of internal asset codes without downloading images one by one.
Is a barcode the same thing as a QR code?
No. A traditional barcode is one-dimensional: a row of bars and spaces that usually holds a short number or a compact alphanumeric string, and it is read by a laser or image scanner at the checkout. A QR code is two-dimensional and can store much more data, such as a web address, contact details or a block of text, and it is normally read with a phone camera. The two solve different problems, so pick a barcode when a retail or inventory system expects a number, and a QR code when you need to send users to content.
Do I need GS1 registration to sell in stores?
For normal retail, yes. A barcode printed here is a standards-compliant symbol, but the number inside it has to come from a company prefix licensed by GS1 in your country, otherwise a retailer may reject the product or the number may collide with someone else's. This tool only draws the symbol; it does not register you with GS1 or assign a prefix. Internal codes for your own shelves, boxes or equipment do not need a GS1 prefix, but they should never be used on goods that go through a retail supply chain.
Do the style options affect scannability, and can I use the PNG in print?
They can. Bar width, height, contrast and the empty quiet zone around the symbol all influence whether a scanner reads it reliably, so avoid extremely thin bars, low-contrast colors and cropping the margins. Dark bars on a light background are the safest choice. A PNG can be printed, but it is a raster image, so print it large enough and avoid scaling it after export; SVG is the safer option when you need to enlarge a label. Whatever the format, run a test scan with the real equipment before a large print run, and do not treat a barcode as a security feature.