VIEW THIS AS

Auto mode follows the Route Engine until you choose a viewpoint.

YOU ARE HERE

ROUTE CHECK

CONNECTED TO

WHAT NEXT

Use the canonical route for this room, or HELP if you are unsure.

How QR Codes Work | How a Square Stores Words, Links and Numbers

Did you know? A tiny black-and-white square on a café table can contain a web address, a short message or useful information for your phone to read. It looks random, but every little square has a job. A QR code is really a carefully arranged piece of information, designed to be recognised quickly by a camera.

Quick answer: a QR code turns data into a two-dimensional pattern of light and dark squares. A phone camera finds the pattern, corrects its angle, reads the squares and decodes the stored data. If that data is a web link, your phone may offer to open the page. The code itself is not the web page.

The 30-second explanation

  • Start with information: a link, text, numbers or other supported data.
  • Encode it: software converts the information into a standard QR code pattern.
  • Find the corners: the three large square markers help the scanner locate and orient the code.
  • Read the grid: the camera interprets the dark and light modules after accounting for angle and image quality.
  • Decode the message: the scanner extracts the original information, then the phone decides what to show or offer next.

Why is a QR code square?

The ordinary barcode on a product package is mostly read in one direction. A QR code uses two directions: across and down. That is why it can carry more information within a relatively compact printed space. QR means Quick Response, a name that describes its goal: make the data fast to find and read.

Look at a familiar QR code. You will usually see three large square-within-square marks near three corners. These are finder patterns. They tell scanning software where the code is and help determine its orientation. Smaller structural patterns and the surrounding grid give the reader further clues. The blank border, called the quiet zone, helps separate the code from nearby text and artwork.

The tiny dark and light cells have a technical name: modules. Not every dark cell directly represents a letter. Some space is reserved for finding and reading the code, while other space carries the encoded information and error-correction data.

Step 1: A computer turns information into a pattern

Suppose a school prints a QR code next to a science worksheet. The teacher wants it to open a short video explaining evaporation. The QR-code maker begins with the video’s web address, not the video file itself. It selects a way of representing the characters and converts them into bits—patterns of zeros and ones.

Standard QR codes have different ways of encoding data, including numbers, certain letters and symbols, and bytes. The software also adds information needed to decode the pattern correctly. A short address may produce a simpler-looking code than a long address. But appearance alone is not a reliable measure of how much information a code contains.

More text does not always mean a better code. If a printed code is physically small, squeezing in a very long address can make its individual squares harder for a camera to distinguish. Often a short, stable address makes a better reader experience.

Step 2: Your camera finds the code, even at an angle

Now picture yourself holding a phone over the worksheet. You are not perfectly square-on. The paper might even be tilted. The camera sees an image with perspective distortion rather than a neat computer grid.

The scanner looks for the QR code’s locating patterns, estimates its boundaries and maps the photographed shape back towards a regular grid. It then determines which modules are light and which are dark. Good lighting, clear contrast and sufficient resolution help. A big decorative logo or an absent quiet zone can make a code much harder to read.

This is why moving the phone slightly, improving the lighting or flattening a creased page sometimes makes the code suddenly work. The phone did not change the information. It finally obtained a clear enough view of the pattern.

Step 3: The phone decodes the message

Once the squares are read, the decoder interprets the code according to the QR standard. It can use built-in error-correction information to recover certain damaged or poorly read portions. The result might be a website address, plain text, contact details or another data format recognised by the scanning application.

A useful distinction: reading a QR code and following the link are different actions. A phone can often decode a code containing text without internet access. If the code contains a URL, an internet connection is normally needed to retrieve the online page. If the website has moved or disappeared, the scan may succeed while the destination fails.

What information can it hold?

  • A website address: the most familiar use for menus, learning resources and product instructions.
  • Plain text: a short note that may appear on the screen without opening a website.
  • Contact or event details: data an app may interpret as a contact card or calendar invitation.
  • Network setup information: some codes can offer to configure Wi-Fi access.
  • Product identifiers: specialised systems can connect a scan to a product record or further online information.

These are examples of common uses, not a promise that every camera app will support every data format. The phone and its software still decide how to handle the decoded information.

Is the information inside a QR code secret?

No. A normal QR code is a machine-readable way to represent data, not a form of encryption. Anyone who can read the code can usually recover the information it contains. A code printed on a ticket can hold a credential that should be treated privately, but the black-and-white pattern alone does not make it secure.

Equally, a QR code does not certify that a website is genuine, a product is authentic or the person who printed it can be trusted. Think of it as a signpost. A signpost tells you where to go; it does not prove the destination is safe.

Try this five-minute learning activity

Write two short messages, such as ‘Science is about testing ideas’ and a much longer sentence. Use a reputable QR-code generator to create codes containing plain text, not personal details. Scan both using the phone’s camera. Compare how many small modules you see. Change the size of the printed code and notice what makes it easy or difficult to read.

Then ask a better science question: which factor changed—message length, symbol size, contrast or camera distance? Test one variable at a time. A little square has just become a lesson in encoding, measurement, experimental control and digital literacy.

Questions people often ask

Does a QR code need the internet to work?

Not to decode the squares. Internet access is needed when the decoded content asks your phone to load something online, such as a website.

Why does one QR code look denser than another?

Codes can vary because of the amount and type of data, the selected version and the error-correction setting. Denser is not automatically better.

Can you read a QR code from a screenshot?

Often yes. Many devices can recognise codes in saved photos or screenshots, as long as the symbol remains clear and sufficiently detailed.

Can a QR code prove a website is safe?

No. A QR code is an information carrier, not a guarantee of who controls the destination. Check the link before opening it.

The idea to remember

A QR code is a map from visible squares back to data. The clever part is making that map compact, recognisable and tolerant of some scanning errors. Once you understand that, those mysterious squares become something you can explain instead of merely scan.

Continue exploring with eduKateSG: Why Mathematics? | Barcodes, Check Digits and Error Detection and Why the QR Code on a Worksheet May Not Open the Lesson.

Sources and further reading

Explore the How QR Codes Work series

Each guide explains a different part of the same everyday technology. Choose what you would like to understand next.

Discover more from eduKate Singapore

Subscribe now to keep reading and get access to the full archive.

Continue reading