How QR Codes Work and How to Create One That Scans Every Time

By Prakash Khajode · Last updated: 29 October 2026 · 4 min read

QR codes now sit on shop counters, bills, menus and posters. They look like random squares, but each one follows strict rules that make it easy for a phone camera to read. Understanding those rules also helps you make codes that scan on the first try.

What a QR code is

QR stands for Quick Response. It is a two-dimensional barcode that stores data in a grid of black and white squares called modules. It was invented in 1994 by Denso Wave, a Japanese company, to track car parts, and its design is an open standard that anyone can use.

A normal barcode holds a short number and reads in one direction. A QR code holds much more, and can be read from any angle. A large QR code can store up to 7,089 digits, 4,296 letters and numbers, or about 2,953 bytes of general text.

The parts of a code

Error correction

QR codes include redundant data using a method called Reed-Solomon error correction, so a code can still be read when part of it is dirty, scratched or covered. There are four levels:

LevelRecovers up toTypical use
Labout 7%Clean screens, short text
Mabout 15%General use
Qabout 25%Printed material
Habout 30%Rough surfaces, or a logo placed in the middle

Higher levels make the code denser, because they add more error data, so a longer message needs a bigger code at the same level.

Static and dynamic codes

A static code stores your content directly. It never expires, but you cannot change where it points once it is printed. A dynamic code stores a short redirect link that a service can later point somewhere else, which is useful for marketing, but it depends on that service staying online and often needs a paid plan. For a menu, a Wi-Fi password or a profile link that rarely changes, a static code is simple and reliable.

Making a code that scans reliably

Staying safe with QR codes

A QR code can hide a link as easily as a visible one, so criminals sometimes paste a fake code over a real one, a trick called quishing. Look at the address your phone shows before you open it. Be careful with codes that ask you to log in, make a payment, or install an app, especially if they are stickers on a public poster. With UPI payments, check the name of the payee before you confirm. If you use a code for your own business, check it regularly to make sure nobody has covered it.

What you can put in one

Common uses include a website address, plain text, a WhatsApp chat with a pre-filled message, a YouTube video, or a social media profile. Our QR Code Generator creates all of these, lets you pick the size and the colours, and runs entirely in your browser, so the data you enter is not uploaded anywhere.