What is a QR code, and how do static and dynamic codes differ?
Definition
A QR code is a square barcode a phone camera turns into a web address. A static code holds the final address and can never change; a dynamic code holds a short link that can be pointed at new content and counts scans.
Also called: Quick response code, Static QR code, Dynamic QR code
How does a QR code work?
A QR code stores text, usually a web address, as a grid of dark and light squares. A phone camera reads the pattern, decodes the text and offers to open the address. The three large squares in the corners tell the scanner where the code is and which way up it is, and built-in error correction lets it read a code that is slightly scratched or partly covered, which is why a small logo in the middle can still work.
What is the difference between a static and a dynamic QR code?
A static code holds the final address itself, so it can never change; a dynamic code holds a short link that a service forwards to the real destination.
Because a dynamic code passes through the service first, the service can count scans and you can point the code somewhere new without reprinting. It works much like a URL shortener. The trade-off is dependence: if the service stops forwarding, for example when a plan ends, every printed copy stops working at once. A static code keeps working as long as the address inside it does, but nothing counts the scans for you and you cannot change where it goes.
Do QR codes expire?
The code itself never expires, because the address is stored in its pattern. What stops working is the address behind it: a page that moves, a file that is deleted, a link that is renamed or a dynamic code whose forwarding is switched off. That is link rot on paper, and it costs more than a dead link in an email, because you cannot edit a flyer that is already printed.
How do you print a QR code that scans well?
Print it dark on a light background, keep the white border around it and make it big enough for the distance people will scan from.
- Scan a test print with your own phone before you print a batch.
- Do not stretch the image out of square.
- Add a few words next to it, such as "Scan for the menu", so people know what they will get.
| Static | Dynamic | |
|---|---|---|
| What it holds | The final address | A short link that forwards |
| Change where it goes | No | Yes |
| Counts scans | No | Yes |
| Stops working when | The address inside dies | The address dies or forwarding stops |
QR code: common questions
Can you change a QR code after printing it?
Not a static one, because the address is part of the pattern. A dynamic code, or a code that points at a link whose file you can replace, lets you change what people see without reprinting.
Can you count how many people scanned a QR code?
Only if the scan passes through something that counts it, such as a dynamic code service or a link with a scan marker. A static code to a plain web address shows up only in that website's own visits, mixed in with everyone else.
Why is my QR code not scanning?
The usual causes are low contrast, a missing white border, a code too small for the distance, or a stretched image. Print dark on light, keep the border and test with your own phone first.
Does scanning a QR code need the internet?
Reading the code does not, because the phone decodes it with the camera. Opening the web address inside it does.
Is it safe to scan any QR code?
Treat it like a link from a stranger. Check the address your phone shows before you open it, and be wary of a sticker placed over the original code on a poster or a sign.
Related terms
- Link analyticsLink analytics is the record of what happened after you shared a link: how many opens, when, from which country and device, how long people stayed and how far they read. Good analytics leave out bots and link-preview fetches.
- Link rotLink rot is when links stop working over time: a transfer link expires, a file is deleted or moved, or a page changes its address. Anyone who clicks the old link gets an error instead of the file.
- URL shortenerA URL shortener is a service that turns a long web address into a short one that redirects to the original page. It stores only the address, not the content, so it leads nowhere once the original page moves or is deleted.
- Custom link nameA custom link name is the end of a link's address that you pick yourself, such as my-resume instead of a random code. It is also called a vanity URL or custom slug, and it makes a link easier to read and type.
- Shareable linkA shareable link is a web address that opens a file for anyone who has it, without the file traveling as an email attachment. You send a few characters instead of the bytes, and you can usually change or turn off the link later.
Go deeper
Updated