Barcode Generator
Create scannable barcodes for products, inventory, shipping cartons and labels. Check digits are added for you, sizes are exact in millimetres, and you can download PNG or SVG or print a whole batch — free, with no sign-up.
At a glance
- Creates 11 barcode types: Code 128, EAN-13, EAN-8, UPC-A, UPC-E, Code 39, ITF-14, Codabar, GS1-128, Data Matrix and PDF417.
- The GS1 check digit for EAN-13, EAN-8, UPC-A, UPC-E and ITF-14 is calculated automatically; a check digit you type is verified.
- Sizes are real-world: set the narrowest bar (X-dimension) and the bar height in millimetres, and the SVG and printout keep that exact size.
- Downloads SVG (vector, sized in mm) or PNG at 150, 300 or 600 DPI with the resolution written into the file, or copies the image to the clipboard.
- Batch mode turns up to 200 values — pasted from Excel or Google Sheets — into barcodes, downloaded as a ZIP or printed on one sheet.
- Barcodes are drawn with Barcode Writer in Pure PostScript (bwip-js), a widely used open-source barcode engine.
- Runs entirely in your browser: nothing you enter is uploaded.
Step by step
How to create a barcode
- 1
Choose the barcode type
Pick EAN-13 or UPC-A for retail products, Code 128 for labels and inventory, ITF-14 for cartons, or a 2D code such as Data Matrix.
- 2
Enter your data
Type the number or text. For EAN and UPC codes, leave out the check digit and it is added for you. For many barcodes, switch to Many (batch) and paste one value per line.
- 3
Set the size and colours
Adjust the bar width and height in millimetres, and keep dark bars on a light background.
- 4
Download or print
Download SVG for print and design work or PNG for documents, or print directly at true size. Scan a test print before printing labels in bulk.
Features
Everything you need, nothing you don’t
Check digits done for you
Type 12 digits for an EAN-13 and the 13th is calculated. Type all 13 and a wrong check digit is caught before it reaches a printed label.
Exact print size
Choose the bar width in millimetres (0.33 mm is the retail standard) and the height you need. What you set is what prints.
Batch from a spreadsheet
Paste a column of SKUs, product numbers or serials and get every barcode at once, as a ZIP of PNG or SVG files or a print-ready sheet.
Print-ready files
SVG stays sharp at any size in Illustrator, CorelDRAW, Canva and label software; PNG carries its DPI so Word places it at the right size.
Scanner-safe checks
Warnings appear for low contrast, light-on-dark codes and red bars, which laser scanners cannot see.
Private and unlimited
No account, no watermark and no limit. Product numbers and serials never leave your device.
Which barcode type should I use?
| Type | What it encodes | Typical use |
|---|---|---|
| Code 128 | Letters, digits and symbols | Shipping labels, inventory, asset tags, tickets |
| EAN-13 | 12 digits + check digit | Retail products worldwide; books (ISBN, starting 978/979) |
| EAN-8 | 7 digits + check digit | Small retail packs |
| UPC-A | 11 digits + check digit | Retail products in the US and Canada |
| UPC-E | Compressed 6-digit UPC | Small items sold in the US and Canada |
| Code 39 | A–Z, 0–9 and - . $ / + % space | Industry, defence and older systems |
| ITF-14 | 13 digits + check digit (GTIN-14) | Outer shipping cartons |
| Codabar | Digits and - $ : / . + | Libraries, blood banks, couriers |
| GS1-128 | GS1 data such as GTIN, batch and expiry | Pallet and logistics labels, pharma |
| Data Matrix | Any text, in a small square | Small parts, electronics, medicines |
| PDF417 | Large amounts of text | ID cards, boarding passes, permits |
Getting a real EAN or UPC number for your product
Barcodes on products sold in shops and on most marketplaces must use a number licensed from GS1 — in India, from GS1 India. The number identifies your company and product worldwide, so it can’t simply be made up.
This generator draws any number to the standard, and is ideal once you have your GS1 numbers, or for internal barcodes where you choose the numbering: stock-keeping units, shelf labels, library books, files, assets and event tickets. For those, Code 128 is usually the best choice.
Tips for barcodes that scan first time
- Print at 100% scale — turn off “Fit to page” — so the bar width stays as you set it.
- Keep the quiet zone (the blank margin) on both sides; text or edges too close to the bars stop scanners.
- Use dark bars on a light background. Red, orange and yellow bars are invisible to red-light laser scanners.
- On a 203 DPI thermal printer each dot is 0.125 mm, so bar widths of 0.25, 0.375 or 0.5 mm print cleanly; on 300 DPI printers use multiples of about 0.085 mm.
- Don’t shrink retail codes below 80% of standard size (a 0.26 mm bar), and avoid cutting their height.
- Scan a test print with a phone scanner app or your till scanner before printing hundreds of labels.
FAQ
Frequently asked questions
Is this barcode generator free?
How do I get a barcode for my product?
Is the check digit added automatically?
Should I download PNG or SVG?
Can I create many barcodes at once?
What is the difference between a barcode and a QR code?
Can I print barcodes on labels?
Is my data private?
Keep going
Related tools
QR Code Generator
Create free QR codes for links, UPI payments, Wi-Fi, WhatsApp, contacts and more. Add colours and a logo, download PNG or SVG. Codes never expire.
Images to PDF
Convert JPG, PNG and other images to one PDF. Reorder and rotate pages, choose A4 or Letter, margins and quality — free, private and with no upload.
Image Resizer
Resize JPG, PNG and WebP images by pixels, percentage or social media presets. Crop to fill or fit, batch resize and download a ZIP — no upload needed.
QR Code Scanner
Scan QR codes online with your camera or from a photo or screenshot. Shows links safely, UPI payments, Wi-Fi passwords and contacts. Free, private, no app.
Barcode Scanner
Scan barcodes online with your camera or from a photo: EAN-13, UPC, Code 128, Code 39, ISBN, DataMatrix and PDF417. Batch scan to CSV. Free, no app needed.
Image Compressor
Compress JPG, PNG, WebP and AVIF images online for free. Shrink photos by up to 90% or hit an exact KB target — right in your browser, with no upload.
Last updated Report a problem or suggest a feature