QR Code Generator
Create QR codes for text, URLs, contact information, WiFi passwords, and more.
Select QR Code Type
How QR Codes Work
A QR (Quick Response) code is a two-dimensional matrix barcode invented in 1994 by Denso Wave, a subsidiary of Toyota. Unlike traditional one-dimensional barcodes that store data in parallel lines, QR codes use a grid of black and white squares arranged in a square pattern on a white background. This two-dimensional approach allows QR codes to store significantly more information — up to 7,089 numeric characters or 4,296 alphanumeric characters.
Every QR code contains three key structural elements: finder patterns (the three large squares in the corners) that help scanners detect and orient the code, alignment patterns (smaller squares) that correct for distortion when the code is printed on curved surfaces, and timing patterns (alternating black-white lines) that help the scanner determine the size of the data matrix. The actual data is encoded in the remaining area using Reed-Solomon error correction, which allows the code to be read even when up to 30% of it is damaged or obscured.
QR Code Types Explained
QR codes can encode many different types of data. The scanner's behaviour after reading depends on the data format:
| Type | Prefix / Format | Scanner Action |
|---|---|---|
| Plain Text | No prefix — raw text | Displays the text on screen |
| URL | https://example.com | Opens the link in the default browser |
| mailto:user@example.com | Opens email client with pre-filled recipient, subject, and body | |
| Phone | tel:+1234567890 | Initiates a phone call to the specified number |
| SMS | sms:+1234567890?body=Hello | Opens messaging app with pre-filled recipient and message |
| WiFi | WIFI:T:WPA;S:MyNetwork;P:pass123;; | Automatically connects to the WiFi network (Android/iOS 11+) |
| vCard | BEGIN:VCARD ... END:VCARD | Saves contact details to the phone's address book |
Static vs Dynamic QR Codes
Static QR codes encode data directly into the pattern itself. Once generated, the content cannot be changed — the data is literally part of the image. Static codes work forever without any server dependency, making them ideal for permanent information like WiFi passwords, contact cards, and fixed URLs.
Dynamic QR codes encode a short redirect URL instead of the actual content. When scanned, the redirect URL forwards the user to the real destination. This allows you to change the destination URL at any time without reprinting the QR code. Dynamic codes also support scan analytics (how many scans, when, and from where). The trade-off is that dynamic codes require an active server to handle the redirect — if the service goes down, the QR code stops working.
Real-World Use Cases
- Restaurants & Cafés: Replace printed menus with a QR code linking to a digital menu. Customers scan the code on their table to browse the menu on their phone — easy to update prices and seasonal items without reprinting.
- Business Cards: Add a vCard QR code to your business card. When scanned, the recipient's phone automatically saves your name, phone number, email, and company — no manual typing required.
- Event Tickets & Check-In: Concert venues, conferences, and airlines use QR codes as paperless tickets. Each code contains a unique identifier that is scanned at the gate for fast entry and prevents duplication.
- Product Packaging: Manufacturers embed QR codes on packaging to link to instruction manuals, warranty registration, recipe ideas, or nutritional information without cluttering the label.
- WiFi Sharing: Hotels, co-working spaces, and homes use WiFi QR codes so guests can connect to the network with a single scan — no need to read out complex passwords.
- Payments: In countries like India (UPI), China (WeChat/Alipay), and Brazil (PIX), QR codes are the primary method for peer-to-peer and merchant payments.
QR Code Best Practices
Sizing for Print
The general rule is that the scanning distance should be approximately 10× the QR code's width. A 3 cm QR code works well when scanned from up to 30 cm away (phone held near a table). For a billboard readable from 3 metres, the code should be at least 30 cm wide. Always maintain a quiet zone — a white margin of at least 4 modules (squares) around the code — to ensure scanners can detect the code boundaries.
Contrast and Colour
QR scanners rely on contrast between the dark modules and the light background. The ideal combination is black on white. If you use custom colours, ensure the dark colour has a contrast ratio of at least 4:1 against the background. Avoid inverting colours (white on dark), as many scanners struggle with inverted codes. Never place a QR code on a busy or textured background.
Error Correction Levels
QR codes support four error correction levels: L (7%), M (15%), Q (25%), and H (30%). Higher error correction means the code can tolerate more damage or obstruction — useful if you plan to place a logo in the centre of the code. However, higher error correction also increases the code's complexity (more modules), so use L or M for simple data and reserve H for codes that will be printed on physical materials exposed to wear.
Testing Before Deployment
Always test your QR code with at least three different devices (iPhone, Android, tablet) and two different scanner apps before printing. Check scanning from various angles, distances, and lighting conditions. If the QR code will be printed on merchandise, test with a physical print — screen displays sometimes appear sharper than actual prints.
Frequently Asked Questions — QR Code Generator
A QR (Quick Response) code is a two-dimensional barcode that stores data — such as URLs, text, contact details, or Wi-Fi credentials — in a matrix of black and white squares. It can be scanned instantly by any smartphone camera without a dedicated app.
This generator supports text, URLs, email addresses, phone numbers, SMS, Wi-Fi network credentials, and vCard contact information. QR codes can also encode app store links, payment UPI IDs, geo-coordinates, and calendar events.
A static QR code encodes data directly and cannot be changed after creation. A dynamic QR code stores a short redirect URL, allowing you to update the destination without reprinting the code. Dynamic codes also support scan tracking analytics.
For reliable scanning, print QR codes at a minimum of 2 cm × 2 cm. As a general rule, the scanning distance should be about 10× the QR code size — a 3 cm code works well up to 30 cm away. Always include a white quiet zone (margin) of at least 4 modules around the code.
A standard QR code can hold up to 7,089 numeric characters, 4,296 alphanumeric characters, or about 2,953 bytes of binary data. In practice, keep encoded content concise — shorter content generates a simpler code that scans more reliably.
Common causes include insufficient quiet zone (white border), low contrast between the code and background, printing at too small a size, physical damage or distortion, and using a very dark background colour. Test the code on multiple devices before publishing or printing.