Make and verify a barcode for a printed label
Admin ·
A warehouse bin identifier such as BIN-A17 0042 fits Code 128. A product label carrying an assigned GTIN-13 calls for EAN-13. The barcode generator outputs both as SVG or PNG. Check the file and the printed label against the exact identifier your inventory system expects.
Scan a Code 128 bin label before making copies
Choose Code 128 and type BIN-A17 0042. Leave the default 3 pixels per module with black ink, and download the PNG. Scan it with an app or reader that supports Code 128. Expect BIN-A17 0042, with one space and two zeroes before 42. If your inventory form changes the value on paste, test it with the scanner in the same form so you can catch field formatting too.
Code 128 can use a compact encoding for runs of digits, so two values with the same character count can produce images of different widths. Check the actual pixel width shown below the preview. Use a QR code if your data includes names with accents or other Unicode characters.
Validate the last digit of an EAN-13
Switch to EAN-13 and enter the sample 400638133393. Weight the first 12 digits alternately by 1 and 3 from the left. The weighted sum is 89, so 1 reaches the next multiple of ten. Both exports should scan as 4006381333931. At 3 pixels per module the file is 339 pixels wide, including 33 white pixels on the left and 21 on the right.
Try 4006381333932. The tool reports that the check digit should be 1 and withholds both exports. When a supplier sends a number that fails the check, verify it at the source before changing it. Several different numbers can pass the same arithmetic check. Use this sample for practice and supply your assigned GTIN for an actual label.
GS1 General Specifications 26.0.0GS1 guidance on GTINs and barcodes
Keep the white edges and test the final print
An EAN-13 fits the same number of modules at each setting. Change Pixels per module from 3 to 5 and the example becomes 565 pixels wide. The encoded number stays the same. Preserve the entire white rectangle when adding the file to a layout, and keep the proportion locked. A barcode that scans on screen can fail after a layout program clips a quiet zone or a printer blurs narrow bars.
Use SVG when your layout application supports vector artwork. Use PNG when your destination expects a bitmap and avoid resampling it at a fractional pixel width. If you choose custom dark ink, scan a real print with the intended reader. Check GS1's size and print-quality requirements for your retail application.
Common questions
How do I test a barcode before printing a batch?
Open the saved file, scan it with a reader that supports its format, and compare every character. Print one copy on the final material at the planned size and repeat with the reader that will scan the labels in use.
Can I shrink a barcode to fit a label?
Keep the original proportions and both quiet zones, then check the resulting module size and print against the reader or the relevant GS1 requirements. Reducing the pixel width in a layout tool can blur the bars, so use SVG where supported.