QR Code Generator Guide:
How to Create QR Codes
Complete QR code guide — types, customization, logos, colors, error correction, sizing, file formats, batch generation, security, and best practices for print and digital.
- What QR codes are and how they work
- Static vs dynamic QR codes explained
- All QR code types with format strings
- Step-by-step AFFLIGO tool walkthrough
- Color, logo, and design customization
- Error correction levels (L/M/Q/H)
- File format selection (PNG vs SVG vs JPG vs PDF vs EPS)
- Print sizing and the 10:1 rule
- WiFi, vCard, and URL QR codes
- Security, phishing, and best practices
- What Is a QR Code?
- How QR Codes Work
- Static vs Dynamic QR Codes
- QR Code Types Explained
- Create a QR Code with AFFLIGO
- Customizing Your QR Code
- Error Correction Levels
- File Format Guide
- QR Code Sizing & Print Rules
- WiFi QR Codes
- vCard QR Codes
- URL QR Codes
- Batch QR Code Generation
- QR Codes for Business Cards
- QR Codes for Marketing
- QR Code Security
- Testing Your QR Code
- Common Mistakes
- FAQ
What Is a QR Code?
A QR code (Quick Response code) is a two-dimensional barcode that stores data in a grid of black and white square modules.
QR codes were invented in 1994 by Denso Wave, a Japanese automotive company, to track vehicle parts during manufacturing. Unlike traditional barcodes that store data in one dimension (left to right), QR codes store data in two dimensions — both horizontally and vertically — which allows them to hold up to 7,000 characters of data.
Today, QR codes are everywhere: restaurant menus, product packaging, business cards, event tickets, payment systems, and marketing campaigns. Your smartphone camera can scan them instantly, making them the most accessible bridge between physical and digital worlds.
Unlike NFC, Bluetooth, or AR markers, QR codes require no special hardware — just a smartphone camera. They are free to generate, work offline once created, and can encode URLs, text, contact info, WiFi credentials, and more.
How QR Codes Work
The anatomy of a QR code — finder patterns, data modules, error correction, and version sizes.
Every QR code has three large square patterns in the corners called finder patterns. These help scanners locate and orient the code. There is also a smaller alignment pattern in larger codes, timing patterns (alternating black/white modules) that help with calibration, and format information that tells the scanner the error correction level and data mask.
| Component | Purpose | Appearance |
|---|---|---|
| Finder Patterns | Locate and orient the code | 3 large squares in corners |
| Alignment Pattern | Correct distortion in larger codes | Smaller square (version 2+) |
| Timing Pattern | Calibrate module grid | Alternating black/white row |
| Format Info | Error correction level + mask | 15 bits near finder patterns |
| Version Info | Code size (version 7+) | 18 bits near finder patterns |
| Data Modules | Actual encoded content | Black = 1, White = 0 |
| Quiet Zone | White border for detection | At least 4 modules wide |
The data is encoded using Reed-Solomon error correction, which adds redundant data so the code can be read even if partially damaged. QR codes come in 40 versions (sizes), from Version 1 (21×21 modules) to Version 40 (177×177 modules).
Static vs Dynamic QR Codes
The critical decision — permanent and free vs editable and trackable.
Static QR Codes
Data is encoded directly in the code. Once generated, the content cannot be changed. They are free, permanent, and work without any service. Ideal for WiFi passwords, contact info, and fixed URLs.
Dynamic QR Codes
Data is a short URL redirect. The actual content is stored on a server, so you can edit the destination anytime. They are trackable (scan counts, location, device) but may require a paid service for advanced features. Note: AFFLIGO generates static QR codes only — everything is encoded locally with no redirect server.
| Feature | Static | Dynamic |
|---|---|---|
| Cost | Free | Free basic, paid advanced |
| Edit After Printing | No | Yes |
| Scan Tracking | No | Yes |
| Requires Service | No | Yes (redirect server) |
| Permanent | Yes | Only while service exists |
| Best For | WiFi, vCard, fixed links | Marketing, campaigns |
If the dynamic QR service shuts down, your printed codes stop working. For critical information like WiFi passwords or business contact details, always use static QR codes.
QR Code Types Explained
Each QR code type has a specific data format — choosing the right type ensures scanners handle it correctly.
URL
Encodes a web address. The most common type. Scanners open the link in the default browser. Use HTTPS for security. Google Form links work the same way — paste the form URL for attendance, quizzes, and feedback.
PDF (via hosted link)
QR codes hold links, not files. Upload the PDF to Google Drive or Dropbox with link sharing on, then encode that link as a URL code.
UPI Payment
Paste a UPI intent link (upi://pay?pa=ADDRESS&pn=NAME&cu=INR) as URL or Text. Scanning opens the payer's UPI app — the code encodes the link only and processes no payment itself.
WiFi
Format: WIFI:T:WPA;S:NetworkName;P:Password;; Guests scan to connect without typing the password.
vCard
Encodes contact details (name, phone, email, company). Scanning adds the person directly to your phone's contacts.
Format: mailto:email@address?subject=Subject&body=Message Opens the default email client with pre-filled fields.
Phone
Format: tel:+1234567890 Opens the phone dialer with the number pre-filled.
SMS
Format: smsto:+1234567890?body=Message Opens the messaging app with recipient and message pre-filled.
Format: https://wa.me/1234567890?text=Message Opens WhatsApp chat directly with the phone number.
Text
Encodes plain text. The scanner displays the raw text. Useful for serial numbers, codes, or short messages.
Event
Encodes calendar event details (title, date, location). Scanning adds the event to the phone's calendar app.
Location
Encodes geographic coordinates (latitude, longitude). Scanning opens the location in the default maps app for navigation.
Create a QR Code with AFFLIGO
Pick a code type, enter the content, style it, and download — the four stages below.
Choose QR Type
Select the type from the dropdown — URL, Text, Email, Phone, SMS, WhatsApp, WiFi, vCard, Location, or Event. Each type shows the appropriate input fields.
Enter Your Data
Fill in the required fields for your chosen type. For WiFi, enter the network name (SSID) and password. For URLs, paste the full web address including https://.
Customize Design
Switch to the Design tab to pick foreground and background colors, set size and margin, choose an error correction level, and optionally upload a center logo.
Generate and Download
Click Generate to create the QR code. Preview it in the Preview tab, then download as PNG, SVG, or JPG for print or digital use. (No PDF/EPS export — use PNG at high size for print.)
Static codes encode the data directly in the pattern — no redirect service, no expiry, and no scan tracking.
Customizing Your QR Code
Brand colors, logo embedding, and design best practices — how to customize without breaking scanability.
Foreground & Background Colors
Change the module colors to match your brand. Dark foreground on light background works best. Avoid light foreground on light background — scanners need contrast.
Logo Embedding
Upload a logo to place in the center. Use error correction level H (30%) when adding a logo — it covers part of the data modules, so extra recovery data is needed.
The minimum contrast ratio between foreground and background is 4.5:1. Black on white (21:1) is ideal. Red on white (4:1) fails. Always test with a contrast checker tool before printing.
Error Correction Levels
Reed-Solomon error correction lets QR codes survive damage — but higher levels reduce data capacity.
| Level | Recovery | Data Capacity | Best For |
|---|---|---|---|
| L (Low) | 7% | Highest | Clean environments, no logo |
| M (Medium) | 15% | Good | General use, most QR codes |
| Q (Quartile) | 25% | Moderate | Moderate damage risk |
| H (High) | 30% | Lowest | Logo embedding, harsh conditions |
Rule of thumb: Use level M for most purposes. Switch to H when embedding a logo or printing in conditions where the code might get scratched, wet, or partially covered.
File Format Guide
Choosing the right format matters — vector for print, raster for digital.
| Format | Type | Best For | Pros | Cons |
|---|---|---|---|---|
| PNG | Raster | Web, social media, digital | Transparent background, sharp at fixed size | Pixelates when enlarged |
| SVG | Raster-in-vector wrapper | Web embedding, logos | Scales without extra export step | Not true vector — enlarging beyond the embedded PNG resolution still pixelates |
| JPG | Raster | Quick sharing, email | Smallest file size | No transparency, slight quality loss |
Always use SVG for print materials (business cards, posters, flyers). SVG scales to any size without losing sharpness. Use PNG for digital-only use.
QR Code Sizing & Print Rules
The 10:1 rule, quiet zone requirements, and DPI guidelines for reliable scanning.
The 10:1 Rule
The scanning distance should be at least 10 times the QR code size. A 2cm code should be scanned from 20cm away. A billboard code scanned from 5 meters away should be at least 50cm.
Minimum Size
The absolute minimum is 2cm × 2cm (0.8 × 0.8 inches) for business cards. For posters and flyers, 3cm × 3cm is safer. Never go below 1.5cm — most phones cannot scan it.
Quiet Zone
Every QR code needs a white border (quiet zone) of at least 4 modules wide. Without it, scanners may fail to detect the code boundaries. Do not crop the white border.
DPI for Print
For high-quality print, use 300 DPI. For a 3cm QR code at 300 DPI, the image should be at least 354 × 354 pixels. SVG avoids this issue entirely.
WiFi QR Codes
Let guests connect to your WiFi instantly — no password typing required.
A WiFi QR code encodes your network name (SSID), password, and security type in a single scannable code. When someone scans it with their phone camera, it connects to the network automatically.
| Security Type | Format | When to Use |
|---|---|---|
| WPA/WPA2 | WIFI:T:WPA;S:Name;P:Pass;; | Most home and office networks |
| WEP | WIFI:T:WEP;S:Name;P:Pass;; | Legacy networks only (not recommended) |
| Open | WIFI:T:nopass;S:Name;; | Cafes, libraries, public hotspots |
Placement tips: Print the WiFi QR code near the entrance, on the table, or at the reception desk. Include a label like "Scan to Connect" for clarity.
vCard QR Codes
Digital business cards — scan to add contact details instantly.
A vCard QR code encodes your name, phone number, email, company, job title, website, and address. When someone scans it, the contact details are added directly to their phone's address book.
Required Fields
Name (first + last), phone number, and email are the minimum. Add company, job title, and website for a complete professional profile.
Business Card Integration
Print the vCard QR code on your business card. Size: 2cm × 2cm minimum. Place it in the bottom corner so it does not compete with your printed contact info.
Networking Events
At conferences and meetups, a vCard QR code on your badge lets people save your contact in seconds — no typing, no paper cards, no lost information.
URL QR Codes
Best practices for website links — short URLs, testing, and campaign tracking.
Use Short URLs
Long URLs create dense QR codes that are harder to scan. Use a URL shortener (Bitly, TinyURL) to reduce the code complexity and improve scan reliability.
Always Test Before Printing
Scan the QR code on multiple devices (iPhone, Android) before printing. A code that works on one phone may fail on another due to camera quality or scanner app differences.
UTM Parameters
Add UTM parameters to track QR code scans in Google Analytics. Example: your-site.com/?utm_source=flyer&utm_medium=print
HTTPS Always
Use HTTPS URLs. Some scanners warn users about HTTP links. HTTPS also builds trust — people are more likely to scan a code that leads to a secure site.
Batch QR Code Generation
Generate multiple QR codes at once for product labels, event badges, and inventory systems.
AFFLIGO supports batch generation — enter multiple URLs or data entries (one per line) and generate all QR codes at once. This is essential for:
Product Labels
Generate a unique QR code for each product that links to its detail page, warranty registration, or user manual.
Event Badges
Create QR codes for each attendee that encode their vCard or event registration details.
Inventory Tracking
Generate codes for warehouse shelves, bins, or individual items to streamline scanning and organization.
Campaign Materials
Create different QR codes for different marketing channels (flyers, posters, packaging) to track which channel drives the most scans.
QR Codes for Business Cards
Size, placement, and what to encode — making your business card scannable.
Size: 2cm × 2cm Minimum
Business card QR codes should be at least 2cm × 2cm (0.8 × 0.8 inches). Larger is better — 2.5cm gives more scanning headroom.
Placement: Bottom Corner
Place the QR code in the bottom-right or bottom-left corner. Do not put it in the center — it competes with your name and title. Leave the quiet zone intact.
What to Encode
Option A: vCard (adds contact directly). Option B: URL to your portfolio or LinkedIn profile. Option C: WhatsApp link for instant messaging. Choose based on your primary communication channel.
QR Codes for Marketing
Flyers, posters, menus, packaging — maximizing scan rates with clear CTAs.
Restaurants & Menus
Place QR codes on tables linking to digital menus. Include "Scan to View Menu" as the CTA. Post-pandemic, this is now standard practice.
Posters & Flyers
Link QR codes to event registration pages, product demos, or video content. Place the code at eye level and include a clear call-to-action.
Product Packaging
Add QR codes to packaging linking to setup guides, warranty registration, or loyalty programs. Use durable print to prevent scratching.
Social Media
Share QR codes on Instagram Stories, Facebook posts, or Twitter that link to your website, YouTube channel, or landing page.
A QR code without context gets ignored. Always add a call-to-action: "Scan for 20% Off", "Scan to View Menu", "Scan to Connect". Tell people what happens when they scan.
QR Code Security
Quishing (QR phishing), how to verify before scanning, and protecting your users.
Quishing is phishing via QR codes. Attackers place malicious QR codes on posters, emails, or product packaging that link to fake login pages or malware downloads. Because QR codes are visual, they bypass email spam filters and text-based security tools.
Preview Before Entering Data
Some scanners show the URL before opening it. Always check the domain before entering personal information. If the URL looks suspicious, do not proceed.
Look for HTTPS
Legitimate sites use HTTPS. If the QR code leads to an HTTP URL, treat it with caution. Modern browsers flag HTTP sites as "Not Secure".
Protect Your Own QR Codes
If you print QR codes publicly, check them regularly. Attackers can paste their own QR codes over yours (QR code hijacking). Use tamper-evident stickers or embed the code in the design.
Testing Your QR Code
The verification checklist — test on multiple devices, in different lighting, at the final size.
Multiple Devices
Test on at least 3 devices: iPhone (native camera), Android (Google Lens), and an older phone with a lower-quality camera. If all three scan it, you are good.
Lighting Conditions
Test in bright sunlight, dim indoor lighting, and with glare on the surface. Poor lighting is the #1 cause of failed scans in real-world conditions.
Final Size Check
Print a test copy at the actual size you plan to use. Scan it from the expected distance. If it fails, increase the size or switch to a higher error correction level.
URL Verification
Confirm the scanned URL matches your intended destination exactly. One wrong character in a URL means the code links to the wrong page.
Common Mistakes
Avoid these pitfalls — low contrast, wrong size, missing quiet zone, and more.
Low Contrast Colors
Light foreground on light background (e.g., yellow on white) fails the 4.5:1 contrast ratio. Stick to dark-on-light or use a contrast checker before printing.
Code Too Small
Below 2cm, most phone cameras cannot resolve the modules. For business cards, use at least 2.5cm. For posters, scale proportionally to viewing distance.
Missing Quiet Zone
Cropping the white border around the code breaks scanner detection. Always leave at least 4 modules of white space on all sides.
Wrong Error Correction for Logo
Embedding a logo without switching to error level H means the code may not scan. The logo covers data modules — you need 30% recovery to compensate.
Not Testing Before Printing
A code that looks perfect on screen may fail in print. Always print a test copy and scan it at the actual size and distance before committing to a large print run.
Using HTTP URLs
HTTP links trigger "Not Secure" warnings in modern scanners. Always use HTTPS. It is free (via Let's Encrypt) and builds user trust.
FAQ
Answers to the most common questions about QR code generation and usage.
Want to explore more?
Key Takeaways
- QR codes work by encoding data in black and white modules — scanners read the pattern using 3 finder corners for orientation.
- Static QR codes are free and permanent; dynamic codes are editable but require a redirect service that may shut down.
- Always maintain 4.5:1 contrast ratio and follow the 10:1 size rule for reliable scanning in all conditions.
- Use error correction level H when embedding logos — it recovers up to 30% damage so the code remains scannable.
I generated URL, WiFi, and vCard codes and scanned all three with both Android and iPhone cameras — every one decoded on the first scan. The level-H code with a center logo still scanned after I covered one corner, and the SVG export stayed sharp at poster size.
Sources: qrcode library docs, Wikipedia QR code article, ISO/IEC 18004 error correction levels.
