Web & Network guide

QR Codes Explained — How They Work & How to Make Them

The QR code turned thirty in 2024, and its victory was never technological — it was a pandemic-era habit change that stuck. Menus, payments, tickets, Wi-Fi sharing, boardroom slides: a square of black-and-white noise became the shortest bridge between the physical and digital worlds. This guide covers how the pattern actually encodes data, why a damaged code still scans, and the practical craft of generating codes people can actually use.

7 min readUpdated 2026-09-14100% free tool
📱 QR Code GeneratorCompletely free, no sign-up, runs in your browser.
Open QR Code Generator

What is actually in the pattern

A QR code is a grid of modules — black and white squares — where each module is one bit: dark = 1, light = 0. Three corner squares (the finder patterns) tell the scanner where the code is and how it is oriented, at any rotation; a smaller fourth square aligns large codes. Between the landmarks, data modules carry your payload — URL, text, Wi-Fi credentials, a contact card — encoded with a Reed–Solomon error-correction layer wrapped around it.

Capacity scales with version — the grid size. Version 1 is 21×21 modules and holds a few dozen characters; version 40 is 177×177 and holds kilobytes. The trade-off is physical: more data means denser modules, which need to print larger to stay scannable.

Error correction — the superpower

Reed–Solomon coding lets a QR code lose up to 30% of its modules and still decode perfectly (at the highest correction level, H). That is what makes QR codes survive scratched labels, torn posters, coffee rings and — famously — having a logo stamped in the middle. The correction levels are L (7% recoverable), M (15%), Q (25%) and H (30%).

Choosing an error-correction level
LevelRecoversUse when…
L7%Clean digital display, maximum data in few modules
M15%Everyday default — printed posters, labels
Q25%Outdoor, industrial, anything that gets scuffed
H30%Embedding a logo in the centre, harsh conditions

Using LND AI QR Code Generator

  1. Open the toolGo to namansoni.in/qr-generator — completely free, no sign-up, no credits, generation runs in your browser.
  2. Choose payload typePick URL or text mode depending on what you are encoding.
  3. Enter your contentFor URLs, keep them short where you can — shorter payloads mean sparser, easier-to-scan codes.
  4. GenerateThe code renders instantly with appropriate structure and error correction.
  5. Download and testSave the image, place it in your design, and scan it once from a realistic distance before printing.

Frequently asked questions

How do QR codes work?

A QR code is a grid of modules, each encoding one bit — dark for 1, light for 0. Three large corner squares (finder patterns) let a scanner locate and orient the code at any rotation, alignment squares square up larger grids, and the remaining modules carry your payload wrapped in Reed–Solomon error correction so partial damage does not destroy the data. Capacity scales from ~dozens of characters at 21×21 modules to kilobytes at 177×177.

Can a damaged QR code still scan?

Yes — that is the error-correction layer’s job. At level H a code can lose up to 30% of its modules and still decode; everyday level M recovers 15%. This is why scratched labels still scan and why logos can sit in the middle of codes at high correction levels. Beyond the recoverable fraction, the code fails rather than misreading.

How big should a printed QR code be?

Keep individual modules at least 0.3 mm, which puts a typical URL code at 2×2 cm minimum on labels and cards. For distance scanning, the code width should be roughly one-tenth of the scan distance — a poster scanned from 5 m wants a ~50 cm code. Always keep a white quiet zone around it and test the actual print before mass production.

Why does my QR code not scan?

The usual suspects, in order: too small or too far away, insufficient contrast (including white-on-black inverted codes), a missing quiet zone — the white border scanners use to find the pattern — or blurring from print texture and photography. If the payload is very long, the modules may simply be too dense for the printed size: shorten the URL or enlarge the code.

Do QR codes expire?

Codes that encode your content directly — as namansoni.in/qr-generator produces — never expire, because the data lives inside the pattern itself. Codes that point through a redirect service’s domain "expire" whenever that service shuts down or paywalls your account. For anything printed, direct codes are the only sane choice.

What can I put in a QR code?

Any text payload: URLs (the most common), plain text, Wi-Fi network credentials, contact details, payment identifiers. The shorter the payload, the sparser and more scannable the code — which is why URL shorteners and clean link structures pair well with QR.