What this barcode generator does
One-dimensional barcodes are still the backbone of retail, warehousing and libraries. This generator creates CODE128, EAN-13, EAN-8, UPC-A, CODE39, ITF-14, MSI, Pharmacode and Codabar symbols, validates check digits where the symbology requires them, and exports PNG or vector SVG. You control bar width, height, colours and whether the human-readable text is printed underneath.
How to use it
- Select a Format. The value field fills with a valid sample for that symbology.
- Replace the value with your own data. An error appears immediately if a character or check digit is not allowed.
- Adjust Bar width (the width of the narrowest bar in pixels) and Height.
- Toggle the text below the barcode and pick line and background colours.
- Download SVG for labels and print or PNG for documents and web pages.
Practical examples
- Internal asset tags: CODE128 encodes all 128 ASCII characters compactly, so
LAPTOP-0042fits on a small label. - Retail product: EAN-13 (or UPC-A in North America) requires a number assigned by GS1. Enter all 13 digits and the generator verifies the final check digit.
- Shipping cartons: ITF-14 encodes the 14-digit GTIN printed on outer cases and tolerates low-quality corrugated print.
- Library cards and blood banks: Codabar is still common in these legacy systems; values start and end with A, B, C or D.
Tips and edge cases
- Print at 100% scale. Resizing a PNG in a word processor can make bar widths uneven; SVG avoids this.
- Leave a clear quiet zone on both sides of at least ten times the narrow bar width.
- Black bars on a white background are the safest choice. Red bars are invisible to most laser scanners because they use red light.
- CODE39 only supports uppercase letters, digits and a few symbols; use CODE128 if you need lowercase.
- For EAN and UPC, you may enter the number without the last digit and many scanners still expect the full code, so always print the complete value.