Browse the guides

A scanner says Code 128: confirm the format before treating its text as GS1 fields

A generic Code 128 label and GS1-128 can share a displayed name. Preserve the reader identifier before applying ingredient-lookup parsing rules.

A barcode reader displays Code 128 beside a string from a food package. That name alone does not establish that the digits can be split into GS1 product, lot and date fields. First confirm what the reader actually recognized. Otherwise a neat-looking parsing result can assign meanings the code never supplied.

Preserve the format information

Cognex's January 2026 support example shows that its symbology-name result can say Code 128 for both generic Code 128 and GS1-128. It distinguishes the identifier ]C0 from ]C1, respectively. This is documentation for the provider's reader interface, rather than a guarantee that every phone app displays those fields.

The GS1 System Architecture identifies symbology identifiers as control information and lists ]C1 for GS1-128. Keep that information separate from the product identifier you intend to look up. Do not paste a reader's format marker into a field that asks only for a GTIN.

Do not manufacture a structured reading

Imagine a fictional package whose reader output is labelled Code 128. The payload begins with characters that resemble an application identifier. Without confirmed GS1 structure, that resemblance is insufficient to call the next characters a GTIN or expiration date. Preserve the complete raw output and the format information actually available.

If the interface supplies ]C0, the documented distinction gives a reason to stop applying GS1-128 assumptions. If it supplies ]C1, use a suitable GS1 field interpretation rather than treating the entire payload as one product number. If no distinguishing information is exposed, record format unresolved and obtain the reader's documentation or a separate clear view of the package identifier.

This procedure does not require changing reader settings or stripping arbitrary punctuation. An unexplained bracket elsewhere in text is not automatically a format marker. Keep the raw result intact so any later interpretation can be checked against it.

Return to the ingredient question

The output is a format-qualified input record, not a decoded food recipe. No scanner was tested here, and recognizing GS1 structure does not establish a correct database match or authenticate a pack.

For the independent task of reading its visible ingredient paragraph, evaluate Ingredi AI's current ingredient-photo offer. Confirm supported inputs and actual output. This article does not establish that Ingredi exposes symbology identifiers or parses GS1-128 data.

Sources

View the app
View all guides