Barcode generator
Pick a barcode type, type your number or text, and download a print-ready SVG, PNG or PDF. Check digits are calculated or verified for you, sizes follow GS1 specifications, and you can make hundreds at once from a CSV. Nothing is uploaded.
Inventory, asset tags, shipping labels: letters, digits and symbols.
Any printable ASCII: A–Z, a–z, 0–9 and symbols. Long digit runs are packed two per character.
Valid Code 128: CL-2026-0042
Size, text and colors
PNG: 4 px per module = 0.339 mm at 300 dpi (SVG and PDF keep 0.33 mm exactly).
Made in your browser: no upload, no sign-up, no watermark. PDF and SVG are vector, so they print sharp at any size.
How to use it
- Choose the barcode type. Retail products use EAN-13 (or UPC-A in the US and Canada); shipping cases use ITF-14; your own SKUs, asset tags and shelf labels usually use Code 128.
- Type the number or text. For GS1 types you can leave the check digit off and it's added; if you type a wrong one, the tool shows the right digit.
- Set the X-dimension (the width of the narrowest bar) and bar height if your printer or retailer asks for a size, then download SVG or PDF for print, or PNG at your printer's resolution.
- For a list, switch to Bulk / CSV, paste a column from Excel or Google Sheets, and download a ZIP or one PDF sheet.
Which barcode type do you need?
| Type | Encodes | Typical use |
|---|---|---|
| EAN-13 | 13 digits (last is a check digit) | Retail products worldwide; books via ISBN |
| UPC-A | 12 digits (last is a check digit) | Retail products in the US and Canada |
| EAN-8 / UPC-E | 8 digits | Small packs where a full EAN-13 or UPC-A won't fit |
| ITF-14 | 14 digits (a GTIN-14) | Outer cartons and cases in warehouses |
| GS1-128 | GS1 data like (01) GTIN, (17) expiry, (10) batch | Logistics labels and pallet labels (SSCC) |
| Code 128 | All 128 ASCII characters | SKUs, asset tags, shipping and internal labels |
| Code 39 | A–Z, 0–9, space and - . $ / + % | Older industrial, automotive and ID-badge systems |
| Data Matrix | Text or numbers, up to 2,335 characters | Small parts marking, electronics, healthcare |
| PDF417 | Text or binary, large capacity | ID cards and boarding passes |
Retail barcodes need a GS1 number
The generator draws any valid number, but it doesn't assign numbers. To sell through retailers and most marketplaces, the GTIN on your EAN-13 or UPC-A must come from a GS1 company prefix licensed to your business, so the store's database knows the product is yours. For your own SKUs, bins and assets you can use any text with Code 128.
A UPC-A is the same barcode as an EAN-13 that starts with 0, so a US code scans anywhere an EAN-13 does.
GS1 print sizes
GS1 lets retail barcodes scale between 80% and 200% of the nominal size. Bars must keep their full height: shortening them (truncating) makes codes hard to read at checkout scanners. The tool warns you when a size is outside these ranges.
| Symbol | X-dimension (min / target / max) | Bar height at that X | Quiet zone |
|---|---|---|---|
| EAN-13 | 0.264 / 0.330 / 0.660 mm | 18.28 / 22.85 / 45.70 mm | 11X left, 7X right |
| UPC-A | 0.264 / 0.330 / 0.660 mm | 18.28 / 22.85 / 45.70 mm | 9X each side |
| EAN-8 | 0.264 / 0.330 / 0.660 mm | 14.58 / 18.23 / 36.46 mm | 7X each side |
| ITF-14 (distribution) | 0.495 to 1.016 mm | 31.75 mm minimum | 10X each side |
| GS1-128 (distribution) | 0.495 to 1.016 mm | 31.75 mm minimum | 10X each side |
How check digits work
EAN, UPC, ITF-14 and GTIN check digits use the same modulo-10 rule. Starting from the right of the number without its check digit, multiply digits alternately by 3 and 1, add them up, and the check digit is whatever brings the total to the next multiple of 10.
Example for 590123412345: the weighted total is 83, so the check digit is 7 and the full EAN-13 is 5901234123457. A single mistyped digit always changes the result, which is how scanners catch misreads.
Why a barcode won't scan
- No quiet zone: text or a box edge is too close to the first or last bar.
- Low contrast or red bars: laser scanners use red light, so red bars disappear. Use black or another dark color on white.
- Stretched or resampled PNG: resizing a small image blurs bar widths. Use SVG or PDF, or export PNG at the printer's dpi.
- Truncated bars, or an X-dimension below the minimum for the scanner.
- Wrong check digit or a number that was typed by hand into a design tool. Regenerate from the number instead.
Barcodes from code: API and MCP
The same engine runs at an HTTPS endpoint, so a spreadsheet, label printer script or AI agent can make barcodes without an account. GET returns SVG, PNG or PDF and is cached at the edge.
curl -o case.svg "https://qr.cuelark.com/v1/barcode?type=itf14&data=1540014128876&format=svg"
curl -o sku.png "https://qr.cuelark.com/v1/barcode?type=code128&data=SKU-0001&format=png&dpi=300"Frequently asked questions
Is this barcode generator free for commercial use?
Yes. There's no sign-up, watermark or limit on what you print, and the barcodes are yours to use on products and labels.
What's the difference between UPC and EAN?
UPC-A has 12 digits and EAN-13 has 13. A UPC-A is an EAN-13 with a leading zero, and scanners worldwide read both. US and Canadian retailers have historically used UPC-A; most other countries use EAN-13.
Can I make a barcode for products I sell on Amazon or in stores?
You can draw it here, but the number itself should be a GTIN licensed to you by GS1. Retailers and marketplaces check product codes against GS1 data, so made-up or resold numbers can get listings rejected.
How do I turn a UPC into an ITF-14 for a case?
Choose ITF-14 and open "Make a GTIN-14 from a UPC or EAN". Enter the item's UPC or EAN, pick a packaging indicator (1–8), and the tool builds the 14-digit number and recalculates its check digit.
Which format should I download?
SVG or PDF for print and design software, because they're vector and stay sharp at any size. PNG for labels, documents and websites; pick 203 dpi for most thermal label printers, 300 dpi for office printers, or 600 dpi for print shops.
Can I make barcodes from Excel?
Yes. Switch to Bulk / CSV, paste a column from Excel or Google Sheets, or open a CSV with a data column and an optional name column. You get a ZIP of SVG or PNG files, or one PDF with every barcode laid out on A4 or Letter.
Do barcodes expire?
No. A barcode is just the number drawn as bars, so it works as long as the printed label is readable.
Should I use a barcode or a QR code?
Use a barcode when a checkout or warehouse scanner reads a product number. Use a QR code when people scan with a phone to open a link, Wi-Fi or contact card.
Related free tools from Cuelark
Updated November 10, 2026 by the Cuelark Team.