Create a barcode
Your files never leave your device.Retail formats EAN-13, UPC-A and ITF-14 require a specific number of digits and a valid check digit; the generator tells you when a value is invalid.
Retail barcodes need a valid check digit and the correct number of digits; the generator validates this for you.
Print barcodes at a reasonable size with quiet space around them, or scanners may fail to read them.
How to use Barcode Generator
Choose a barcode format
CODE128 is the flexible default for internal labels and accepts letters, numbers and punctuation. Use EAN-13, UPC-A or ITF-14 for retail and logistics, where the format is dictated by the supply chain.
Enter the value
Type the code exactly as it should be encoded. Retail formats have strict lengths: EAN-13 needs 13 digits, UPC-A 12 and ITF-14 14, including the check digit.
Adjust the appearance
Set the bar width and height, pick colours, and decide whether the human-readable value appears below the bars. Wider bars scan more reliably when printed small.
Check the preview
The barcode redraws as you type. Invalid values show a clear error instead of a broken image, which prevents unusable labels.
Download PNG or SVG
Use PNG for documents and web use, or SVG for print and packaging, where a vector keeps edges perfectly sharp at any size.
Features and benefits of Barcode Generator
- Seven common formatsCODE128, CODE39, EAN-13, UPC-A, ITF-14, MSI and Pharmacode cover retail, warehousing and internal labelling.
- Vector and raster exportDownload a crisp SVG for print or a PNG for quick insertion into documents and emails.
- Live preview and validationThe barcode updates as you type, and format-specific errors are explained rather than silently ignored.
- Size and colour controlAdjust bar width, height and colours so the code fits a label or a design without becoming unscannable.
- Local generationJsBarcode renders in your browser. No code value is sent to a server, which matters for internal product identifiers.
Why use our free online barcode generator?
Barcodes are still the most reliable way to attach a machine-readable identifier to a physical item. Small shops, workshops and event organisers often need a handful of labels rather than an enterprise labelling system, and a browser generator is the fastest route.
Choosing the wrong format is the most common mistake. A CODE128 code is fine for internal stock, but a retailer will reject anything that is not EAN-13 or UPC-A with a valid check digit. This tool makes the format explicit and validates the length.
Exporting SVG matters for print. Raster barcodes blur when resized and can fail to scan, while a vector stays sharp at any label size. Both options are one click away, with no account and no watermark.
Practical tips for Barcode Generator
Choose the symbology before designing the label. EAN-13 and UPC-A are retail standards with fixed digit counts and a check digit, CODE128 fits internal asset tags and shipping references, and CODE39 remains common in industrial settings because it is easy to print. A code that looks fine but uses the wrong symbology will fail at the scanner.
Print at a size the scanner can resolve. Bars need crisp edges, so export SVG for professional printing and avoid scaling a PNG up. Keep the quiet zone clear of text and borders, use high contrast, and test the printed label with the actual scanner before committing to a full print run.
Barcode Generator FAQ
Which barcode format should I use?
CODE128 for internal labels and general alphanumeric data, EAN-13 or UPC-A for retail products, and ITF-14 for cartons and logistics.
Why does EAN-13 reject my number?
EAN-13 requires exactly 13 digits, including the check digit. If you have 12 digits, add a 0 at the front or calculate the check digit.
Can I print these barcodes?
Yes. Download the SVG for the sharpest print result and place it at a sensible size — usually at least 3 cm wide for retail scanning.
Do the barcodes expire?
No. The pattern encodes your value directly, with no server or redirect involved.
Is my data uploaded?
No. JsBarcode runs in your browser and the value never leaves your device.
Related tools
Browse the full Generators collection or return to all 25 free tools.