TOOL · ON YOUR DEVICE
Free barcode generator
Type your product number or some text and get its barcode instantly. For EAN and UPC we calculate or verify the check digit; Code 128 accepts letters and digits. Download PNG for documents or SVG to print at any size.
- Free account required to download
- EAN-13, UPC-A, EAN-8 and Code 128
- PNG and SVG
- Choose the type
- Type the number
- Download
HOW TO USE IT
Three steps.
Choose the type
UPC-A takes 11 digits, EAN-13 takes 12, EAN-8 takes 7, and Code 128 accepts up to 80 ASCII characters. Choose the type your label or product needs.
Type the number
Leave out the last digit and we calculate it; type it and we check that it matches. Adjust the bar width, height, white margin and whether the digits show.
Download
Press “Download PNG” or “Download SVG”. Print it without trimming the white margin and test it with a scanner before using it.
NEXT STEP
Keep going with these tools
Check your number before printing a barcode
Choose EAN-13, UPC-A, EAN-8 or Code 128. EAN and UPC check digits are calculated or verified; Code 128 accepts up to 80 ASCII characters. Adjust bar size and white margins, export PNG or SVG and test with a scanner. The tool draws the code; it does not assign or register product numbers.
Barcode generator: common questions
Can I use it to sell in shops or on Amazon?
The code is drawn correctly, but the number has to be yours: retail EAN and UPC numbers are assigned to each company by GS1. This tool does not assign or register numbers.
What is the check digit?
It is the last digit of EAN and UPC codes and is calculated from the others; scanners use it to catch errors. If you type the number without it, we add it; if you type it and it does not match, we tell you.
PNG or SVG?
SVG is vector: it scales without losing sharpness and is best for printers and labels. PNG suits documents, websites and spreadsheets; choose a bar width large enough for the size you will print.
What does Code 128 accept?
Up to 80 ASCII characters: unaccented letters, digits, spaces and symbols. It packs digits in pairs on its own when a run is long enough: from four digits at the start or the end of the text, or from six in the middle.
Is what I type sent to a server?
No. The number or text you type is turned into the barcode inside your browser and is not sent to Cocuyo or to any third party. You can check it in your browser’s network tools.
Do I need an account or credits?
You can use the tool without an account. Downloading the result requires a free account. This local tool does not use credits.
How wide does the white margin need to be?
Keep the margin at least as wide as the minimum for your type: 11 modules for EAN-13, 9 for UPC-A, 7 for EAN-8 and 10 for Code 128. The tool shows a warning below that number. The margin starts at 11 modules, and choosing a type sets it to that type’s minimum.
What is a module, and how thin can the bars be?
A module is the width of the thinnest bar. You can set it from 1 to 8 px, and the default is 3 px. With 1 px bars the tool advises printing at full size or larger, because a reduced code may become unreadable.
Why are the download buttons disabled?
They stay disabled while the number does not fit its type. Letters in an EAN or UPC number show “This code type only accepts the digits 0 to 9.” A wrong number of digits shows “Wrong number of digits for this code type.” If the check digit you typed is wrong, the tool tells you which digit it should be.
Does this tool make QR codes?
No. This tool makes EAN-13, UPC-A, EAN-8 and Code 128 barcodes only. For a QR code, use the QR code generator.
MORE FREE TOOLS
Other image tools
All free tools
WHEN YOU WANT TO CREATE
Make new images with AI.
Cocuyo’s Studio brings 30+ AI models for image, video and voice together. You see the credit cost before generating, and credits never expire.
































































