Lesson 1
What Is a QR Code?
Understand QR structure and what scanners read.
A QR code (Quick Response code) is a two-dimensional barcode that stores a string payload—most often a URL, plain text, or a structured connection string such as Wi-Fi credentials.
Modules, not pixels for humans
The black-and-white squares are modules arranged in a grid. Scanners detect:
- Finder patterns — the three large squares in corners
- Timing patterns — help the camera map the grid
- Format and version info — tells the decoder how to read the symbol
- Data and error correction codewords — the actual payload plus redundancy
You do not need to memorize the geometry. What matters is: the payload is text (or bytes interpreted as text) that your phone app or scanner library decodes.
What gets encoded
Common developer-facing payloads:
https://example.com/path— opens a browser- Plain text — shows or copies a message
WIFI:T:WPA;S:Network;P:password;;— Wi-Fi join hint on many mobile OSes
The QR symbol is just a transport layer. If the payload is wrong, the scan succeeds but the outcome is wrong.
Local generation vs hosted services
Many online generators upload your content or wrap URLs with tracking redirects. A local generator keeps the payload on your machine—useful for internal URLs, staging links, or Wi-Fi strings you do not want logged elsewhere.
Key takeaway
Think of a QR code as a printable keyboard shortcut to a string. The next lessons cover redundancy (error correction), payload formats, and how to verify scans before you publish.