0 characters

Enter content above to generate QR code

Privacy First

QR codes are generated entirely in your browser. Your data never leaves your device.

Error Correction

Low (7%)

Best for clean environments. Smallest QR code size.

Medium (15%)

Recommended for most uses. Good balance of size and reliability.

Quartile (25%)

Better damage resistance. Suitable for outdoor use.

High (30%)

Maximum reliability. Best for harsh environments.

Features

  • Custom colors for QR code
  • Adjustable size (128-512px)
  • 4 error correction levels
  • Download as PNG or SVG
  • Real-time preview
  • No watermarks or limits

About QR Codes

QR (Quick Response) codes are two-dimensional barcodes that can store URLs, text, contact information, and more. They were invented in 1994 by Denso Wave for tracking automotive parts and have since become ubiquitous in marketing, payments, and information sharing. Any smartphone camera can scan a QR code instantly.

PNG & SVG
Export Formats
4 Levels
Error Correction
128-512px
Size Range
100%
Client-Side

The Complete Guide to QR Codes

What Is a QR Code?

A QR (Quick Response) code is a type of two-dimensional matrix barcode that encodes data in a grid of black and white squares. Unlike traditional barcodes that only store data horizontally, QR codes store information both horizontally and vertically, allowing them to hold significantly more data — up to 7,089 numeric characters or 4,296 alphanumeric characters.

QR codes were invented in 1994 by Masahiro Hara at Denso Wave, a subsidiary of Toyota. Originally designed for tracking vehicle parts during manufacturing, QR codes have evolved into a universal tool for sharing information. They are now used in mobile payments, event tickets, restaurant menus, product packaging, and countless other applications.

How QR Codes Work

Every QR code contains several key structural elements that enable reliable scanning:

ComponentPurpose
Finder PatternsThree large squares in the corners that help scanners detect and orient the QR code
Alignment PatternsSmaller squares that help correct distortion when the code is curved or at an angle
Timing PatternsAlternating black and white modules that define the grid coordinates
Format InformationStores the error correction level and mask pattern used
Data & Error CorrectionThe actual encoded content along with Reed-Solomon error correction codes
Quiet ZoneEmpty border around the code (at least 4 modules wide) for reliable detection

Error Correction Levels

QR codes use Reed-Solomon error correction, which allows them to be read even when partially damaged or obscured. There are four levels of error correction, each offering a trade-off between data capacity and damage resistance:

LevelRecoveryBest For
L (Low)~7% of dataClean indoor environments, digital displays
M (Medium)~15% of dataGeneral purpose use (recommended default)
Q (Quartile)~25% of dataOutdoor signage, product packaging
H (High)~30% of dataHarsh environments, codes with logos overlaid

Higher error correction means the QR code can sustain more damage but requires a larger module grid to encode the same data. If you plan to add a logo over the center of your QR code, use level H to ensure the code remains scannable.

Common QR Code Content Types

QR codes can encode many types of data. Here are the most widely used formats:

🔗 URLs

The most common use. Simply encode a full URL like https://example.com and scanners will open the browser automatically.

📧 Email

Use the mailto: prefix to create QR codes that open a pre-filled email compose window.

📞 Phone

Use the tel: prefix to let users dial a number by scanning. Great for business cards and flyers.

📱 SMS

Use sms:+1234567890?body=Hello to create pre-filled text message QR codes.

📋 Plain Text

Encode any plain text — serial numbers, instructions, notes, or short messages. The text appears directly when scanned.

📶 Wi-Fi

Use the format WIFI:T:WPA;S:NetworkName;P:Password;; to let guests connect to Wi-Fi instantly.

QR Code vs. Barcode

FeatureQR CodeTraditional Barcode
Dimensions2D (horizontal + vertical)1D (horizontal only)
Data CapacityUp to 7,089 charactersUp to ~25 characters
Error CorrectionBuilt-in (7-30%)None or minimal
Content TypesURLs, text, vCards, Wi-Fi, etc.Numbers only (UPC/EAN)
Scan DirectionAny angle (360°)Must be aligned horizontally

Need a traditional 1D barcode instead? Try our Barcode Generator to create UPC, EAN, Code 128, and other standard barcode formats.

Best Practices for QR Codes

✅ Do

  • • Use high contrast between foreground and background
  • • Test with multiple devices before printing
  • • Keep a quiet zone (white border) around the code
  • • Use short URLs to create simpler, smaller codes
  • • Print at minimum 2 × 2 cm for reliable scanning
  • • Use higher error correction for outdoor or printed use

❌ Don't

  • • Use low-contrast color combinations (e.g., yellow on white)
  • • Stretch or distort the QR code unevenly
  • • Place on highly reflective surfaces
  • • Invert colors (light foreground on dark background)
  • • Encode excessively long text or URLs
  • • Print too small for scanning distance

Frequently Asked Questions

What is the maximum data a QR code can hold?
A QR code can store up to 7,089 numeric characters, 4,296 alphanumeric characters, or 2,953 bytes of binary data. However, more data means a larger, more complex code that is harder to scan. For best results, keep your content concise.
Do QR codes expire?
Static QR codes (like the ones generated here) never expire. The data is encoded directly in the image. However, if the QR code links to a URL, the content at that URL can change or go offline independently of the code.
Should I use PNG or SVG format?
Use SVG for print materials — it scales to any size without losing quality. Use PNG for digital use like websites, social media, or email. SVG files are also smaller and render crisply at any resolution.
Can I customize the colors of my QR code?
Yes! This tool lets you set custom foreground and background colors. Just ensure sufficient contrast between them — dark modules on a light background work best. Avoid using very light foreground colors as they may not scan reliably.
Is my data secure when generating QR codes?
Absolutely. This QR code generator runs entirely in your browser using client-side JavaScript. Your data never leaves your device — no server requests are made. This makes it safe to encode sensitive information like Wi-Fi passwords.
What is the ideal size for printing a QR code?
The minimum recommended size is 2 × 2 cm (about 0.8 × 0.8 inches) for close-range scanning. For signage scanned from a distance, use the 10:1 rule — the QR code should be at least 1/10th of the expected scanning distance (e.g., 10 cm for 1 meter away).

Learn More About QR Codes

Discover how QR codes encode data in a 2D matrix, how error correction lets damaged codes still scan, static vs dynamic codes, security considerations, and best practices for creating effective QR codes.

Read Our QR Code Guide