QR Code Generator

Create QR codes for text, URLs, contact information, WiFi passwords, and more.

Select QR Code Type

Text
Plain text
URL
Website link
Email
Email message
Phone
Phone number
SMS
Text message
WiFi
Network info
Contact
Business card

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:

TypePrefix / FormatScanner Action
Plain TextNo prefix — raw textDisplays the text on screen
URLhttps://example.comOpens the link in the default browser
Emailmailto:user@example.comOpens email client with pre-filled recipient, subject, and body
Phonetel:+1234567890Initiates a phone call to the specified number
SMSsms:+1234567890?body=HelloOpens messaging app with pre-filled recipient and message
WiFiWIFI:T:WPA;S:MyNetwork;P:pass123;;Automatically connects to the WiFi network (Android/iOS 11+)
vCardBEGIN:VCARD ... END:VCARDSaves 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

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

Written and reviewed by the FreeBytes Editorial Team · Last updated: June 2026