QR Code Generator

Free QR code generator — create QR codes for URLs, text, WiFi, vCard, email, and more. Custom colors and sizes. Download PNG/SVG. No signup required.

Remove Ads
Upload File
Upload File
Upload File
Upload File
Upload File

Share on Social Media:

How to Create a QR Code

Generating a custom QR code with our tool takes just seconds. Start by selecting the type of content you want to encode — our generator supports URLs (website links), plain text, WiFi network credentials, vCard (digital business card), email addresses, phone numbers, and SMS messages.

Enter the content for your chosen type. For a URL, paste the full web address. For WiFi, enter the network name, password, and encryption type. For a vCard, fill in the contact details (name, phone, email, company, title) that you want encoded.

Customize the appearance if desired. You can change the foreground color (the dark squares), background color (the light areas), and download size. For most use cases, the classic black-on-white provides the best scan reliability, but custom colors work well when the contrast between foreground and background remains high.

Click "Generate QR Code" and your code appears instantly as a preview. Test it by scanning with your phone's camera to verify it works correctly. Then download the QR code as a high-resolution PNG image (ideal for digital use) or SVG vector format (ideal for print at any size).

What Is a QR Code and How Does It Work?

A QR code (Quick Response code) is a two-dimensional barcode that stores data in a pattern of black and white squares arranged on a grid. Unlike traditional one-dimensional barcodes (like those on grocery products) that store data only in one direction, QR codes store data both horizontally and vertically, allowing them to hold significantly more information — up to 4,296 alphanumeric characters.

QR codes were invented in 1994 by Denso Wave, a subsidiary of Toyota, to track automotive parts during manufacturing. The "Quick Response" name reflects their key advantage: they can be scanned and decoded much faster than traditional barcodes. While originally designed for industrial use, QR codes exploded into mainstream consumer use in the 2010s as smartphone cameras became capable of reading them natively.

The anatomy of a QR code includes several functional elements. Finder patterns are the three large squares in three corners of the code — they help scanners quickly locate and orient the QR code regardless of viewing angle. Alignment patterns (smaller squares) help correct for distortion when the code is scanned at an angle or on a curved surface. Timing patterns (alternating black-and-white modules between finder patterns) help the scanner determine module size and grid spacing. The data area contains the actual encoded information, organized in specific patterns depending on the encoding mode and error correction level.

Error correction is a critical feature that makes QR codes remarkably resilient. QR codes use Reed-Solomon error correction, which adds redundant data that allows the code to be read even when partially damaged or obscured. There are four error correction levels: L (Low) recovers up to 7% damage, M (Medium) recovers up to 15%, Q (Quartile) recovers up to 25%, and H (High) recovers up to 30%. Higher error correction means the QR code can withstand more damage but requires a larger code (more modules) to store the same data.

Scanning works when a camera captures the QR code image, software identifies the finder patterns to establish orientation and grid structure, decodes the data modules according to the encoding standard, applies error correction to recover any damaged or unreadable modules, and delivers the decoded content to the user — typically as a URL that opens in the browser, text that displays on screen, or structured data (like WiFi credentials) that triggers a system action.

QR Code Types: What You Can Encode

QR codes are versatile containers that can encode many types of data, each triggering different actions when scanned.

URL QR codes are the most common type. They encode a web address, and when scanned, the device opens that URL in the default browser. Use cases include directing customers to your website, product pages, landing pages, app download links, social media profiles, Google Maps locations, YouTube videos, and online forms.

WiFi QR codes encode network credentials (SSID, password, and encryption type). When scanned, the device automatically connects to the WiFi network without the user needing to manually type the password. This is enormously useful for restaurants, hotels, offices, events, and Airbnb properties where guests need WiFi access.

vCard QR codes encode contact information in a standardized format. When scanned, the device offers to save the contact with all included details — name, phone numbers, email addresses, company, title, website, and physical address. This is the modern replacement for exchanging business cards and is particularly popular at networking events and conferences.

Email QR codes open the user's email client with a pre-filled recipient address, subject line, and optional body text. Useful for making it easy for customers to contact you or submit feedback.

SMS QR codes open the messaging app with a pre-filled phone number and optional message text. Businesses use these for opt-in text campaigns ("Scan to join our SMS list").

Plain text QR codes simply display text on the screen when scanned. Use cases include sharing messages, codes, instructions, or any information that does not require a web connection.

Event QR codes encode calendar events that can be added to the scanner's calendar, including event name, date, time, location, and description.

Geo-location QR codes encode latitude and longitude coordinates, opening a map application when scanned. Useful for directing people to physical locations.

QR Code Best Practices for Print and Digital

Creating a QR code that works reliably in real-world conditions requires attention to several practical factors.

Size matters. A QR code must be large enough for a scanner to read it from the expected scanning distance. The minimum recommended size is 2cm x 2cm (about 0.8 inches) for close-range scanning (held close to the code, like a business card or menu). For posters, signage, and materials scanned from farther away, use the rule of thumb: the QR code should be at least one-tenth of the scanning distance. A poster scanned from 1 meter away needs a QR code at least 10cm across. A billboard scanned from 10 meters needs at least 1 meter.

Contrast is essential. The scanner needs to clearly distinguish between the dark and light modules. Black on white provides the best contrast. If you use custom colors, ensure the foreground (data modules) is significantly darker than the background. Never use low-contrast combinations like yellow on white, light gray on white, or red on green. Test custom-colored codes with multiple devices before committing to print.

Quiet zone (white space around the code) must be preserved. Every QR code needs a margin of empty space around it — at least 4 modules wide. This quiet zone helps scanners identify where the code begins and ends. Cropping into this margin or placing other design elements too close can cause scan failures.

Always test before printing. Generate the code, scan it with at least two different devices (iOS and Android), verify it leads to the correct destination, and confirm it works at the intended print size. A QR code that fails to scan after printing thousands of brochures is an expensive mistake.

Use vector formats (SVG) for print. Vector QR codes scale to any size without losing sharpness. Raster formats (PNG, JPG) become pixelated when enlarged beyond their original resolution. Download SVG for any print application — business cards, posters, packaging, or billboards.

Keep the encoded content short. Longer content requires more modules in the QR code, making it denser and harder to scan, especially at smaller sizes. For URLs, use a URL shortener if the link is very long. For other content types, include only essential information.

Add a call to action near the QR code. A QR code alone does not tell people what happens when they scan it. Add text like "Scan for menu," "Scan to connect to WiFi," or "Scan for special offer." This simple instruction dramatically increases scan rates.

Static vs Dynamic QR Codes: Which Do You Need?

QR codes come in two operational categories that differ in flexibility and functionality.

Static QR codes encode data directly into the code pattern. The encoded content is permanent — once generated and printed, it cannot be changed. If you create a static QR code for "https://example.com/menu" and later move the menu to a different URL, the printed QR code still points to the old URL and would need to be reprinted. Our free generator creates static QR codes, which are perfect for permanent content like WiFi passwords (which rarely change), vCard contact information, and stable website URLs.

Dynamic QR codes encode a short redirect URL rather than the final destination. The redirect can be changed at any time through a management dashboard, so the same printed QR code can point to different content over time. This is valuable for marketing campaigns (change the landing page without reprinting), restaurant menus (update prices and items without new codes), product packaging (redirect to updated product pages), and time-sensitive content (event schedules, seasonal promotions).

Dynamic codes also offer scan analytics — tracking how many times the code was scanned, from what locations, on what devices, and at what times. This data is valuable for measuring campaign effectiveness.

The tradeoff is that dynamic QR codes require a subscription to a QR code management service. If that service goes offline or you stop paying, the redirect stops working and the QR code becomes dead. Static QR codes have no such dependency — they work forever because the data is encoded directly in the code itself.

For most personal and small business uses, static QR codes are the better choice: they are free, permanent, and have no dependency on a third-party service. Dynamic codes make sense for large-scale marketing campaigns, frequently changing content, and situations where scan analytics are important.

Frequently Asked Questions

Do QR codes expire?

Static QR codes (like those generated by our free tool) never expire. The data is encoded directly in the code pattern and works as long as the code is visible and scannable. Dynamic QR codes may expire if the management service subscription lapses.

Can I customize the colors of my QR code?

Yes. Our generator allows you to change the foreground and background colors. Maintain high contrast between colors (dark foreground, light background) for reliable scanning. Avoid light-on-light or dark-on-dark combinations.

What size should my QR code be?

For print materials scanned at close range (menus, business cards, flyers), a minimum of 2cm x 2cm. For posters and signage, the code should be at least one-tenth of the expected scanning distance.

Can I add a logo to the center of my QR code?

QR codes with logos rely on error correction to remain scannable despite the logo covering some modules. Use High (H) error correction level, which allows up to 30% of the code to be obscured. Keep the logo small (under 30% of the code area) and ensure surrounding modules are not distorted.

What is the maximum data a QR code can store?

A single QR code can store up to 7,089 numeric characters, 4,296 alphanumeric characters, or 2,953 bytes of binary data. For practical purposes, keep content as short as possible for better scannability.

Do people need a special app to scan QR codes?

No. Both iOS (iPhone) and Android natively support QR code scanning through the built-in camera app. Simply point the camera at a QR code and a notification appears with the decoded content. No third-party app is needed.

Are QR codes secure?

QR codes themselves are not inherently dangerous — they are simply data containers. However, a QR code can encode a malicious URL just as easily as a legitimate one. Users should verify the destination URL before taking action after scanning, especially with codes from unknown sources.

Can I create a QR code for a PDF or image?

Not directly. QR codes encode text-based data (URLs, text, contact info), not files. To share a PDF via QR code, upload the PDF to a hosting service and create a QR code linking to the hosted URL.