Retail · Data · Packaging · Marketing Infrastructure

The Barcode: How a Few Black Lines Quietly Changed Marketing, Retail and Consumer Behaviour

I have used barcodes throughout my career without ever thinking very hard about them. It turns out those boring black lines helped turn physical products into data — and quietly changed retail in the process.

I don’t think much about barcodes.

I use GS1. I know how to create them. I know they need to go on the packaging. I know they can cause an impressive amount of chaos when something goes wrong.

And, until writing this, that was roughly the extent of my intellectual relationship with the barcode.

They have simply always been there throughout my career. You make a product, give it a barcode, send the artwork through sign-off and move on to something more interesting.

Except the more I looked into them, the more I realised that this is probably one of the most important technologies in modern marketing that almost nobody in marketing talks about.

The barcode became so successful that it became invisible.

It did far more than make a supermarket checkout beep. It gave physical products a consistent identity that computers could recognise. Once that happened, retailers could begin connecting what happened on a shelf to what happened in a database.

That changed stock control, checkout, pricing, promotions, category management, retail analytics and eventually the amount of information marketers could know about what people actually bought.

A few black lines turned out to be rather consequential.

The Problem Started Before the Barcode

The origin story is wonderfully mundane.

In 1948, according to histories from IBM and the Smithsonian, a supermarket executive approached the Drexel Institute of Technology looking for a way to automate the identification of products at checkout. Supermarkets were growing, queues were slow, staff had to enter prices manually and stocktaking was laborious.

A postgraduate student called Bernard Silver overheard the request and discussed it with his friend Norman Joseph Woodland.

Woodland later described sitting on a beach in Miami and drawing lines in the sand, extending the dots and dashes of Morse code into thick and thin lines. Woodland and Silver eventually developed a circular “bull’s-eye” version and filed a patent application in 1949. Their patent was granted in 1952.

The idea was ahead of the practical technology needed to make it work cheaply and reliably.

It took another two decades, cheaper computing and laser scanning before the grocery industry could seriously standardise a system.

1973: The Lines Finally Became a Standard

By 1970, US grocery retailers and manufacturers had agreed that they needed a universal machine-readable product identifier.

Several companies proposed systems. IBM engineer George Laurer led the development of the rectangular Universal Product Code — the ancestor of the familiar barcode most of us now barely notice.

The rectangular design beat a circular rival partly because it could be printed more reliably. That detail feels important. A clever code is no use if ordinary packaging production cannot reproduce it consistently.

Industry leaders selected the standard in 1973.

Then, on 26 June 1974, cashier Sharon Buchanan scanned a pack of Wrigley’s Juicy Fruit gum at a Marsh supermarket in Troy, Ohio. It is generally recorded as the first commercial scan of a UPC-marked retail product.

The pack cost 67 cents.

It is difficult to imagine a less dramatic object to inaugurate a revolution in retail data.

A useful distinction

GTIN, Barcode and SKU Are Not Quite the Same Thing

They are often used interchangeably in conversation, but they do different jobs.

Identity

GTIN

The Global Trade Item Number is the globally unique identifier assigned to a product. In the UK, the familiar retail version is normally a 13-digit GTIN.

Machine-readable symbol

Barcode

The black-and-white symbol is a way for a scanner to read that identifier quickly and accurately.

Internal system

SKU

A Stock Keeping Unit is usually an internal identifier created by a retailer or business to manage its own products and stock.

GS1 describes the GTIN as the unique product identifier and the barcode as its machine-readable representation.

The Barcode Is Really a Key

One thing I had not properly appreciated is that the traditional barcode is not carrying around a vast database of information about the product.

It is closer to a key.

The scanner reads the identifier. The retailer’s system then uses that identifier to look up the product, price and other information held elsewhere.

That distinction is why the barcode was so powerful.

Every individual shop did not need a different description written into the pack. Manufacturers and retailers could agree on a standard way to identify the item, while their systems connected that identity to whatever operational information they needed.

The important leap

The barcode did not put all the data on the product. It made the physical product reliably addressable by data systems.

Once the same item could be recognised consistently at checkout, in warehouses and across trading partners, physical retail became much easier to measure.

And That Is Where It Becomes a Marketing Story

This is the bit marketers can easily miss because it sounds like operations.

But product-level identity is the foundation for an enormous amount of modern retail marketing.

If every sale is associated with a particular item, a retailer can understand which products are selling, in which stores, at which times and at what price. Add promotional information and it becomes possible to compare what happened before, during and after an offer.

For somebody working with retailers, that data is enormously valuable.

I have worked with supermarket and retailer sales data and there is a huge difference between knowing that a retailer has bought your products and seeing what shoppers are actually buying from the shelf.

That is the difference between sell-in and sell-out.

Sell-in

What you shipped to the retailer

Important commercially, but it tells you what entered the retailer’s network — not necessarily what consumers chose.

Sell-out

What customers actually bought

SKU-level retail data can show which lines, formats and stores are genuinely generating consumer demand.

For a brand with several ranges and pack sizes, that distinction matters enormously. “The brand is growing” is useful. Knowing which individual products are driving that growth is actionable.

You can make better decisions about listings, range architecture, promotions, forecasting and where the commercial opportunity actually sits.

I Have Apparently Been “Truncating” Barcodes

This was one of the more useful things I learned while researching the article.

Pack space is always under pressure. Ingredients, feeding information, claims, legal text, branding, recycling information and everything else are fighting for the same few centimetres.

Sometimes we have reduced the height of a barcode to make it fit.

I would have described that casually as cutting the barcode down.

GS1 has a name for it: truncation.

And GS1 would generally rather you did not.

Its guidance says the height of an EAN/UPC barcode should not be reduced unless absolutely necessary because shortening the bars makes omnidirectional scanning more difficult. A supermarket scanner is designed to catch the code from different directions; take too much height away and orientation becomes more critical.

So this article has already improved my barcode knowledge by a measurable amount.

It also reinforces something I have experienced in practice: packaging sign-off is not just a creative approval process.

A pack can look beautiful and still be wrong.

The barcode number, dimensions, placement and scannability are pieces of commercial infrastructure. Get them wrong and the consequences can extend into retailer setup, warehouses, tills and customer orders.

We have had barcode-related chaos before. It is exactly the sort of problem that makes a robust artwork and packaging sign-off process feel unnecessarily bureaucratic right up until the day you need it.

Boring Infrastructure Is Still Marketing Infrastructure

There is a tendency in marketing to focus on the visible layer.

The campaign. The creative. The packaging front. The advert. The social post.

Those are the interesting bits to talk about.

But modern marketing depends on an extraordinary amount of boring infrastructure underneath them: product identifiers, databases, feeds, tracking, stock systems, analytics, consent, retailer portals and clean product data.

The barcode might be the perfect symbol of that.

Nobody buys a product because the barcode is particularly compelling.

Yet without reliable product identity, huge parts of modern retail become slower, less accurate and less measurable.

Some of the technologies that transformed marketing were not invented as marketing technologies at all.

Then Loyalty Data Added the Person

A product barcode can tell a retail system what was bought.

A loyalty identifier can connect that basket to a customer account.

That is a much bigger step.

Suddenly the retailer can move from aggregate product sales towards understanding patterns across customers: what they buy together, how often they return, whether promotions change behaviour and which offers are relevant to different groups.

I am broadly positive about loyalty cards and retailer data because the exchange can create genuine value on both sides.

Customers can receive more relevant offers and communications. Retailers and brands can make decisions using a better picture of real behaviour rather than broad assumptions.

Obviously, that capability needs sensible privacy, consent and governance. The fact that data can create useful personalisation does not remove the responsibility to handle it properly.

But from a marketing point of view, the evolution is striking.

From product to person

Barcode: what was bought. Loyalty data: who bought it, how often and with what else.

The humble checkout scan becomes much more valuable when it is connected to a wider customer relationship.

The Barcode Logic Escaped the Supermarket

The underlying idea became even more important as commerce moved online.

GS1 UK points out that GTINs now identify products on both physical and digital shelves. Retailers and marketplaces use them to make sure the product in one system is the same product represented in another.

That matters for ecommerce feeds, marketplaces, product catalogues and search.

A shopper may never see the barcode image when buying online, but the identifier behind it can still be doing useful work in the background.

Again, the barcode itself is becoming less visible while the product identity system it helped establish becomes more important.

QR Codes Had a Stranger Journey

I have always thought of QR codes as something slightly different.

They became exciting for a while, then seemed to disappear into the marketing gimmick drawer, and then became genuinely useful again.

The QR Code was created by DENSO WAVE in Japan in 1994. It was originally designed for fast reading in automotive manufacturing rather than for restaurant menus or advertising campaigns.

That origin feels very barcode-like: operational technology first, marketing possibilities later.

For years, asking a consumer to scan a QR code was awkward. Phones often needed a separate app and many executions provided very little reason to bother.

As smartphone cameras became able to recognise them directly, the friction fell dramatically. QR codes became commonplace for payments, tickets, menus, authentication and product information.

And now the barcode world is moving towards them in a much more fundamental way.

A continuing evolution

From Identification to Rich Product Information

The direction of travel is towards identifiers that can do more than simply tell the till which product is being scanned.

1D

Linear barcode

Efficient, globally standardised product identification linked to retailer and supply-chain systems.

2D

QR / Data Matrix

Can encode more information and connect the physical pack to digital resources while still supporting product identification.

Connected product

Richer data

Batch, expiry, provenance, ingredients, recycling information, instructions and consumer content can potentially sit behind the same scan.

The Next Barcode Change Is Already Underway

GS1’s current retail programme makes this much less theoretical.

Industry has set a goal that, by the end of 2027, retail point-of-sale systems should be capable of reading a defined set of 2D barcodes using GS1 standards, alongside the traditional linear codes.

This does not mean the familiar barcode suddenly stops working in 2027.

GS1 explicitly describes a transition period in which linear and 2D codes can coexist, and says traditional linear barcodes will continue to be available.

The interesting change is what the newer codes can unlock.

A GS1-powered QR code can still identify the product for retail systems while also linking to richer information for consumers and businesses. Depending on the implementation, that can include batch or lot information, expiry dates, allergens, recycling guidance, instructions, provenance and other web-based content.

In other words, the identifier that once mainly helped the till know which tin of beans you were buying is becoming a possible bridge between the physical product and an entire digital information layer.

The Most Successful Technology Is Sometimes the One Nobody Notices

I started this article knowing how to make a barcode but not knowing much about why barcodes existed.

I am finishing it with rather more respect for them.

There was no single dramatic moment when the barcode “created modern marketing”. It solved a practical retail problem.

But solving that problem created a standard way to identify physical products. That made transactions easier to record. Recorded transactions produced better retail data. Better product data improved stock management and commercial decision-making. Loyalty programmes made that data more customer-specific. Ecommerce carried the same identification logic onto the digital shelf.

Now 2D codes are extending it again.

It is a lovely example of how innovation actually works.

The glamorous outcome often depends on something very unglamorous underneath it.

The barcode did not become invisible because it stopped mattering. It became invisible because it worked so reliably that the rest of retail could be built on top of it.

I will probably still not think very much about barcodes next time I generate one in GS1.

But I will at least stop pretending they are just some black lines we have to squeeze onto the back of the pack.