Create QRCreate QR
    Home
    Pricing
    About
    What's New
    All guides
    Learning guideBeginner

    How QR Codes Work

    A friendly tour of what those black-and-white squares actually do, how phones read them in milliseconds, and why they can survive a coffee stain.

    8 min read5 sectionsBeginner
    On this page
    • 01What’s a QR code, really?
    • 02The anatomy of a QR code
    • 03How data is squeezed in
    • 04Why it still scans with a coffee stain on it
    • 05What happens when you scan
    Try the generator
    Jump to
    01What’s a QR code, really?02The anatomy of a QR code03How data is squeezed in04Why it still scans with a coffee stain on it05What happens when you scan
    01

    🧩What’s a QR code, really?

    A QR ("Quick Response") code is a 2D barcode invented in 1994 by Denso Wave to track car parts on factory floors. Unlike a regular barcode that only stores ~20 characters in one direction, a QR can pack up to 7,089 numeric or 4,296 alphanumeric characters into a square pattern — enough to fit a URL, a contact card, a payment request, or a short message.

    02

    🔎The anatomy of a QR code

    Every QR code has a few telltale pieces. The three big squares in the corners are Position Detection Patterns — they tell the scanner "this is a QR code, here’s how it’s oriented". Smaller squares (alignment patterns) help correct for distortion if the code is photographed at an angle. The alternating black/white timing pattern is the ruler. The format area says how strong the error correction is. The rest is your data, wrapped in a white "quiet zone" so cameras can see where the code ends.

    • Position patterns: the three big corner squares
    • Alignment patterns: the small squares for distortion correction
    • Timing patterns: the ruler that tells the scanner the module size
    • Format area: stores error-correction level + masking pattern
    • Quiet zone: the white margin (at least 4 modules wide)
    03

    ⚙️How data is squeezed in

    The encoder converts your input into binary, chooses the most efficient mode (numeric, alphanumeric, byte, or kanji), wraps it in Reed-Solomon error correction codes, lays it out in the matrix, then applies one of eight mask patterns to keep the visual contrast balanced. All that happens in a few milliseconds in your browser — no internet required.

    04

    ☕Why it still scans with a coffee stain on it

    Reed-Solomon error correction is the magic. The encoder bakes redundant data into the pattern so a scanner can recover even when chunks are damaged or obscured. There are four levels you can pick from — L (7% loss tolerance), M (15%), Q (25%), and H (30%). That’s why you can put a logo in the middle without breaking anything: the error-correction codes fill the gap.

    • L = Low — fastest scan, lowest tolerance (7%)
    • M = Medium — the sweet spot for most use cases (15%)
    • Q = Quartile — good for slightly damaged codes (25%)
    • H = High — required when you embed a logo (30%)
    05

    📱What happens when you scan

    The camera captures a frame, the scanner finds the three position patterns, calculates orientation, reads the format info to learn the EC level, reverses the mask, applies error correction to fix any damaged modules, then decodes the binary back into text. If the text starts with "http://", "wifi:", "mailto:", or another known scheme, your phone offers an action. All of that happens in roughly 30–70 ms.

    Key takeaways
    • A bigger QR code = easier scanning. Rule of thumb: scan distance ≈ 10× code width
    • Always leave a white quiet zone (4 modules) around the code
    • Use error-correction H whenever you add a logo
    • Dark foreground on light background scans 3× faster than the reverse
    • QR codes don’t need internet — they encode data directly

    Now that you know how the pattern works, designing one that actually scans gets a lot easier.

    Try it: create a QRMore guides
    Keep going

    More guides

    View all
    QR Code Best Practices
    9 min read

    Real-world rules for QR codes that scan first time, every time — from size and contrast to logo placement and testing.

    Read the guide
    Static vs Dynamic QR Codes
    6 min read

    Which kind do you actually need? A practical breakdown of the differences, costs, and when each one wins.

    Read the guide
    Adding Logos to QR Codes
    6 min read

    Center logos, brand colors, gradients — here’s how to make a QR look like a piece of your brand without breaking the scan.

    Read the guide
    Create QR

    Premium QR codes that actually convert — editable, trackable, brand-grade.

    Operated by
    BellSoft India (OPC) Private Limited
    • 1471, Rani Bagh, Delhi 110034, India
    • [email protected]
    • +91 84471 80170

    Product

    • QR Code Generator
    • QR with Logo
    • Free, No Signup
    • Google Review QR

    Resources

    • Blog
    • Case Studies
    • Pricing
    • Why we're free ❤️
    • Help Center
    • About
    • Learn

    QR Code Types

    • URL
    • WiFi
    • vCard
    • UPI
    • WhatsApp
    View all types

    Solutions

    • Restaurants
    • Marketing
    • Retail
    • Events
    • Education
    All industries

    Popular Cities

    • Mumbai
    • Delhi
    • Kolkata
    • Bangalore
    • Chennai
    All cities

    Popular Uses

    • Restaurant Menu
    • WiFi
    • Google Review
    • Wedding Invite
    • Real Estate
    All use cases
    © 2026 Create QR·Made with ♥ for the classy QR maker
    PrivacyTermsRefundsDeliveryContact