Free tool · no sign-up
Online barcode generator
Make a Code 128 or EAN-13 barcode, with the text printed below, and download it as PNG or SVG for your labels. Free, no sign-up, and nothing leaves your browser.

Loading…
How it works
- 1Type the codeAny SKU in Code 128, or 12 digits for EAN-13.
- 2Pick the bar sizeWidth, height and the text under the bars.
- 3Download or print labelsPNG or SVG, or a whole A4 label sheet.
Runs in your browser. Nothing you type or upload is sent to Cashflow OS.
How to use it
- Choose Code 128 or EAN-13.
- Type the value. For EAN-13, enter the first 12 digits; the 13th, the check digit, is worked out for you.
- Adjust the bar width and height to fit your label.
- Download as SVG for sharp printing at any size, or PNG for documents and quick use.
Code 128 or EAN-13?
| Code 128 | EAN-13 | |
|---|---|---|
| What it holds | Letters, numbers and symbols | Exactly 13 digits |
| Typical use | Item codes, batch numbers, godown labels, invoice numbers | Products sold in retail shops |
| Who gives the number | You choose it | GS1 India for retail products |
| Length | Grows with the text | Fixed |
For in-house use — your own stock, racks, job cards — Code 128 with your Tally item code or alias is enough. If your product is going onto shelves in modern retail or online marketplaces, you need registered EAN numbers from GS1 India (Indian numbers start with 890). Making up an EAN-13 number risks clashing with another company's product.
The EAN-13 check digit
The last digit lets a scanner catch a misread. Take the 12 digits; add the digits in odd positions, add three times the digits in even positions, and the check digit is what brings the sum up to the next multiple of 10. For 890123456789, the sum is 157, so the check digit is 3 and the full number is 8901234567893. The tool does this for you.
Printing tips
- Use SVG or a 300 dpi PNG. Blurry bars cause most scan failures.
- Thermal label printers (50 × 25 mm labels are common) give crisp bars; set the printer to the label size, not A4.
- Keep a clear margin on both sides of the bars.
- Black bars on white. Red bars do not scan with most red-light scanners.
- Test with your actual scanner, or the online barcode scanner, before printing a full roll.
Barcodes from your stock list
Making codes one at a time is fine for a few items. For a whole range, read a barcode system for small business. Cashflow OS has barcodes and labels as an add-on: per item or per piece, printed on thermal or A4, and scanned with the phone camera. See barcodes and labels.
Questions people ask
Can I use any 13-digit number as an EAN?
Technically it will scan, but for products sold through retailers you should use numbers allotted by GS1 India to avoid clashes.
Which format should I download?
SVG for label software and printing at any size; PNG for pasting into documents or sharing.
Can Code 128 hold Hindi text?
No. Code 128 covers standard keyboard characters. Use item codes in English letters and numbers.
Is anything uploaded?
No. The barcode is drawn in your browser.
What size should the label be?
For most item labels, 50 × 25 mm or 38 × 25 mm works. Keep the bars at least 1 cm tall and leave a clear margin on both sides.
General information for Indian businesses, not tax or legal advice. GST rates and rules change by notification — check cbic-gst.gov.in or ask your CA before you rely on a figure.