Barcode Generator (CODE128 & EAN)
Generate scannable retail and logistics barcodes in CODE128, EAN-13 and UPC-A, then download them as a vector SVG or a 4x-resolution PNG. Encoding follows the published symbology specifications, so the output decodes on laser and camera scanners rather than merely looking like a barcode.
Any text or digits. The general-purpose choice for internal labels, logistics and asset tags.
How it works
- 1
Pick the symbology you need: CODE128 for internal or logistics labels, EAN-13 for retail outside the US, UPC-A for the US and Canada.
- 2
Type or paste the value to encode. The retail formats accept digits only and calculate the final check digit for you.
- 3
Check the preview β a value that cannot be encoded in the chosen format is rejected with an explanation instead of a broken image.
- 4
Download SVG for print and label software, or PNG for slides, listings and quick sharing.
What people use it for
- Labelling inventory, equipment or archive boxes with CODE128 asset tags.
- Producing an EAN-13 image for a product listing when you already own the GTIN.
- Adding a UPC-A graphic to packaging artwork or a retail submission sheet.
- Generating test barcodes to check a scanner, POS integration or warehouse app.
Supported formats & options
| Symbologies | CODE128 (auto A/B/C), EAN-13, UPC-A |
|---|---|
| CODE128 input | Letters, digits and standard ASCII punctuation, any length |
| EAN-13 input | 12 digits (check digit calculated) or a valid 13-digit code |
| UPC-A input | 11 digits (check digit calculated) or a valid 12-digit code |
| Download | SVG (vector) and PNG (4x raster, white background) |
Key advantages & benefits
Real symbology encoding
CODE128, EAN-13 and UPC-A are encoded to specification, including the start, check and stop characters a scanner actually reads.
Automatic check digits
Enter 12 digits for EAN-13 or 11 for UPC-A and the check digit is calculated and appended for you.
Print-ready vector output
SVG scales to any label size without blurring; the PNG renders at 4x with smoothing off, so the bars stay crisp.
Validation before download
Invalid values are flagged immediately, so you never send a label to print that will not scan.
Limits & things to know
- This tool draws a barcode from a value you already own. It does not assign or register GTINs β retail EAN and UPC numbers must be obtained from GS1 before they are valid in a shop.
- 2D symbologies (QR, Data Matrix, PDF417) are not part of this tool. Use the QR code generator for QR.
- Scan reliability in print depends on size, contrast and the quiet zone. Very small labels or low-toner prints can fail even when the encoding is correct.
Troubleshooting
The value is rejected for EAN-13 or UPC-A
Those symbologies are numeric and fixed length: EAN-13 needs 12 digits (or 13 including a correct check digit), UPC-A needs 11 (or 12). Letters, spaces and dashes only work in CODE128.
A scanner will not read the printed label
Print the SVG rather than an enlarged PNG, keep the white margin either side of the bars, and avoid printing retail formats smaller than roughly 2 cm wide.
The PNG looks blurry in a document
The PNG is already 4x the on-screen size β place it at its natural size or smaller. When the final size is unknown, use the SVG instead.
Privacy & data handling
The barcode is encoded and drawn by JavaScript inside your browser tab. The value you type is never sent to our server or to a third party, and nothing is stored once you close the page.
Barcode Generator β CODE128, EAN-13 & UPC Online Free
Generate scannable barcodes in CODE128, EAN-13 and UPC formats and download them as high-resolution PNG or vector SVG. A free barcode generator for retail product labels, warehouse inventory, asset tags and shipping documents.
- Retail and logistics standards β CODE128 for internal inventory and shipping, EAN-13 and UPC-A for retail products that need to scan at a checkout.
- Scannable by laser and camera scanners β codes are rendered to the published symbology specification, including quiet zones and check digits, so they read reliably first time.
- Vector SVG for perfect print β labels stay razor-sharp at any physical size, which matters because a blurry or rescaled barcode is a barcode that fails at the till.
- Batch-friendly workflow β generate as many product codes as you need with no per-code charge and no monthly quota.
- Runs in your browser β product SKUs and internal asset numbers are rendered locally and never uploaded to a label service.
Free with no account. Use the QR Code Generator when you need a scannable link rather than a numeric product code.
Frequently asked questions
Are generated barcodes scannable?
Yes! They follow international barcode rendering standards and work with all laser & camera scanners.
Can I use these barcodes on products I sell in shops?
Only if you already own the GTIN. This tool draws a barcode from a number you supply; retail EAN and UPC numbers must be obtained from GS1 before a shop's system will recognise them. For internal use β asset tags, warehouse labels, archive boxes β CODE128 needs no registration at all.
Which format should I choose?
CODE128 for anything internal, because it accepts letters and any length. EAN-13 for retail products outside the US and Canada, UPC-A inside them. If a supplier or marketplace specified a format, use that one.
Why was my number rejected?
EAN-13 and UPC-A are fixed-length numeric formats: 12 digits for EAN-13 and 11 for UPC-A, with the check digit calculated for you. Anything with letters, spaces or dashes has to be CODE128.
Should I download the PNG or the SVG?
SVG for anything that will be printed, because it scales to the label size without softening. PNG for slides, listings and messages where a vector file would not be accepted.
Related tools
QR Code Generator
Turn any link or text into a scannable QR code
UUID / GUID Generator (v4)
Generate random, unique UUID v4 strings instantly
Meta Tag & OpenGraph Generator
Generate SEO meta tags for Google, Facebook & Twitter
Favicon Generator (PNG to ICO)
Convert PNG images to multi-size website favicons