ArbindBuilds LogoArbindBuilds
Blog
CheatsheetsVideosProjectsLinksAbout
Hire Me

ArbindBuilds

Build. Design. Repeat.

© 2026 ArbindBuilds.
All rights reserved.

Site Map

  • Home
  • Blog
  • Projects
  • About
  • Uses

Content

  • Cheatsheets
  • AI Tools
  • AI Prompts
  • Links

Products

  • Speakify
  • Gumroad Store
  • GitHub
  • Twitter / X

Made with care in Assam, India.

  1. Home/
  2. Videos/
  3. What ACTUALLY Happens When You Scan a QR Code? 📱⚡ | ArbindBuilds | Explains

What ACTUALLY Happens When You Scan a QR Code? 📱⚡ | ArbindBuilds | Explains

You scan a QR code in seconds. But what actually happens inside your phone before that link appears?

It isn't simply “taking a picture.”

Your phone captures the image, detects the QR code's finder patterns, figures out its orientation and grid, removes the masking pattern, extracts the encoded bits, and uses Reed-Solomon error correction to recover data that may be partially damaged.

And here's the surprising part:

The QR code itself doesn't need an internet connection to be decoded.

The decoding happens locally on your device. Only after the payload is decoded does your phone need the internet to open an online URL.

In this video, we break down the process step by step:

⏱️ TIMESTAMPS

00:00 What really happens when you scan a QR code? 00:07 1. Your camera captures the QR code 00:16 2. Finding the three “eyes” 00:26 3. How the phone finds the QR grid 00:35 4. The hidden XOR mask 00:44 5. Reed-Solomon error correction 00:55 6. Turning patterns into bits 01:04 7. Decoding the actual payload 01:12 Why the QR code itself doesn't need the internet

🧠 UNDER THE HOOD

  1. Image capture Your camera captures the QR code as an image. The decoder then looks for the high-contrast structures that make the code recognizable.

  2. Finder patterns Those three large squares in the corners aren't decoration. They help the decoder determine the QR code's position, orientation and scale.

  3. Timing patterns Alternating black and white modules help the decoder determine the spacing of the QR code's grid.

  4. Masking QR codes use mathematical masking patterns to avoid problematic visual patterns. The decoder reverses the selected mask to recover the original data pattern.

  5. Error correction QR codes use Reed-Solomon error correction. Depending on the selected error-correction level, the code can recover from a significant amount of damage or obstruction.

  6. Bitstream decoding The modules are converted into bits and interpreted according to the QR code's encoding format.

  7. Payload Finally, your phone gets the actual payload, such as a URL, text, contact information, Wi-Fi credentials or another piece of data.

Only then does the next step happen: if that payload is a URL, your phone can connect to the internet and open it.

So the next time you scan a QR code, remember:

You're not just taking a picture. Your phone is decoding a small mathematical data structure in real time.

💬 QUESTION: Have you ever scanned a QR code that was scratched, folded or partially covered and somehow it still worked?

What piece of everyday technology should we break down next?

🔔 Subscribe to ArbindBuilds for short, visual explanations of the technology and software systems hiding underneath everyday things.

#QRCode #HowQRCodeWorks #ComputerScience #TechExplained #Programming #Algorithms #ArbindBuilds

how qr codes workqr code explainedqr code scanning technologyhow smartphones read qr codeswhat is a qr codereed solomon error correctionqr code algorithmqr code xor maskqr finder patternsbitstream decodingqr code timing patternserror correction algorithmswhat happens when you scan a qr codedo qr codes need the internet to workhow error correction works in qr codeshow phones decode qr codes locallyreading damaged qr codescomputer science behind everyday technologyhow tech worksarbindbuildstech educationalgorithms explainedsoftware engineering concepts
Watch on YouTube →
MORE VIDEOS
How Databases Survive Going Viral | Arbind Builds | ExplainsWatch →What Actually Travels When You Tap to Pay?Watch →Why Netflix Loads Faster Than a Simple Website 🤯Watch →