QR Code Generator

Generate QR codes for text, URLs, WiFi passwords, and more. Customize size and download instantly.

QR Code Settings
QR Code Preview

Enter text to generate QR code

Complete QR Code Guide

Everything you need to know about QR codes — how they work, what they can store, how to design them right, and where to use them.

Understanding QR Codes

How QR Codes Work

  • QR (Quick Response) code: 2D matrix barcode invented by Denso Wave in 1994 for automotive tracking
  • Structure: finder patterns (3 corner squares) + timing patterns + data modules (black/white squares)
  • Error correction levels: L (7%), M (15%), Q (25%), H (30%) of data can be lost and still decode
  • Higher error correction = more modules = more dense QR = harder to scan at small size
  • Data encoding types: numeric (10 chars/module), alphanumeric (6.5), byte (8), kanji (5.13)
  • Version 1–40: Version 1 = 21×21 modules (41 chars max), Version 40 = 177×177 (7,089 chars max)
  • Quiet zone: the white border around the QR code is required — minimum 4 modules wide
  • Scanning: cameras auto-detect finder patterns, decode timing patterns, then error-correct and read data

QR Code Data Types

  • URL: "https://example.com" — most common; the scanner opens the URL automatically
  • Plain text: any string up to capacity limits
  • vCard (contact): BEGIN:VCARD\nFN:John Doe\nTEL:+1234567890\nEND:VCARD
  • Wi-Fi: WIFI:T:WPA;S:NetworkName;P:password;; — auto-connects on iOS/Android
  • Email: mailto:user@example.com?subject=Hello&body=Text
  • SMS: sms:+1234567890?body=Hello
  • Phone call: tel:+1234567890
  • Geo location: geo:40.7128,-74.0060 — opens maps app
  • Calendar event (vEvent): BEGIN:VEVENT\nSUMMARY:Event\nDTSTART:20241215T090000Z\nEND:VEVENT
  • Crypto payment: bitcoin:1BvBMSEYstWetqTFn5Au4m4GFg7xJaNVN2?amount=0.001

Specifications & Customization

QR Code Specifications

  • Version 1 (21×21): 41 numeric / 25 alphanumeric / 17 bytes
  • Version 5 (37×37): 134 numeric / 81 alphanumeric / 56 bytes
  • Version 10 (57×57): 346 numeric / 210 alphanumeric / 144 bytes
  • Version 20 (97×97): 858 numeric / 520 alphanumeric / 358 bytes
  • Version 40 (177×177): 7,089 numeric / 4,296 alphanumeric / 2,953 bytes
  • Error correction L: smallest size, fine for clean print environments
  • Error correction M: good default for most uses
  • Error correction Q: recommended when adding logo overlay
  • Error correction H: maximum recovery, required for logo overlays or harsh environments

Customization Options

  • Foreground color: any dark color (not just black) — ensure sufficient contrast with background
  • Background color: any light color (not just white) — transparent for overlay use
  • Logo/image overlay: centered image covers ~20–30% of the QR code area (use Q or H error correction)
  • Module shape: square (default), rounded, dot, or custom shapes for artistic QR codes
  • Finder pattern style: square, rounded, or circular corner markers
  • Size in pixels: typically 256–1024px for digital, 300–1200px for print
  • File format: PNG (best for screens and print), SVG (scalable, ideal for large print), JPG (small file, avoid for QR — lossy compression degrades modules)
  • Quiet zone: can be reduced to 2 modules minimum, though 4 is recommended

Data Capacity by Version

  • Short URL (22 chars): Version 2, very compact QR
  • Standard URL (50 chars): Version 4, still compact
  • Long URL (150 chars): Version 8, moderate density
  • Full URL with params (300 chars): Version 13, detailed QR
  • vCard with all fields (~400 chars): Version 15, use short URL instead
  • Entire paragraph of text (1,000 chars): Version 25, very dense — avoid for print
  • Maximum numeric data: 7,089 digits in a single QR code
  • Maximum binary data: 2,953 bytes — enough for a small webpage

Real-World Applications

Marketing & Retail

  • Product packaging: link to product page, instructions manual, or video tutorial
  • Restaurant menus: contact-free digital menu, updated in real time via dynamic QR
  • Business cards: link to LinkedIn profile, portfolio, or vCard download
  • Event tickets: scannable ticket codes replacing paper validation
  • Print ads: bridge print media to landing pages and digital offers
  • Window displays: closed store? QR links to online store
  • Loyalty programs: scan to earn/redeem points
  • Product authentication: anti-counterfeit QR linking to verification page

Events & Hospitality

  • Conference badges: name, title, LinkedIn — one scan adds the contact
  • Wi-Fi sharing at venues: WIFI: format eliminates password typing
  • Feedback collection: link to survey form after events
  • Wayfinding: QR on map markers links to real-time location guide
  • Check-in automation: scan QR instead of checking a guest list
  • Session information: QR on speaker slides links to slides deck download
  • Hotel rooms: QR for room service menu, TV guide, checkout
  • Virtual event access: QR links directly to Zoom/Teams join URL

Education & Healthcare

  • Classroom posters: link to videos, quizzes, or supplementary reading
  • Library books: QR links to author profile, reviews, or related resources
  • Medical equipment: QR links to maintenance log and usage instructions
  • Patient wristbands: QR links to patient records (secured)
  • Prescription bottles: QR links to medication information and interactions
  • Lab specimens: QR encodes sample ID, collection date, patient ID
  • Emergency ID cards: QR encodes allergies, blood type, emergency contacts
  • Research posters: QR links to full paper, data sets, or video presentation

Operations & Logistics

  • Asset tracking: QR on equipment links to maintenance history and location
  • Inventory management: scan QR to update stock counts in real time
  • Warehouse picking: QR on shelf location confirms pick
  • Shipping labels: QR encodes tracking number for instant scan
  • Document control: QR links to latest version of a SOP or policy document
  • Equipment calibration: QR links to calibration records and next due date
  • Visitor management: sign-in form opened by lobby QR
  • Contractor onboarding: QR links to site safety briefing materials

Best Practices

Design for Reliable Scanning

  • Minimum size: 2.5 cm × 2.5 cm (1 inch) for print — smaller QR codes are unreliable
  • Test every QR code with at least 3 different scanner apps before distribution
  • Use sufficient contrast: dark modules on light background — minimum 3:1 contrast ratio
  • Keep the quiet zone (white border) at least 4 modules wide — cutting it causes scan failures
  • For logo overlays, use Error Correction H and limit logo to 20% of QR area
  • Avoid placing QR codes on curved surfaces — distortion reduces scan reliability
  • For outdoor use, use weatherproof print materials and increase code size
  • Always include a text fallback URL below the QR code for accessibility

URL & Dynamic QR Strategy

  • Use a URL shortener for long URLs — shorter content = less dense QR = faster scanning
  • Dynamic QR codes (with a redirect URL) allow changing the destination without reprinting
  • Static QR codes (direct URL encoded) cannot be changed once printed
  • Track scans with UTM parameters: ?utm_source=qr&utm_medium=print&utm_campaign=brochure
  • Test the destination URL before printing — a broken link wastes the QR code
  • HTTPS URLs are more trusted by scanners and less likely to be blocked
  • Keep destination pages mobile-optimized — 90%+ of QR scans happen on mobile
  • For high-volume print (thousands of copies), use a dynamic QR service with analytics

Examples by Use Case

Common Use Cases

  • Website URL: "https://www.example.com/landing" → standard URL QR
  • "WIFI:T:WPA2;S:CoffeeShop;P:welcome2024;;" → auto-connects phone
  • "BEGIN:VCARD\nFN:Jane Smith\nTEL:+15551234567\nEMAIL:jane@example.com\nEND:VCARD" → saves contact
  • "mailto:support@example.com?subject=Support+Request" → opens email app
  • "sms:+15551234567?body=Hello+from+QR" → opens SMS with pre-filled message
  • "geo:37.7749,-122.4194" → opens Google/Apple Maps at location

Marketing Formats

  • Business card QR (2.5 cm): Error correction M, black on white, no logo
  • Poster QR (10 cm): Error correction Q, brand colors, small logo overlay
  • Billboard QR (50 cm+): Error correction H, maximum size, no logo, bold contrast
  • Packaging QR (1.5 cm minimum): Error correction L, clean background, no customization
  • T-shirt QR (20 cm): Error correction H, high contrast, scan distance 1–2 m
  • Product tag QR (2 cm): Error correction M, space is tight — keep URL very short

Data Capacity Examples

  • Short URL (22 chars): Version 2, very compact QR
  • Standard URL (50 chars): Version 4, still compact
  • Long URL (150 chars): Version 8, moderate density
  • Full URL with params (300 chars): Version 13, detailed QR
  • vCard with all fields (~400 chars): Version 15, use short URL instead
  • Entire paragraph of text (1,000 chars): Version 25, very dense — avoid for print

Frequently Asked Questions

What is the difference between static and dynamic QR codes?
A static QR code encodes data directly — the URL or text is baked into the code and cannot be changed once printed. A dynamic QR code encodes a short redirect URL; the actual destination is set on a server and can be changed anytime without reprinting. Dynamic codes also enable scan tracking. For permanent uses (business cards, books), static is fine; for campaigns and print materials you'll reuse, dynamic is worth the extra step.
What error correction level should I use?
M (15% recovery) is the safe default for most uses. Use L when space is very tight (small labels, wearables) and the environment is clean. Use Q or H when adding a logo overlay — the logo covers modules, so you need more error correction to compensate. H (30% recovery) is overkill for plain URLs but required for logo-heavy designs or harsh environments (factory floors, outdoor signage).
Can I customize a QR code with my brand colors?
Yes — you can use any foreground color that provides sufficient contrast against the background. The key rule: dark modules on a light background. Avoid reversing (light on dark) as many scanners struggle. Test custom-colored QR codes thoroughly across different scanner apps and lighting conditions before printing at scale.
How small can a QR code be and still scan?
2.5 cm × 2.5 cm (1 inch square) is the practical minimum for print. At this size, a modern smartphone camera at normal scanning distance (20–50 cm) reads it reliably. Smaller codes require the scanner to be very close and perfectly steady. For packaging and labels where the scan distance is short (< 15 cm), 1.5 cm can work with Version 1 and Error Correction L.
Is the QR code generated on my device or a server?
The QR code is generated entirely in your browser using JavaScript. No data is sent to any server — your URL, Wi-Fi password, or contact information never leaves your device. This makes the tool safe for sensitive data like Wi-Fi credentials.
What file format should I download?
SVG for anything that will be enlarged — it's infinitely scalable with no pixelation. PNG for web use, email, and standard print. Avoid JPEG for QR codes — JPEG compression blurs the sharp edges of modules, reducing scan reliability. For large-format print (> A4), always use SVG.