Generate Clean 1D Barcodes for Retail & Inventory
Create Code 128, EAN-13, UPC-A, Code 39, ITF-14 and MSI barcodes with adjustable bar size and a text label option.
- No upload
- No signup
- Free
Loading tool…
Your file stays in this browser. Nothing is uploaded.
Loading tool…
Your file stays in this browser. Nothing is uploaded.
How Barcode Generator (Code 128, EAN, UPC) works
Browser Toolset Barcode Generator creates 1D linear barcodes (Code 128, EAN-13, UPC-A, Code 39, ITF-14, MSI) in your browser. Adjust bar width and height, turn the text label on or off, and download as SVG or PNG.
How to use this tool
- Select your barcode symbology (Code 128, EAN-13, UPC-A, Code 39, ITF-14, or MSI / Plessey).
- Enter your barcode numerical digits or alphanumeric product string.
- Adjust the bar height and bar width sliders, and tick or untick the option that prints the value under the bars.
- Inspect the live barcode rendering on screen; an invalid value shows a message instead of bars.
- Download the barcode as a vector SVG or a PNG image.
Common uses
- Retailers printing UPC and EAN-13 product packaging labels.
- Warehouse managers creating Code 128 bin and pallet tracking stickers.
- Libraries and asset managers labeling equipment and books.
- Event organizers producing Code 39 admission wristbands and tickets.
Frequently asked questions
What is the difference between Code 128 and UPC/EAN barcodes?
Code 128 encodes ASCII text, so it suits SKUs, serial numbers and shipping labels. EAN-13 (13 digits) and UPC-A (12 digits) are fixed-length numeric retail codes with a check digit, which the tool adds when you enter 12 or 11 digits.
Are generated barcodes compatible with standard handheld scanners?
Bars are drawn with the open-source JsBarcode library using the standard pattern for each symbology, and EAN-13, UPC-A, and ITF-14 values are checked before drawing. Always test a printed sample with your scanner. ITF-14 is drawn without the bearer bar that GS1 case labels call for, so add one in your label software if you need it.
Are my internal SKU codes or serial numbers uploaded?
No. The barcode is drawn in your browser by the JsBarcode library, so the SKU or serial number you type is not uploaded. The SVG and PNG files are also created locally when you click the download buttons.
Can I download vector SVG for crisp printing?
Yes. SVG downloads are vector, so they scale to any size without blurriness. A PNG download is also available, rasterised at twice the on-screen size.
Does it validate UPC-A and EAN-13 check digits?
Yes. Enter 12 digits for EAN-13, 11 for UPC-A, or 13 for ITF-14 and the check digit is added for you. If you enter the full length with a wrong check digit, the value is rejected with a message and the download buttons are disabled.
Details and limits
Linear 1D barcodes remain the global standard for retail inventory and supply chain tracking. Our Barcode Generator draws barcodes in your browser and lets you download them as vector (SVG) or PNG files.
How the barcode is drawn
The barcode is drawn in your browser by JsBarcode, an open-source library bundled with the page, as an SVG image that updates while you type. Nothing is uploaded. If the value is not valid for the format you picked, the preview is replaced by a message saying what is wrong and both download buttons are disabled, so an out-of-date image cannot be saved. The tool makes linear 1D barcodes only. For QR codes use QR Code Studio.
Six formats are offered: Code 128, EAN-13, UPC-A, Code 39, ITF-14 and MSI / Plessey. The box starts with 123456789012 in Code 128, and switching format keeps your value, so an error message may appear until you adjust it.
Features and limits
- Code 128 accepts ASCII characters only. Code 39 accepts capital letters, digits, a space and - . $ / + %, and typed lowercase letters are converted to uppercase. MSI accepts digits only.
- EAN-13 takes 12 digits and adds the check digit, or 13 digits with a correct check digit. UPC-A takes 11 or 12 digits and ITF-14 takes 13 or 14 digits in the same way. A wrong check digit is rejected with a message.
- Bar Height runs from 40 to 150 pixels and starts at 80. Bar Width runs from 1 to 4 pixels for the narrowest bar and starts at 2. One checkbox turns the text under the bars on or off. Colours are fixed black on white and the margin is 10 pixels, and the label text cannot be customized.
- Download SVG keeps vector shapes. Download PNG renders the SVG at twice its size on a white background, capped at 8192 pixels on either side.
- File names are built from the format and value, for example barcode_code128_ABC123.svg.
Printing and testing
Print a sample at actual size and scan it with the reader or scanner that will be used in practice. On rough paper or low-resolution label printers, a bar width of 3 or 4 generally scans more reliably than 1.
The built-in margin stays at 10 pixels whatever the bar width. Scanners need clear space on both sides of a barcode, so place the image on a white label with extra room around it.
This tool draws a barcode from the number you supply. It does not register products or issue official codes. Retail EAN and UPC numbers come from the numbering organization GS1. The QR Code Scanner reads QR codes only, so test barcodes with a barcode reader.