QR Code Generator Guide: Create QR Codes for URLs, WiFi & More

TK
Toolshubkit Editor
Published Jan 2025
8 MIN READ • Developer Utilities
QR codes are the bridge between physical and digital — a printed pattern that instantly opens a URL, connects to WiFi, or adds a contact. Our QR Generator creates high-resolution QR codes for any data type, locally in your browser, with no tracking or data collection.

Technical Mastery Overview

PNG/SVG Export
Custom Colors
Error Correction H
Local Rendering

How QR Codes Work

QR (Quick Response) codes are 2D matrix barcodes that encode data as a grid of black and white squares. Unlike 1D barcodes (which can only hold ~20 characters), QR codes can hold up to 7,089 numeric characters or 4,296 alphanumeric characters.

The QR code standard (ISO/IEC 18004) defines the encoding, error correction, and finder pattern structure. The three large squares in the corners are finder patterns — they let the scanner detect orientation regardless of how the code is held.

Data Capacity by Type

Data type Maximum capacity
Numeric only (0–9) 7,089 characters
Alphanumeric (A–Z, 0–9, spaces, symbols) 4,296 characters
Binary / UTF-8 text 2,953 bytes
Kanji characters 1,817 characters

For a URL like https://toolshubkit.com/tool/qr-generator, the QR code needs approximately 40 characters. For a WiFi password or vCard, you might use 200–500 characters. For long text content, you'll approach the capacity limit — which increases code complexity and reduces scan reliability.

Practical rule: keep QR code data under 100 characters when possible. Use URL shorteners for long URLs before encoding them.

Error Correction Levels

QR codes can recover from physical damage — torn corners, smudges, low-quality printing — because they include redundant data. Four error correction levels:

Level Recovery Module increase Use when
L (Low) 7% Smallest code Clean digital displays
M (Medium) 15% Moderate General use
Q (Quartile) 25% Larger Industrial environments
H (High) 30% Largest Logo overlay, damaged surfaces

Higher error correction = more modules (smaller squares) = harder to scan at small sizes.

Practical guidance:

  • Digital screens (monitors, tablets): Level L or M — no physical damage risk
  • Print on paper: Level M — minor smudging, folding, or wear
  • Outdoor or industrial: Level Q or H — UV damage, moisture, dirt
  • Logo in center: Level H — the logo covers part of the code, error correction recovers it

Common QR Code Use Cases

URL linking

The most common use. The URL is encoded directly:

https://your-website.com/landing-page?utm_source=qr&utm_medium=print&utm_campaign=brochure

Include UTM parameters to track QR code traffic in your analytics. Our URL Encoder ensures special characters in UTM parameters are properly encoded.

WiFi credentials (WPA/WPA2)

Encoded in a specific format:

WIFI:T:WPA;S:YourNetworkName;P:YourPassword;;

Fields: T: = security type (WPA, WEP, nopass), S: = SSID, P: = password. iOS 11+ and Android 10+ scan these natively without an app. Use H error correction since passwords often contain special characters.

Generate the password itself with our Password Generator — a strong WiFi password encoded in a QR code is significantly more usable than a complex password users would have to type manually.

Contact cards (vCard)

BEGIN:VCARD
VERSION:3.0
FN:Jane Smith
ORG:Acme Corporation
TEL:+1-555-867-5309
EMAIL:jane@example.com
URL:https://jane.example.com
END:VCARD

Scanning this adds the contact directly to the phone's address book. Keep vCards under 300 characters for reliable scanning — include only essential fields.

Plain text / location / email

mailto:contact@example.com?subject=Hello&body=I%20found%20you%20via%20QR
geo:37.7749,-122.4194

Email links and geo coordinates open the native app on the device when scanned.

Design and Print Guidelines

Minimum print size

QR codes need adequate resolution to be scanned reliably:

Use case Minimum size
Business card 2 × 2 cm (0.8 × 0.8 in)
Flyer / poster 3 × 3 cm (1.2 × 1.2 in)
Outdoor signage (scanning from 1m) 8 × 8 cm (3 × 3 in)
Billboard (scanning from 5m) 40 × 40 cm (16 × 16 in)

Rule of thumb: the viewing distance divided by 10 gives the minimum QR code size. At 1 meter, minimum size is 10cm.

Contrast requirements

QR codes need high contrast — dark modules on a light background. The scanner reads the luminance difference. Common mistakes:

  • Dark background: inverse the colors (white modules on dark background is fine)
  • Low contrast: dark gray on medium gray often fails to scan
  • Colorized: blue on red fails for many scanners — the contrast is hue-based but scanners read luminance
  • Brand colors: test any color substitution on real devices before printing

Quiet zone

QR codes require a margin of at least 4 modules of white space on all sides — this is the "quiet zone." Without it, scanners can't find the boundaries of the code. Our generator includes the correct quiet zone automatically.

Testing before printing

Always test on multiple devices and apps before committing to a print run:

  • iOS Camera app
  • Android Camera app
  • QR code scanner apps (QR & Barcode Scanner, Scan)
  • Test from various distances and angles
  • Test on the actual material (glossy paper, fabric, screen) — reflective surfaces can affect scan reliability

Static vs Dynamic QR Codes

Static QR codes (what our tool generates): the destination URL is encoded directly in the pattern. Changing the destination requires printing new codes. No tracking by default.

Dynamic QR codes: encode a short redirect URL. You change the destination through a dashboard without reprinting. These require a third-party service that logs scans.

For most use cases — personal use, small print runs, sensitive destinations — static QR codes from our local generator are preferable. Your destination URL is never sent to a server.

Privacy: Local Generation

Cloud QR generators receive every URL, WiFi credential, and piece of text you encode. This is a problem for:

  • Internal WiFi passwords being logged by a third party
  • Employee contact information in vCards
  • Pre-launch URLs that shouldn't be indexed or known publicly

Our generator computes the QR code entirely in your browser using the qrcode library. The data you encode never leaves your tab.

Experience it now.

Use the professional-grade QR Code Generator with zero latency and 100% privacy in your browser.

Launch QR Code Generator
A QR code is only as good as its scan rate. Choose the right error correction, test on real devices, print at adequate size, and ensure the destination works before the QR is live in the world.