QR Code Generator
Generate QR codes instantly from text or URLs. Customize and download for free.
Enter text to generate QR code
Enter text to generate QR code
A QR (Quick Response) code is a type of two-dimensional barcode invented in 1994 by Denso Wave, a Japanese automotive company. Originally designed to track automotive parts during manufacturing, QR codes have evolved into a universal method for sharing information quickly and efficiently.
Unlike traditional one-dimensional barcodes that store data horizontally (typically 20-25 characters), QR codes store information both horizontally and vertically in a matrix pattern. This allows them to hold significantly more data - up to 7,089 numeric characters or 4,296 alphanumeric characters.
Why "Quick Response"? The name reflects the code's ability to be decoded at high speed. Modern smartphones can read QR codes instantly using the camera app, making them ideal for connecting the physical and digital worlds.
QR Codes Can Encode:
- URLs: Direct users to websites, landing pages, or online resources (most common use)
- Plain Text: Messages, instructions, product information, or serial numbers
- Contact Information (vCard): Name, phone, email, address for instant contact saving
- Wi-Fi Credentials: SSID, password, and security type for one-tap connection
- Email Addresses: Pre-filled recipient, subject, and body text
- Phone Numbers: Tap to call functionality
- SMS Messages: Pre-composed text messages
- Geographic Coordinates: GPS locations for maps integration
- Payment Information: Cryptocurrency addresses, PayPal links, or payment URLs
- App Store Links: Direct download links for iOS and Android apps
- Enter Your Data: Type or paste your text or URL into the input field. For URLs, include the full address starting with https:// to ensure proper recognition by scanning apps. For other data types, use standard formats (e.g., vCard for contacts, WIFI:S:NetworkName;T:WPA;P:Password;; for Wi-Fi).
- Adjust Size: Use the slider to select your preferred QR code dimensions (128px to 512px). Choose based on your use case:
- 128-200px: Digital use (websites, emails, presentations)
- 256-384px: Print materials (flyers, brochures, posters at reading distance)
- 512px+: Large format (billboards, banners, signage visible from distance)
- Choose Error Correction Level: Select based on your environment and potential damage risks. Higher levels create denser QR codes but can recover from up to 30% damage:
- Low (L): 7% recovery - Clean environments, digital displays
- Medium (M): 15% recovery - Standard printing, indoor use (default)
- Quartile (Q): 25% recovery - Outdoor use, potential dirt/wear
- High (H): 30% recovery - Harsh environments, long-term outdoor use
- Generate & Preview: Your QR code generates automatically as you type. Review the preview to ensure it looks clear and well-defined. Blurry or pixelated codes may not scan properly.
- Download or Copy: Click "Download PNG" to save the image file, or "Copy Image" to copy it directly to your clipboard for pasting into documents or design software.
- Test Before Publishing: Always test your QR code with multiple devices (iPhone, Android) and scanning apps before mass distribution. Scan from various distances and angles to ensure reliability.
๐๏ธ Marketing & Business
- Product Packaging: Link to user manuals, assembly videos, warranty registration, or customer support
- Business Cards: Share vCard contact info that saves instantly to the recipient's phone
- Print Advertising: Track campaign performance by linking to unique landing pages for each ad placement
- Store Windows: Allow after-hours browsing by linking to online catalogs or appointment booking
- Trade Show Booths: Capture leads by linking to contact forms or product demo videos
- Direct Mail: Drive recipients from physical mailers to personalized web experiences
๐ฝ๏ธ Hospitality & Service Industry
- Restaurant Menus: Contactless digital menus accessible via table tent cards or stickers
- Hotel Check-In: Express check-in, Wi-Fi credentials, and room service ordering
- Event Tickets: Digital tickets with validation codes for concerts, sports, or conferences
- Feedback Collection: Link to Google Reviews or customer satisfaction surveys
- Payment Processing: Table-side payment links for tip and bill settlement
๐ข Enterprise & Operations
- Inventory Management: Asset tracking with serial numbers and maintenance history links
- Warehouse Logistics: Pallet tracking, location verification, and shipping manifests
- Employee Badges: Access control, time tracking, and emergency contact information
- Equipment Maintenance: Service history, manuals, and parts ordering for machinery
- Document Management: Bridge paper documents to digital versions or approval workflows
๐ Education & Public Sector
- Campus Wayfinding: Building maps, room schedules, and facility information
- Library Resources: Book details, availability, and digital content access
- Museum Exhibits: Audio guides, detailed descriptions, and related content
- Public Transportation: Schedule information, route maps, and ticket purchasing
- Government Services: Application forms, appointment scheduling, and service information
Understanding QR code structure helps you create better codes and troubleshoot scanning issues. Every QR code contains several critical components:
๐ Position Detection Patterns (Corners)
The three large squares in the corners help scanners identify and orient the QR code. These must remain clear and unobscured. If you see a QR code that won't scan, check if these corners are damaged or obscured.
โฑ๏ธ Timing Patterns
Alternating black and white modules between position patterns help the scanner determine the size and structure of the QR code matrix. These lines must not be interrupted.
๐ฏ Alignment Patterns
Smaller squares that appear in larger QR codes (version 2+) help correct for distortion when scanning curved or angled surfaces. More data = more alignment patterns needed.
๐ Format Information
Data near the position patterns that encodes the error correction level and mask pattern. This redundant information is stored in multiple locations for reliability.
๐ Data Modules
The actual encoded information appears in the remaining black and white squares. Data is written in a specific pattern from bottom-right, spiraling inward.
โช Quiet Zone (Margin)
The white border around the QR code is mandatory - it must be at least 4 modules wide (4 squares). Without adequate quiet zone, scanners may fail to detect the code's boundaries.
๐ก Design Tip: QR codes can tolerate some customization (colors, embedded logos) but critical elements (position patterns, timing patterns, quiet zone) must remain intact. Use High (H) error correction when adding logos or styling.
QR codes use Reed-Solomon error correction, allowing them to be read even when partially damaged, dirty, or obscured. The error correction level determines how much redundant data is added to recover from damage.
| Level | Recovery | Use Case | Trade-off |
|---|---|---|---|
| L (Low) | ~7% | Clean environments: digital displays, protected indoor signage, pristine print materials | Maximum data capacity, smallest code size |
| M (Medium) | ~15% | Standard use: business cards, flyers, indoor posters, product packaging (default) | Good balance of data capacity and resilience |
| Q (Quartile) | ~25% | Outdoor use: signs exposed to weather, construction sites, industrial environments | Reduced data capacity, denser appearance |
| H (High) | ~30% | Harsh conditions: long-term outdoor exposure, customized QR codes with logos/styling | Minimum data capacity, largest code size |
โ ๏ธ Important Considerations
- Logo Overlays: If adding a company logo to the center of a QR code, always use High (H) correction. The logo obscures data modules and reduces scannability.
- Print Quality: Low-resolution printing can blur the code. Use higher error correction for offset printing, newsprint, or materials with texture.
- Size vs Distance: A QR code should be at least 2cm ร 2cm for arm's length scanning. For scanning from 1 meter away, use 10cm ร 10cm minimum. The formula: (scanning distance in cm) รท 10 = minimum QR size in cm.
- Material Matters: Glossy materials can create glare that interferes with scanning. Matte finishes work better, or use higher error correction to compensate.
QR codes have maximum data capacities that vary based on the data type and error correction level. Understanding these limits helps you choose the right approach for your content.
| Data Type | Max Capacity (Low) | Max Capacity (High) | Best For |
|---|---|---|---|
| Numeric | 7,089 digits | 3,057 digits | Phone numbers, product IDs, timestamps |
| Alphanumeric | 4,296 chars | 1,852 chars | URLs, text messages, codes (A-Z, 0-9, $%*+-./:) |
| Binary/Byte | 2,953 bytes | 1,273 bytes | Any character, Unicode, emoji, special symbols |
| Kanji/Kana | 1,817 chars | 784 chars | Japanese characters (double-byte) |
๐ฑ Practical URL Limits
Most QR code readers work best with URLs under 300 characters. For longer content:
- Use URL Shorteners: bit.ly, tinyurl.com, or your own domain shortener (yoursite.com/abc123)
- Remove UTM Parameters: Track clicks on your server instead of in the URL
- Use Dynamic QR Codes: Create a permanent short URL that redirects to updated destinations
๐ฏ Optimization Tips
- HTTPS vs HTTP: While HTTPS is more secure, dropping the "s" saves 1 character and creates a slightly simpler QR code
- WWW prefix: Modern browsers work without "www." - dropping it saves 4 characters
- Case Matters: Uppercase-only URLs are more efficient in alphanumeric mode. "EXAMPLE.COM" is better than "example.com"
- Version Control: QR codes automatically resize from Version 1 (21ร21 modules) to Version 40 (177ร177 modules) based on data length
๐จ QR Code Phishing (Quishing)
Attackers can create malicious QR codes that redirect to phishing sites, malware downloads, or payment scams. Users trust QR codes because they look legitimate, but you can't read the destination URL until after scanning.
Common Attack Vectors:
- Sticker Overlays: Attackers place fake QR code stickers over legitimate ones (parking meters, restaurant menus, posters)
- Email Phishing: Malicious QR codes in emails claiming to be from banks, shipping companies, or government agencies
- Fake Parking Tickets: QR codes on windshield flyers that lead to payment scam sites
- Public Wi-Fi: Rogue QR codes promising free Wi-Fi but capturing credentials or installing malware
๐ก๏ธ How to Scan QR Codes Safely
โ DO:
- Preview Before Opening: Most modern QR scanners show the URL before opening. Read it carefully.
- Verify the Domain: Check that the URL matches the expected website (paypal.com not paypa1.com)
- Use Official QR Codes: Only scan codes from trusted sources or official materials
- Check Physical Integrity: Look for signs of tampering - stickers over existing codes, peeling edges, different paper texture
- Use Built-in Scanners: iPhone and Android camera apps have better security than third-party QR apps
- Enable Preview Mode: Configure your scanner to always show a preview instead of auto-opening links
โ DON'T:
- Auto-Open Links: Never configure your scanner to open URLs automatically without showing them first
- Scan Random QR Codes: Avoid QR codes in unsolicited emails, random flyers, or graffiti
- Enter Sensitive Data: Don't enter passwords, credit card info, or SSN on sites reached via QR codes
- Download APK Files: Never install Android apps (.apk) from QR code links - use official app stores
- Trust URL Shorteners Blindly: Shortened URLs (bit.ly/abc123) hide the real destination
๐ข For Businesses Creating QR Codes
- Use Your Domain: Link to yourdomain.com/offer instead of shortened URLs to build trust
- Add Security Indicators: Use HTTPS, display your brand name clearly on the landing page
- Make URLs Readable: If possible, use clear paths like "yoursite.com/menu" not "yoursite.com/?p=8472"
- Anti-Tampering Measures: Print QR codes directly on materials rather than stickers when possible
- Monitor Analytics: Track QR code scans to detect unusual patterns that might indicate code replacement
- Provide Context: Add text near the QR code explaining where it leads ("Scan to view menu" or "Visit company.com/promo")
๐จ๏ธ Printing QR Codes
- Resolution Matters: Generate QR codes at 300 DPI or higher for print. Export as PNG or vector format (SVG) for best quality.
- Size Guidelines:
- Business cards: Minimum 2cm ร 2cm (0.8" ร 0.8")
- Flyers/posters at arm's length: 3-5cm ร 3-5cm (1.2"-2")
- Billboards/signage (viewed from 5m): 50cm ร 50cm minimum
- Formula: (viewing distance in meters) ร 10 = minimum size in cm
- Contrast is Critical: Use dark colors on light backgrounds. Black on white is ideal. Avoid light-on-dark unless you invert the QR code.
- Material Selection: Matte finishes prevent glare. Avoid glossy materials that create reflections under overhead lighting.
- Test Before Mass Printing: Print a sample at actual size and test scanning from various angles and distances.
- Durability: For outdoor use, consider weatherproof materials, UV-resistant inks, and High (H) error correction.
๐ป Digital Display QR Codes
- Screen Brightness: QR codes on dim screens are harder to scan. Ensure displays are at adequate brightness (50%+).
- Animation Consideration: Static QR codes scan better than animated ones. If animating, hold the code stationary for 3+ seconds.
- Background Placement: Avoid busy backgrounds that blend with the QR code. Use solid colors with strong contrast.
- Responsive Sizing: On websites, ensure QR codes scale appropriately for mobile displays (minimum 200px width).
- Alt Text: For accessibility, include the destination URL as alt text or nearby text for screen readers.
๐จ Customization & Branding
- Color Changes: You can change QR code colors, but maintain high contrast (light background, dark foreground or vice versa). Avoid red/green combinations (color blindness).
- Logo Insertion: Place logos in the center, covering no more than 20% of the code. Always use High (H) error correction with logo overlays.
- Custom Patterns: Rounded corners and custom shapes are possible but reduce scannability. Test extensively across different scanners.
- Brand Colors: Navy blue on white, dark green on cream, or other high-contrast combinations work. Avoid pastels and low-contrast pairs.
๐ก Pro Tip: When in doubt, keep it simple. A plain black-and-white QR code always scans better than a heavily customized one. Prioritize functionality over aesthetics, especially for mission-critical applications like event tickets or payment codes.
100% Client-Side Processing: All QR code generation happens entirely in your browser using JavaScript. Your data never leaves your device or gets sent to any server. This makes this tool completely private and secure for encoding sensitive information like Wi-Fi passwords, contact details, or private URLs.
No Data Collection: This tool doesn't log, store, or track what you encode. Your QR codes are generated in real-time in your browser's memory and are never saved by us. When you close the page, everything is deleted.
Offline Capable: Once this page loads, the QR code generator works offline. You can disconnect from the internet and continue generating codes for complete privacy.
Open Source Transparency: You can view the generator's source code in your browser's developer tools. There are no hidden network requests or data transmission - everything stays on your device.