Skip to content
Text or number → Barcode PNG/SVGDeveloper tools

Barcode Generator (Code 128, EAN, UPC)

Create scannable Code 128, Code 39, EAN-13, EAN-8 and UPC-A barcodes. Check digits added automatically. Download PNG or SVG for printing.

Did this tool work for you?

Used Barcode Generator (Code 128, EAN, UPC)? Share how it went to help others.

About this tool

About Barcode Generator (Code 128, EAN, UPC)

Barcode Generator creates real, scannable barcodes in five common formats, encoded according to each format’s official specification. Code 128 encodes letters, numbers and symbols and is the usual choice for shipping labels, inventory, asset tags and IDs; the generator switches to Code 128’s compact numeric mode for runs of digits, so number-heavy codes stay short. Code 39 handles capital letters, digits and a few symbols and is still used by older industrial and ID systems. EAN-13 is the retail product barcode used worldwide, including in India where GS1 India numbers start with 890; UPC-A is the retail barcode used in the US and Canada; and EAN-8 is the short version for small packs. For the retail formats, type 12, 11 or 7 digits and the check digit is calculated and added for you; if you type the full number, the check digit is verified and you are told the correct one if it is wrong. Adjust the bar width and height, show or hide the human-readable text, and download a print-quality PNG or an SVG vector file that stays sharp at any size for professional printing. Every format was tested by decoding the downloaded images with a barcode reader. Before printing a batch of labels, scan a test print with your scanner or phone, keep the white margin (quiet zone) around the bars, and print in black on white. Note that EAN and UPC numbers used on products sold in shops must be licensed from GS1; this tool draws the barcode for a number you already have. Everything is generated in your browser.

Barcode Generator (Code 128, EAN, UPC) tool

Where barcodes are used

From warehouses to shop shelves

Inventory and assets

Label stock, tools and equipment.

ExampleMake Code 128 labels like ASSET-00042 for office laptops.

Retail products

Print the EAN-13 for a GS1 number you own.

ExampleEnter the 12 digits from your GS1 India allocation and the check digit is added.

Shipping and orders

Scannable order and parcel references.

ExampleAdd a Code 128 order number to a packing slip.

IDs and tickets

Member cards, library cards and event passes.

ExamplePrint Code 39 member numbers on ID cards.

Printing barcodes that scan

Small details matter

Test before printing many

Scan a test print with the scanner you will actually use.

Keep the quiet zone

Leave the white margin around the bars; cropping it stops scans.

Black on white

Strong contrast scans best. Avoid red bars, which many scanners cannot see.

Need a QR code instead?

For links and phone scanning, QR codes are easier.

QR Code Generator
Built & tested by

HemantInsights

Senior Software Engineer · Developer of Toolyconvert

Hemant developed Barcode Generator (Code 128, EAN, UPC) and tests it on desktop and mobile with real files. He is a senior software engineer from Dehradun, India, building websites since 2014, and designed and developed Toolyconvert end to end.

Last updated 23 November 2026

Answers and guidanceFrequently Asked Questions
Which barcode type should I use?
For products sold in shops, EAN-13 (or UPC-A in North America) with a GS1-licensed number. For everything else, such as stock, assets and orders, Code 128 is the most flexible.
What is a check digit?
The last digit of an EAN or UPC number, calculated from the others so scanners can detect misreads. Enter the number without it and it is added for you.
Can I make a barcode for my product without GS1?
You can draw any number, but shops and marketplaces require EAN/UPC numbers licensed from GS1 (GS1 India in India). Using made-up numbers can clash with real products.
Why does Code 39 reject lowercase letters?
Code 39 only has capital letters. Lowercase input is converted to capitals; use Code 128 if you need lowercase.
PNG or SVG?
PNG for documents and labels printed at normal size; SVG for professional printing and scaling, because it stays sharp at any size.
Will my barcode scan?
Yes, if it is printed clearly with its white margin. Every format here was verified with a barcode decoder. Always test a print with your own scanner.
More tools for your workflowRelated Tools

Featured on

Toolyconvert is listed on these product directories and launch platforms.