Barcode Generator
Make a barcode in CODE128, EAN-13, UPC-A or CODE39, check the input is valid for the format, and download it as a PNG or SVG.
How to make a barcode
- Choose a barcode format: CODE128 for general text, EAN-13 or UPC-A for retail products, CODE39 for simple labels.
- Type your value. The tool checks it for the format and adds the check digit for EAN-13 and UPC-A when you leave it out.
- Adjust size and colors, then download the barcode as a PNG image or a scalable SVG.
Features
Four common formats
CODE128, EAN-13, UPC-A and CODE39.
Input validation
Clear messages and automatic check digits.
PNG and SVG
A sharp PNG, or an SVG that scales to any print size.
Private
Everything runs in your browser; nothing is sent anywhere.
Which barcode format should I use?
A barcode is a pattern of bars that a scanner turns back into text or numbers. Different formats exist for different jobs, and picking the right one saves problems later. CODE128 is the most flexible: it encodes any letters, numbers and symbols in a compact space, which makes it the standard for shipping labels, inventory, asset tags and tickets. CODE39 is older and simpler, limited to capital letters, digits and a few symbols, and is common in industry, libraries and ID cards.
EAN-13 and UPC-A are the retail formats printed on products. EAN-13 has 13 digits and is used worldwide, while UPC-A has 12 digits and is used mainly in the United States and Canada. The last digit is a check digit calculated from the others, so scanners can detect a misread. This tool adds the check digit for you if you enter one digit fewer. Note that real product codes must be issued through GS1 or your retailer; a generated code only draws the pattern.
For printing, download the SVG, which stays sharp at any size, or use the PNG for documents and web pages. Keep a quiet margin of blank space around the bars, use dark bars on a light background, and test the printed barcode with a scanner or phone before you print many copies. All barcodes are drawn in your browser.
Frequently asked questions
Which barcode type should I use?
Use CODE128 for general text, inventory and shipping, EAN-13 or UPC-A for retail product codes, and CODE39 for simple uppercase labels. If a customer or marketplace specifies a format, use that one.
What is a check digit?
A check digit is the last digit of an EAN-13 or UPC-A code, calculated from the other digits. Scanners use it to catch reading errors. This tool calculates it for you or tells you what it should be.
Can I use these barcodes in shops?
You can print any valid pattern, but retail product numbers must come from GS1 or your seller platform. Random numbers may clash with real products.
PNG or SVG: which should I download?
SVG is a vector file that stays sharp at any print size. PNG is a regular image that is easy to put in documents and web pages.
Is my data uploaded?
No. The barcode is created in your browser, and nothing you type is sent to a server.