What Is a QR Code? How QR Codes Work + Free Generator
Learn what a QR code is, how scanning works, static vs dynamic codes, print sizes, safety tips, and how to create a free QR code.
Quick answer
A QR code is a two-dimensional barcode that stores data in a square pattern of dark and light modules. When scanned with a phone camera, it can open a link, display text, start an email or call, or connect a device to a Wi-Fi network. This guide explains how QR codes work, how large they should be printed, common failure points, and how to create one for free.
What is a QR code?
A QR code, short for Quick Response code, is a two-dimensional barcode. Instead of the single row of bars in a traditional barcode, it stores data in a square grid of dark and light modules, which lets it hold far more information in a smaller space.
Three large square markers in the corners tell a scanner where the code is and how it is rotated, so it can be read at an angle or upside down. The rest of the grid contains your data and redundant correction data that helps the scanner recover from smudges, glare, or slight damage.
QR codes were developed in Japan in 1994 for tracking parts in manufacturing. They became popular with smartphones because a camera can read them without a dedicated scanner, and today they appear on menus, posters, packaging, business cards, and Wi-Fi signs.
How does a QR code work?
When you create a code, software converts your data into binary, splits it into codewords, and adds error correction data. The result is arranged into a matrix pattern along with timing and alignment markers that help scanners line up the grid.
A phone camera captures the pattern and the app decodes it back into the original value, such as a URL. Decoding happens on the device. Opening the link then requires an internet connection, but the code itself does not.
This is also why a printed code never needs to be connected to anything: everything it carries is inside the pattern you see.
Static vs dynamic QR codes
QR codes come in two broad types, and the difference matters most after the code is printed.
- • Static: your data is encoded directly into the pattern. It cannot be edited, tracked, or deactivated, and it never expires or depends on a third party.
- • Dynamic: the pattern contains a short link to a redirect service. You can change the destination and see scan statistics, but the code stops working if the service is discontinued or an account lapses.
- • Static is the better default for permanent signs, packaging, and Wi-Fi cards, where you control the destination yourself.
- • Dynamic makes sense when the destination will change regularly, such as a campaign landing page or a menu that is updated often.
What can you put in a QR code?
A QR code can carry almost any short text value. Scanning apps recognize some formats automatically and offer an action, such as opening a link or joining a network.
- • A website URL that opens in the phone's browser.
- • Plain text such as a serial number, note, or instructions.
- • An email address that opens a new draft message.
- • A phone number that opens the dialer.
- • A Wi-Fi network, including the security type and whether the network is hidden, so a phone can join without typing the password.
- • Other formats exist too, such as vCards and SMS links, but they are not part of the five types offered by this generator.
How much data fits in a QR code?
Capacity depends on the code version, the character type, and the error correction level. At the largest version with minimal correction, a QR code can hold up to 7,089 numeric characters or roughly 4,296 alphanumeric characters. Versions used in everyday printed codes hold far less.
More data means denser modules, and denser modules are harder to scan from a distance or under poor lighting. A short link always produces a simpler pattern than a long tracking URL, which is a practical reason to shorten links before encoding them.
Choosing the right QR code size
The correct print size depends on how far away people will scan from. As a rule of thumb, the code should be about one tenth of the expected scanning distance, and it should never be so small that individual modules blur together when printed.
- • Business cards and labels: around 2 cm square.
- • Flyers, menus, and leaflets: 3–4 cm square.
- • Posters, storefronts, and signs: 10 cm or larger.
- • Scanned from about 30 cm away: roughly 3 cm is a safe starting point.
Contrast and color tips
Scanners rely on contrast between dark modules and the background. Dark modules on a light background are the most compatible combination. Light modules on a dark background work in some apps but fail in others, so avoid inverting colors for anything important.
Keep the surrounding area clear. A code surrounded by busy artwork or tight crop marks can be missed by the scanner. Leave empty space around the code when placing it in a design.
Colored modules can look good, but check that the two colors still differ strongly when converted to grayscale. Low-contrast pairs such as orange on yellow may look distinct to you and blend together for a camera.
Where QR codes fail in the real world
Most failed scans are caused by printing and placement rather than the code itself. Before ordering a large print run, test a single printed sample with at least two different phones.
- • The code is printed too small for the scanning distance.
- • Low contrast between the code and the background, or a busy background behind it.
- • A logo, sticker, or design element covers the center of the code and destroys too many modules.
- • The printed surface is glossy and reflects light directly into the camera.
- • The destination link is long, producing a dense pattern that breaks down at small sizes.
- • The link is broken or the destination page has moved since the code was printed.
QR code safety
A QR code is just a link in visual form, so the usual caution about unknown links applies. Your phone shows the destination before you continue in most scanner apps, so take a second to read it.
- • Watch for stickers placed over legitimate codes in public places; scammers use these to redirect people to lookalike sites.
- • Check the domain before typing any password, payment detail, or personal information.
- • Be cautious with codes in unsolicited mail, emails, or messages that claim to be from a bank or delivery company.
- • A Wi-Fi code exposes the network password to anyone who scans it, so treat printed network codes as public information.
- • Codes do not expire, but the pages they point to can disappear, so long-lived printed codes should point to addresses you control.
How to create a free QR code
The MyToolsBay QR Code Generator runs entirely in your browser. Nothing you type, including a Wi-Fi password, is uploaded to a server, and the finished image is saved straight to your device.
- • Step 1: Choose the code type: URL, text, email, phone number, or Wi-Fi.
- • Step 2: Enter the data. For Wi-Fi, add the network name, password, security type, and whether the network is hidden.
- • Step 3: Pick a size between 150 and 800 pixels and optionally set the module and background colors.
- • Step 4: Generate the code, then scan the preview with your own phone to confirm it works.
- • Step 5: Download a PNG for screens and quick use, or an SVG when the code will be printed and scaled.
QR code limitations
The generator creates static codes with a fixed, medium error correction level, which tolerates some damage but not a large logo over the center. There is no scan tracking, no redirect, and no way to change the destination after printing.
For a one-off sign, a menu, or a Wi-Fi card, that is usually exactly what you want: a code that keeps working without depending on an account. For campaigns that need analytics or frequent changes, a dynamic code from a dedicated service is the appropriate tool instead.
Frequently asked questions
- What does QR stand for?
- QR stands for Quick Response. The format was developed in Japan in 1994 as a faster, higher-capacity alternative to traditional barcodes. It is now an open standard that any phone camera or scanner app can read.
- Do I need an app to scan a QR code?
- Most modern iPhone and Android phones can scan QR codes directly from the built-in camera app. Older devices may require a dedicated scanner app. In either case, the code is decoded on the device itself.
- Do QR codes expire?
- A static QR code does not expire because the data is stored in the pattern itself. A dynamic QR code points to a redirect service, so it stops working if that service is shut down or the subscription lapses.
- Can I edit a QR code after printing it?
- Not if it is a static code. The encoded data is fixed in the pattern, so any change requires generating and printing a new code. Dynamic codes can have their destination changed because the printed code only points to a redirect.
- How much data can a QR code hold?
- At the largest sizes, a QR code can store up to 7,089 numeric characters or around 4,296 alphanumeric characters, though error correction reduces these limits. In practice, shorter values scan faster and more reliably at small print sizes.
- Can a QR code contain a Wi-Fi password?
- Yes. A Wi-Fi QR code includes the network name, security type, and password so a phone can join the network with one scan. Anyone who can see the code can read those details, so treat it like telling the password to whoever scans it.
- Are QR codes free to create?
- Static QR codes are free. You only need a generator, and the MyToolsBay QR Code Generator creates and downloads them in your browser at no cost. Paid services usually sell dynamic codes with tracking and editable destinations.
- Is it safe to scan any QR code?
- Not automatically. Check the destination on screen before entering any information, and be suspicious of stickers placed over existing codes in public places. Scammers can cover legitimate codes with their own to send people to a lookalike site.