Barcode Generator
Create 1D and 2D barcodes online. Choose a barcode type, enter your data, customize the appearance, and download the result as SVG, PNG, or PDF.
Quick answer: A barcode generator creates a machine-readable barcode from text, numbers, product codes, URLs, or structured data. This tool supports Code 128, Code 39, EAN-13, UPC-A, QR Code, Data Matrix, PDF417, Aztec, and MaxiCode.
Privacy-first: Most barcodes are generated directly in your browser. The data you enter is not uploaded to our servers.
Alphanumeric (ASCII) · max ~80 chars
Enter data above to generate a barcode.
Use SVG or PDF for print. PNG for web and presentations.
How to create a barcode
- 1Choose a barcode type from the selector above.
- 2Enter your barcode data in the input field.
- 3Check any validation errors or warnings shown.
- 4Optionally customize size, colors, and text display.
- 5Click Download SVG, PNG, or PDF to save the barcode.
- 6Test scan the barcode before printing large quantities.
Print and scan tips
- ·Use SVG or PDF for print — they remain sharp at any size.
- ·Use PNG for web, presentations, and digital displays.
- ·Keep good contrast — dark bars on a white or light background.
- ·Maintain a quiet zone (white space) around the barcode.
- ·Avoid printing barcodes smaller than the recommended minimum size.
- ·Test scan on the actual label material before large print runs.
Troubleshooting
- Why is my barcode not scanning?
- Common causes: barcode too small, quiet zone too narrow, low color contrast, invalid or malformed data, poor print quality, or scanner not supporting that barcode type.
- Why is my EAN or UPC check digit wrong?
- Enter only the first 12 digits (EAN-13) or 11 digits (UPC-A) and let the generator calculate the check digit automatically.
- Can I use any color for my barcode?
- Dark bars on a light background work best. Avoid light bars, very similar colors, or reversed barcodes (light on dark) unless your scanner specifically supports it.
- What size should I print my barcode?
- Most 1D barcodes should be at least 25mm (1 inch) wide. QR codes should be at least 20×20mm for reliable scanning. Test at the actual print size before bulk printing.