Software & Security

Req 4d — Barcodes, QR Codes & RFID

4d.
Explain what a barcode, a QR code, and an RFID tag are along with the data they contain and two or more examples where each are used.

Pick up almost any product around you — a snack bar, a textbook, a water bottle — and you will find some form of machine-readable code on it. These codes are the silent workhorses of modern commerce, logistics, and information sharing. They let machines read data instantly without anyone typing a single character.

Barcodes

A barcode is a pattern of parallel lines (bars) and spaces of varying widths that represent data. A laser scanner or camera reads the pattern and converts it back into numbers. The most common type is the UPC (Universal Product Code), which you see on virtually every product sold in a store.

What Data Does a Barcode Contain?

A standard UPC barcode contains a 12-digit number. This number does not describe the product directly — it is a reference code that the store’s computer system looks up in a database to find the product name, price, and inventory information.

The 12 digits break down as:

Examples of Barcode Use

QR Codes

A QR code (Quick Response code) is a two-dimensional square pattern of black and white modules that stores data both horizontally and vertically. Unlike barcodes, which store data in only one direction, QR codes use both dimensions — allowing them to hold far more information.

What Data Does a QR Code Contain?

A QR code can store up to 7,089 numeric characters or 4,296 alphanumeric characters — enough for a full website URL, a paragraph of text, contact information, or Wi-Fi network credentials. The data is encoded directly in the pattern itself, so a QR code can function without any external database.

QR codes also include error correction — even if part of the code is damaged, dirty, or obscured, it can still be read. This is why some QR codes include logos in the center without breaking.

Examples of QR Code Use

Comparison diagram showing a standard UPC barcode alongside a QR code with structural elements labeled

RFID Tags

RFID (Radio Frequency Identification) uses radio waves to wirelessly transmit data from a small tag to a reader. Unlike barcodes and QR codes, RFID does not require line of sight — the tag can be read through packaging, clothing, or even walls, depending on the frequency used.

An RFID system has two parts:

What Data Does an RFID Tag Contain?

RFID tags typically store a unique identification number (like a serial number) that links to a database. Some tags can store additional data — up to several kilobytes — including product details, ownership information, or access credentials.

Examples of RFID Use

Comparing All Three

FeatureBarcodeQR CodeRFID Tag
Format1D (lines and spaces)2D (square pixel grid)Radio waves
Data capacity~20 digitsUp to 7,089 charactersVaries (typically 96–512 bits)
Requires line of sight?YesYesNo
Read distanceInchesInches to feetInches to hundreds of feet
Cost per unitVery low (printed ink)Very low (printed ink)Low to moderate (chip + antenna)
Can be read through materials?NoNoYes
Multiple items scanned at once?NoNoYes
GS1 — Barcodes and Standards The official organization that manages barcode standards worldwide — learn how barcodes are assigned and how the global system works.

You have mastered the physical side of digital data — how it is stored, compressed, processed, and encoded onto products. Now let’s explore how all that data moves across the internet.