Barcode Generator
Free Online Barcode Maker for CODE128, EAN-13, UPC-A & More
Enter your data below, choose a barcode symbology, and generate a scannable barcode instantly. Download it as a high-quality PNG or scalable SVG for print or web use.
How to Use the Barcode Generator
1. Enter Your Data
Type the number or text you want to encode into the Barcode Content field.
2. Choose a Format
Pick a symbology such as CODE128 for general use or EAN-13 / UPC-A for retail products.
3. Customize & Download
Toggle the text label or adjust the height, then download your barcode as PNG or SVG.
What is a Barcode?
A barcode is a machine-readable representation of data, encoded as a series of parallel bars and spaces of varying widths. Barcodes are scanned optically at checkout counters, in warehouses, and in logistics to instantly identify products and track inventory.
Different symbologies serve different purposes: CODE128 is a versatile high-density format for general alphanumeric data, while EAN-13, EAN-8, and UPC-A are fixed-length numeric standards used worldwide for retail product identification. ITF-14 is used for carton and case labels, and CODE39 is a classic alphanumeric format popular in industrial and government applications.
Which Symbology Do You Need?
The format is usually decided by whoever scans the barcode, not by you. Start from the situation:
| Situation | Format | Input rules |
|---|---|---|
| Product sold in shops outside North America | EAN-13 | Exactly 13 digits, last one a check digit |
| Product sold in US or Canadian retail | UPC-A | Exactly 12 digits, last one a check digit |
| Very small packs (lip balm, gum) | EAN-8 | Exactly 8 digits |
| Outer cartons holding several units | ITF-14 | Exactly 14 digits |
| Internal inventory, asset tags, shipping references | CODE128 | Any ASCII text, any length that fits the label |
| Older industrial or government systems that require it | CODE39 | Upper-case letters, digits and - . $ / + % and space |
If you are labelling things for your own use and nobody has specified a format, choose CODE128. It handles letters and numbers, is compact, and every modern scanner reads it.
Retail Barcodes Need a Registered Number
An EAN-13 or UPC-A barcode is only a picture of a number. For a product to be sold through retailers or marketplaces, that number (a GTIN) normally has to be licensed from GS1, the standards body that assigns company prefixes. This tool will draw any valid number you give it, but it can't make up a legitimate product code for you. For internal SKUs that never leave your warehouse, use CODE128 with your own codes instead.
Working Out the Check Digit
EAN-13 and UPC-A end with a check digit that lets the scanner catch misreads. This tool expects the full number, so if you only have the first 12 (EAN) or 11 (UPC) digits, calculate the last one like this, using the well-known example EAN 400638133393?:
- Starting from the left, multiply the digits alternately by 1 and 3: 4×1, 0×3, 0×1, 6×3, 3×1, 8×3, 1×1, 3×3, 3×1, 3×3, 9×1, 3×3.
- Add the results: 4 + 0 + 0 + 18 + 3 + 24 + 1 + 9 + 3 + 9 + 9 + 9 = 89.
- The check digit is whatever brings the sum to the next multiple of 10: 90 − 89 = 1. (If the sum is already a multiple of 10, the digit is 0.)
So the full code is 4006381333931. Enter it with EAN-13 selected and the barcode renders. Change the last digit to anything else and the tool reports an error, which is exactly what you want before printing a thousand labels. UPC-A works the same way, but the weights start with 3: for 03600029145? the weighted sum is 58 and the check digit is 2.
PNG or SVG, and Print Tips
Download SVG for anything that will be printed or placed into a design file. It is vector, so the bars stay perfectly sharp at any size. Download PNG for documents, spreadsheets or web pages where a picture is simpler to handle.
- Don't stretch it unevenly. Scaling a barcode wider changes the ratio between narrow and wide bars. Resize proportionally, or regenerate.
- Leave the quiet zone. Keep blank space on both sides of the bars; text or a box edge too close causes no-reads.
- Use black on white. Red bars are invisible to many laser scanners, which use red light.
- Thermal printers. Print at the printer's native resolution (often 203 or 300 dpi) and avoid scaling in the print dialog.
The barcode is drawn in your browser by JsBarcode, an open-source library, so your product data isn't uploaded.
Need Many Labels, or a QR Code?
This page makes one barcode at a time. To print a whole sheet from a spreadsheet of codes, use a dedicated bulk label tool such as Bulk Label Maker, which we also build. If the information is a URL or more than a short code, a 2D code fits better: use the QR Code Generator. Other utilities are in developer tools.
Frequently Asked Questions
Which barcode type should I use for my products?
EAN-13 for retail outside North America, UPC-A for US and Canadian retail, and CODE128 for internal inventory or shipping labels.
Why does my EAN-13 show an error?
EAN-13 requires exactly 13 digits and the last digit must be the correct check digit. Recalculate it from the first 12 digits.
Can I create a barcode for a product I want to sell in stores?
You can draw it here, but the number itself normally needs to be licensed from GS1 so it is unique worldwide.
Should I download PNG or SVG?
SVG for printing and design work because it scales without blurring; PNG for documents and web pages.
Does CODE39 support lowercase letters?
Standard CODE39 only covers upper-case letters, digits and a few symbols. Use CODE128 for lowercase text.