Barcode Generator
Create Code 128, EAN, UPC, Code 39 and ITF-14 barcodes — download as sharp vector SVG or PNG.
Any text or digits — the general-purpose default.
How to Use
- 1. Pick the barcode format you need — Code 128 works for most text.
- 2. Type the value to encode. The tool tells you if the format rejects it.
- 3. Adjust bar width, height, and colours if needed.
- 4. Download as SVG for print or PNG for screens.
Choosing a Barcode Format
Barcode symbologies are not interchangeable. Code 128 is the flexible one — it encodes the full ASCII set and compresses digits efficiently, which makes it the usual choice for internal asset tags, tickets, and logistics labels.
Retail is stricter. EAN-13 is the global standard on consumer products and UPC-A its North American equivalent; both are fixed-length numeric codes ending in a check digit computed from the preceding digits. ITF-14 appears on the outer shipping carton rather than the item itself.
One thing a generator cannot give you is legitimacy: a scannable retail barcode must contain a company prefix issued by GS1. This tool will happily render any valid-looking number, but only a registered prefix will work in a real shop.
For print, always take the SVG. Barcodes are read by measuring the ratio between bar widths, so a resized bitmap with soft edges is exactly what causes scanners to fail.
Also useful: QR Code Generator and Invoice Generator.
Frequently Asked Questions
Which barcode format should I use?
Code 128 handles any text and is the safest default for internal use. Retail products need EAN-13 (worldwide) or UPC-A (North America), and shipping cartons use ITF-14. The tool shows the exact input rules for whichever format you pick.
Why does my number turn red as invalid?
Retail formats have strict rules — EAN-13 needs exactly 12 or 13 digits, UPC-A needs 11 or 12, and Pharmacode only accepts 3 to 131070. The final digit is a checksum, so an arbitrary number usually fails.
What is a check digit?
The last digit of EAN and UPC codes is calculated from the ones before it. If you supply 12 digits for EAN-13, the check digit is computed and appended automatically; if you supply all 13, it must already be correct.
Should I download SVG or PNG?
SVG for anything printed — it is vector, so it stays razor sharp at any size, which matters because blurry bars fail to scan. PNG is fine for screens and for tools that cannot import SVG.
Can I use these barcodes commercially?
The images are yours to use freely. But a retail barcode must encode a GS1-issued company prefix to be valid in shops — this tool renders the number you provide, it does not assign you a legitimate one.
Was this tool helpful?
More Tools
Related Security
TOTP Generator
File Checksum Verifier
QR Code Scanner
Bcrypt Generator & Verifier
You Might Also Like