📖 GUIDE — AUGUST 2026

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.

100% Private Free Forever Batch Mode
Written by Karan Kumar 19 min read August 10, 2026
In This Guide
  • 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

01What 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.

Why QR Codes Dominated

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.

02How 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.

ComponentPurposeAppearance
Finder PatternsLocate and orient the code3 large squares in corners
Alignment PatternCorrect distortion in larger codesSmaller square (version 2+)
Timing PatternCalibrate module gridAlternating black/white row
Format InfoError correction level + mask15 bits near finder patterns
Version InfoCode size (version 7+)18 bits near finder patterns
Data ModulesActual encoded contentBlack = 1, White = 0
Quiet ZoneWhite border for detectionAt 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).

03Static 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.

FeatureStaticDynamic
CostFreeFree basic, paid advanced
Edit After PrintingNoYes
Scan TrackingNoYes
Requires ServiceNoYes (redirect server)
PermanentYesOnly while service exists
Best ForWiFi, vCard, fixed linksMarketing, campaigns
Dynamic QR Risk

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.

04QR 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.

Email

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.

WhatsApp

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.

05Create a QR Code with AFFLIGO

Pick a code type, enter the content, style it, and download — the four stages below.

1

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.

QR code generator type dropdown with URL Text Email and other options highlighted
2

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://.

QR code generator text input field with URL entered highlighted
3

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.

QR code design tab with color pickers size slider and format options highlighted
4

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.)

QR code preview generated with download button highlighted in the QR code generator tool
Static Codes Stay Yours

Static codes encode the data directly in the pattern — no redirect service, no expiry, and no scan tracking.

06Customizing 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.

Contrast Rule

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.

07Error Correction Levels

Reed-Solomon error correction lets QR codes survive damage — but higher levels reduce data capacity.

LevelRecoveryData CapacityBest For
L (Low)7%HighestClean environments, no logo
M (Medium)15%GoodGeneral use, most QR codes
Q (Quartile)25%ModerateModerate damage risk
H (High)30%LowestLogo 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.

08File Format Guide

Choosing the right format matters — vector for print, raster for digital.

FormatTypeBest ForProsCons
PNGRasterWeb, social media, digitalTransparent background, sharp at fixed sizePixelates when enlarged
SVGRaster-in-vector wrapperWeb embedding, logosScales without extra export stepNot true vector — enlarging beyond the embedded PNG resolution still pixelates
JPGRasterQuick sharing, emailSmallest file sizeNo transparency, slight quality loss
Print = SVG

Always use SVG for print materials (business cards, posters, flyers). SVG scales to any size without losing sharpness. Use PNG for digital-only use.

09QR 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.

10WiFi 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 TypeFormatWhen to Use
WPA/WPA2WIFI:T:WPA;S:Name;P:Pass;;Most home and office networks
WEPWIFI:T:WEP;S:Name;P:Pass;;Legacy networks only (not recommended)
OpenWIFI: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.

11vCard 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.

1

Required Fields

Name (first + last), phone number, and email are the minimum. Add company, job title, and website for a complete professional profile.

2

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.

3

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.

12URL 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.

13Batch 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.

14QR Codes for Business Cards

Size, placement, and what to encode — making your business card scannable.

1

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.

2

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.

3

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.

15QR 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.

Always Include a CTA

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.

16QR Code Security

Quishing (QR phishing), how to verify before scanning, and protecting your users.

What Is Quishing?

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.

17Testing Your QR Code

The verification checklist — test on multiple devices, in different lighting, at the final size.

1

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.

2

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.

3

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.

4

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.

18Common 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.

19FAQ

Answers to the most common questions about QR code generation and usage.

Use the AFFLIGO QR code generator — select a type, enter your data, customize the design, and download as PNG, SVG, or JPG. No signup required, 100% free.
A QR code (Quick Response code) is a 2D barcode that stores data in black and white square modules. Smartphones scan it by reading the three finder patterns in the corners.
Static QR codes encode the data directly — they are free and permanent but cannot be edited. Dynamic QR codes use a short URL redirect — they are editable and trackable but may require a paid service.
Use level L (7%) for clean environments, M (15%) for general use, Q (25%) for moderate damage risk, and H (30%) when embedding a logo or printing in harsh conditions.
Use SVG for print and large displays (SVG stores flat shapes, so it scales without blurring). Use PNG for digital and web (sharp at fixed sizes), JPG when file size matters most (slight quality loss), and WebP for modern web use. The tool does not offer PDF or EPS export.
The minimum size is 2cm x 2cm (0.8 x 0.8 inches) for business cards. For posters and billboards, scale proportionally. The 10:1 rule says the scanning distance should be at least 10x the code size.
Select the WiFi type, enter your network name (SSID), password, and security type (WPA/WPA2). Guests scan it to connect without typing the password.
Select vCard type and enter your name, phone number, email, company, and website. When scanned, it adds your contact details directly to the phone's address book.
Common causes: low contrast between foreground and background, code too small, missing quiet zone (white border), error correction too low for a logo, or damage/obstruction on the code.
No. Static QR codes never expire because the data lives inside the pattern itself with no server involved. Print them on menus, cards, or packaging and they scan forever.

Ready to Create QR Codes?

Generate custom QR codes in seconds — choose from 10 types, customize colors and logos, and download as PNG, SVG, or JPG (static codes, no signup).

Open QR Code Generator

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.
Hands-On Tested

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.

Karan Kumar, Founder of AFFLIGO

Written by Karan Kumar

Founder of AFFLIGO

Karan built AFFLIGO's QR Code Generator with URL/WiFi/vCard types, logo embedding, error-correction levels and SVG/PNG export — all client-side. He scan-tests every release on Android and iPhone cameras, including damaged-code recovery, before publishing.

Last reviewed: October 2, 2026