Skip to main content

QR Code Generator

Try Free →
Generators

How to Generate QR Codes for Free (URLs, WiFi, Contact Cards & More)

Create QR codes for any purpose — website links, WiFi passwords, contact cards, WhatsApp messages. Learn best practices for size, error correction, and print quality.

6 min read
··Updated: 24 May 2026·By Helperzy Team

QR codes have become part of daily life — restaurant menus, payment systems, event tickets, product packaging, and business cards all use them. Creating a QR code takes seconds and costs nothing. This guide covers how to generate QR codes for different purposes, best practices for print and digital use, and common mistakes to avoid.

What QR Codes Can Contain

QR codes are not limited to website URLs. They can encode several types of data: Website URLs: The most common use. Scanning opens the URL in the phone's browser. Plain text: Any text up to about 4,000 characters. Useful for short messages or instructions. WiFi credentials: Encodes network name (SSID), password, and encryption type. Scanning connects the phone to WiFi automatically — no typing needed. vCard contact information: Name, phone, email, address, company. Scanning adds the contact to the phone's address book. Email: Pre-fills recipient, subject, and body. Scanning opens the email app with everything ready to send. SMS: Pre-fills phone number and message text. Phone number: Scanning initiates a phone call. Geographic coordinates: Opens the location in the phone's maps app. The data type is encoded in the QR code itself — the scanning app automatically recognizes what action to take.

Creating QR Codes for Common Use Cases

For your business website: Simply enter your URL. Use the full URL including https:// for security. Consider using a URL shortener first if your URL is very long — shorter URLs produce simpler QR codes that scan more reliably. For WiFi sharing (homes, cafes, offices): Select WiFi type, enter your network name exactly as it appears in WiFi settings (case-sensitive), enter the password, and select the encryption type (usually WPA2). Print and display near the router. Guests scan instead of asking for the password. For WhatsApp direct message: Use the URL format https://wa.me/[country-code][number] — for example, https://wa.me/919876543210 for an Indian number. Scanning opens a WhatsApp chat with that number. For business cards: Create a vCard QR code with your name, title, company, phone, email, and website. Print it on your business card. People scan it instead of manually typing your contact details. For event tickets: Encode a unique ticket ID or URL that your scanning system can verify. Use high error correction since tickets may get folded or damaged.

QR Code Size and Print Guidelines

Size depends on scanning distance: Business cards (scanning from 10-15cm): Minimum 2.5cm x 2.5cm Product labels (scanning from 15-30cm): Minimum 3cm x 3cm Table tents, menus (scanning from 30-50cm): Minimum 4cm x 4cm Posters, signs (scanning from 1-2 meters): Minimum 8cm x 8cm Billboards (scanning from 3+ meters): Minimum 15cm x 15cm Always maintain a quiet zone (white border) around the QR code — at least 4 modules (small squares) wide. This helps scanners identify where the code begins and ends. Color contrast: QR codes work best with dark modules on a light background. You can use colors other than black and white, but maintain high contrast. Never use light-on-dark (inverted) as many scanners struggle with it. File format for print: Always use SVG. It scales to any size without pixelation. PNG works for digital but becomes blurry when enlarged for print.

Error Correction Levels

QR codes have built-in redundancy that allows them to be scanned even when partially damaged or obscured: Level L (Low, 7% recovery): Smallest QR code, least redundancy. Use when the code will be displayed digitally and never damaged. Level M (Medium, 15% recovery): Good balance of size and durability. Default for most uses. Level Q (Quartile, 25% recovery): Good for printed materials that may get scratched or dirty. Level H (High, 30% recovery): Maximum redundancy. Use when adding a logo overlay, or for codes on products that may get damaged during shipping. Higher error correction means more data modules (the code becomes denser/larger), but also means the code survives more damage. For most practical uses, Level M or Q is appropriate.

Common QR Code Mistakes

Not testing after creation: Always scan your QR code with at least 2-3 different phones before printing. What works on your phone may not work on older devices. Making codes too small: A QR code that cannot be scanned is useless. When in doubt, make it larger. Low contrast colors: Light gray on white, or dark blue on black — these fail to scan. Maintain strong contrast between modules and background. Encoding too much data: The more data in a QR code, the denser it becomes and the harder it is to scan. Keep URLs short, use URL shorteners for long links. No call to action: A QR code without context gets ignored. Always add text like 'Scan for menu', 'Scan to connect to WiFi', or 'Scan for contact details'. Pointing to non-mobile-friendly pages: Most QR scans happen on phones. If your QR code links to a website, that page must be mobile-responsive.

Key Takeaway

QR codes are free, permanent, and take seconds to create. The key to effective QR codes is: choose the right data type for your use case, size appropriately for the scanning distance, use high contrast colors, test before printing, and always include a clear call to action telling people what they will get by scanning.

Frequently Asked Questions

Do QR codes expire?

Static QR codes (containing the data directly) never expire. They work as long as the content they point to exists. If your QR code links to a URL, it works forever — unless you take down the website. Dynamic QR codes (which redirect through a service) can expire if the service shuts down.

What is the best size for a printed QR code?

Minimum 2cm x 2cm for close-range scanning (business cards, product labels). For posters or signs meant to be scanned from a distance, use at least 5cm x 5cm. The rule of thumb: the QR code should be at least 1/10th of the scanning distance.

Should I download QR codes as PNG or SVG?

Use SVG for print materials — it scales to any size without pixelation. Use PNG for digital use (websites, presentations, social media) where you know the exact display size. SVG files are also smaller in file size.

Can I put a logo in the center of a QR code?

Yes, if you use high error correction (level H, 30% redundancy). This allows up to 30% of the QR code to be obscured while still scanning correctly. Keep the logo small (no more than 20% of the QR area) and test scanning after adding it.