Barcode Generator
Generate scannable Code 128, EAN-13, UPC-A, EAN-8, Code 39, ITF-14, and Codabar barcodes with SVG, PNG, and batch print sheets.
Format (Symbology)
Letters, digits, and ASCII symbols (shipping, retail SKUs, Daraz/Shopify).
Short answer: This free online barcode generator creates print-ready, scannable barcodes across seven depot and retail standards straight in your browser: Code 128, EAN-13, UPC-A, EAN-8, Code 39, ITF-14. Codabar.
Type a single product code or paste up to 20 SKUs in Batch Label Sheet mode, verify automatic GS1 check digits and scanner contrast, add extra product titles or prices above the bars. Export clean vector SVG or crisp 2x PNG images with zero watermarks.
Most small brands and store owners discover barcode mistakes the hard way: after print 500 sticky tags, the checkout scanner refuses to beep because a check digit was mistyped, the quiet zone margin was cropped too tight, or brand colors lacked enough contrast under a red POS laser.
This generator catches every one of those costly print errors before a single sticker hits the printer. It computes official check digits on its own, checks by hand entered check digits, alerts you when bar-to-other contrast drops below 4.5:1. Outputs cleanly sharp vector rectangles.
How do you generate a scannable barcode step by step?
Create a single packaging vector or a full sheet of stock tags in four simple steps:
- Choose Single Barcode or Batch Label Sheet: Use Single Barcode for packaging artwork and single tags, or switch to Batch Label Sheet to paste up to 20 SKUs (one per line) and print them at once.
- Pick the exact format: Select Code 128 for general SKUs and logistics, EAN-13 for global retail items, UPC-A for US/Canada stores, EAN-8 for tiny packages, Code 39 for depot assets, ITF-14 for outer cartons, or Codabar for couriers and labs.
- Enter your code and customize layout: Type the base digits (check digits compute on its own for EAN-13, UPC-A, EAN-8, and ITF-14), add an extra top label such as item name and price, and tune bar width (1 to 6px), height (40 to 240px), quiet zone margin, and colors.
- Export SVG, 2x PNG, Copy SVG, or Print Sheet: Save vector SVG for Adobe Illustrator or CorelDRAW packaging files, 2x crisp PNG for thermal label printers and Word sheets, or click Print Sheet to send tags straight to your printer.
Which barcode format should you pick for each shop job?
Every format obeys strict global rules maintained by GS1 and ISO so optical and camera readers worldwide decode them identically:
| Format | Valid Input Characters | Check Digit | Primary Real-World Use |
|---|---|---|---|
| Code 128 | Full ASCII letters, digits, symbols | Auto Modulo 103 | E-commerce SKUs, Daraz/Shopify labels, courier parcels, POS shelves |
| EAN-13 | 12 base digits (or full 13) | Auto GS1 13th digit | Mart retail packaging across Pakistan, Europe, Asia, and Middle East |
| UPC-A | 11 base digits (or full 12) | Auto GS1 12th digit | US and Canada retail stores, Amazon FBA product packs |
| EAN-8 | 7 base digits (or full 8) | Auto GS1 8th digit | Small packages like lip balms, candy bars, vials, and accessories |
| Code 39 | A to Z, 0 to 9, space, plus hyphen, period, $, /, +, % | * start/stop guards | Factory work orders, hospital IDs, library books, office asset tags |
| ITF-14 | 13 base digits (or full 14) | Auto GS1 14th digit | Corrugated master cartons, bulk boxes, depot pallets |
| Codabar | Digits 0 to 9, hyphen, $, :, /, ., + (A to D guards) | Start/stop letters | Courier air waybills, diagnostic labs, blood banks, libraries |
How does the official GS1 Modulo-10 check digit math work?
EAN-13, UPC-A, EAN-8, and ITF-14 all verify data integrity with the same GS1 Modulo-10 formula. Reading right to left across the base digits, alternating digits multiplies by 3 and 1.
Sum every product, take the remainder divided by 10. Take off from 10 (if zero, the check digit is 0).
Worked example (EAN-13): Enter the 12 digits 400638133393. Working right to left, the weighted sum equals 89.
The next many of 10 is 90. 90 minus 89 equals 1.
The tool shows “GS1 Check Digit: 1 -> 4006381333931” and draws the exact 95-module bar sequence with extended guard bars. If someone by mistake types 4006381333939, the generator flags the exact expected check digit right away so misprinted packaging never happens.
How do Pakistani e-commerce sellers, retail stores, and exporters use barcodes?
From local clothing brands in Lahore and Karachi to grocery stores and Daraz sellers nationwide, two distinct barcode rules apply in Pakistan:
| Pakistani Business Need | Best Format | Practical Setup Advice |
|---|---|---|
| Internal Shop, Boutique, or Pharmacy POS | Code 128 + Top Caption | Use custom SKU codes (for example, KURTA-BLK-M) with product name and PKR price on top; print 20 tags at once in Batch mode. |
| Daraz, Shopify & Courier Stock | Code 128 (2x PNG or Print) | Keep bar width at 2px or 3px for thermal sticker presses; find margins via the COD profit calculator and explore the Daraz guide. |
| Imtiaz, Carrefour, Metro & Export Retail | EAN-13 (Vector SVG) | Requires an officially licensed GS1 Pakistan company prefix (start with country prefix 896); export crisp SVG for your packaging press. |
| Bulk Master Cartons | ITF-14 (Vector SVG) | Enter 13 base GTIN-14 digits so depot readers read outer cardboard cartons well even on rough brown kraft paper. |
Pair product barcodes with the QR code generator for WhatsApp or store links, issue matching buyer receipts on the invoice generator. Compare business accounts on the Pakistan shop bank guide.
Five print rules so POS and depot readers never fail
- Protect the white quiet zone: Optical readers measure empty light space before the first bar and after the last bar. Leave a blank quiet zone of at least 10 times the narrowest bar width on both left and right sides, and never place borders tight against the bars.
- Never print red or orange bars: Classic red-laser checkout readers shine red light, which makes red ink reflect like white paper and become invisible. Stick to pure black (#111111) or deep navy bars on a crisp white (#ffffff) box.
- Avoid glossy curved surfaces: Shiny cellophane glare and tight bottle curves distort bar widths. Place barcodes vertically (“ladder orientation”) on cylindrical bottles and jars.
- Send SVG to offset packaging presses: Designers working in Illustrator, CorelDRAW, or InDesign should always use the Download SVG file so edges stay cleanly razor-sharp at 300+ DPI.
- Test-scan one print before mass runs: Print one single sample label at actual size on your target thermal or office printer and scan it with both a handheld POS gun and a phone barcode app before ordering bulk tags.
Privacy and zero-dependency client-side encoding
Every single barcode normal on this page is encoded natively inside your browser using pure JavaScript without calling third-party APIs or uploading stock SKUs. Your product codes, batch lists, pricing captions. SVG/PNG exports stay 100% private on your PC and keep working smoothly offline once loaded.
Frequently Asked Questions
Are generated SVG and PNG barcodes free for commercial packaging?
Yes. Every barcode graphic generated on this page is free for own, internal retail. Shop packaging use with zero watermarks or credit required. For open retail mart distribution, ensure your EAN-13 or UPC-A numbers come from an official GS1 company license.
Why did EAN-13 reject a 13-digit number typed by hand?
Every valid EAN-13 code must end with the exact GS1 Modulo-10 check digit derived from its first 12 digits.
If the 13th digit does not match, retail checkout readers will refuse to scan it. Delete the 13th digit and let the tool append the exact check digit on its own.
What is the gap between SVG and 2x PNG barcode saves?
SVG stores exact vector rectangles that scale infinitely without pixel blur, making it the gold normal for product packaging and CorelDRAW/Illustrator artwork. The 2x PNG option renders a sharp precise pixel image ready for Word, Excel, Canva. Thermal sticker apps.
Can many SKU barcodes be generated and printed on one sheet?
Yes. Click the Batch Label Sheet tab at the top left, paste up to 20 SKU codes (one per line), add an extra top caption if needed. Click Print Sheet to send a clean multi-label grid straight to your printer.
Which barcode works best when codes contain letters and hyphens?
Choose Code 128 (or Code 39 for legacy uppercase-only depot readers). Retail formats like EAN-13, UPC-A, EAN-8. ITF-14 accept numeric digits only.
Are SKU lists or product prices uploaded to any server?
No. Encoding, check-digit math, contrast testing, SVG building, and 2x PNG rendering all execute locally inside your browser tab.
کیا دراز یا اپنی دکان کے پروڈکٹس کے لیے یہاں مفت بارکوڈ بنایا جا سکتا ہے؟
جی ہاں، آپ اپنی دکان، گودام یا دراز اسٹور کے لیے Code 128 منتخب کر کے بالکل مفت اور بغیر کسی واٹر مارک کے بارکوڈ بنا سکتے ہیں۔ آپ اوپر پروڈکٹ کا نام اور قیمت بھی لکھ کر SVG یا PNG ڈاؤن لوڈ کر سکتے ہیں یا Batch موڈ میں 20 لیبل ایک ساتھ پرنٹ کر سکتے ہیں۔
سپر مارکیٹ اور ریٹیل پیکنگ کے لیے کون سا بارکوڈ فارمیٹ استعمال ہوتا ہے؟
پاکستان اور دنیا کے بیشتر ممالک میں سپر مارکیٹ پروڈکٹس کے لیے EAN-13 استعمال ہوتا ہے (پاکستان کا GS1 کوڈ 896 سے شروع ہوتا ہے)۔ آپ ابتدائی 12 ہندسے لکھیں تو یہ ٹول 13واں چیک ڈیجٹ خودکار طریقے سے درست بنا دیتا ہے۔
بارکوڈ پرنٹ کرتے وقت اسکینر کے فیل ہونے سے کیسے بچیں؟
ہمیشہ سفید پس منظر پر سیاہ لائنیں رکھیں، دونوں اطراف کم از کم 12 سے 16 پکسل خالی جگہ (Quiet Zone) چھوڑیں اور پرنٹنگ کے لیے SVG فائل استعمال کریں تاکہ باریک لائنیں دھندلی نہ ہوں۔