Programming · Cheatsheet
Barcode Formats Cheatsheet
Code 128, Code 39, EAN and UPC inputs, check digits, export settings, and print checks for barcode generation.
40 commands 8 sections
No entry matches that filter.
-
CODE128Code 128 subset B: printable ASCII. No GS1-128 structure. -
CODE39Letters become uppercase. Supports digits, spaces, and -.$/+%. -
EAN1312 data digits, or 13 digits including a correct check digit. -
EAN87 data digits, or 8 digits including a correct check digit. -
UPCUPC-A: 11 data digits, or 12 digits including a correct check digit.
-
SHELF-A17Code 128 preserves this supported ASCII value. -
shelf-a17 → SHELF-A17Code 39 converts letters to uppercase. -
590123412345 → 5901234123457EAN-13 appends 7. Demonstration value only. -
9638507 → 96385074EAN-8 appends 4. Demonstration value only. -
03600029145 → 036000291452UPC-A preserves the leading zero and appends 2. Demonstration value only.
-
Remove the final check digitFor a complete code, calculate from its data digits only. -
3, 1, 3, 1, ... from the rightApply weights from the rightmost data digit. -
sum(digit × weight)Add all weighted data digits. -
(10 - (sum % 10)) % 10The result is one digit from 0 to 9. -
sum = 83 → check = 7For 590123412345, the total with the check digit is 90.
-
Keep identifiers as textNumeric conversion can remove leading zeroes. -
Retail formats: digits onlyDo not include spaces, separators, or letters in EAN and UPC input. -
Use the supported character setCode 128 and Code 39 can omit unsupported characters from the bars. -
Code 39: no surrounding asterisksThe encoder adds its own start and stop characters. -
5901234123458 → errorFor this EAN-13 input, the correct final digit is 7.
-
PNGRaster download. Enlarging a small image can blur its edges. -
SVGVector download. Final print dimensions still need a check. -
Bar width: 1–5 pxBrowser slider range. REST and MCP accept 1–10. -
Bar height: 50–200 pxBrowser slider range. REST and MCP accept 20–500. -
Side margin: 20 pxFixed margin. It does not guarantee the required quiet zone.
-
Black bars on whiteStart with this color combination. Check the final print requirements. -
Keep the quiet zones clearThe required blank margins depend on the barcode format and module width. -
Print at the final sizeCheck a sample from the actual printer and label material. -
Compare scanner outputRead the entire value. Include leading zeroes and the check digit. -
Check the selected productConfirm that the receiving software selects the intended record.
-
Product assignmentA generated image does not assign a GS1 identifier. -
Product identityA correct check digit does not establish the owner or product. -
Every typing errorSome changes to multiple digits preserve the check digit. -
Retail print qualityOne successful scan does not replace the required quality verification. -
GS1-128 supportOrdinary Code 128 lacks the required FNC1 start structure.