How to Create QR Codes for URLs, Wi-Fi, and Contact Cards

· 9 min read

QR codes are everywhere: restaurant menus, business cards, product packaging, event tickets, payment apps, vaccine passports. They are a quick way to get someone from the physical world to a digital destination without typing a URL, dictating a Wi-Fi password, or copying contact details. Creating one takes seconds, costs nothing, and (unlike short-link services) the QR code keeps working forever because the destination is encoded directly in the image.

A short history of the QR code

QR codes were invented in 1994 by Masahiro Hara and a small team at Denso Wave, a subsidiary of Denso Corporation, the largest automotive components manufacturer in Japan. The "QR" stands for "Quick Response": Toyota's factories needed a barcode that could be read in any rotation, store more data than a Code 39 barcode, and be scanned almost instantly so assembly lines did not stall. The result was a square two-dimensional code with three large position-detection patterns at the corners that let any scanner determine orientation in a single frame.

Denso Wave published the design openly. ISO standardised it as ISO/IEC 18004 in 2000, with revisions in 2006 and 2015. Crucially, Denso Wave chose never to enforce its patents, which let QR codes spread freely. Japan adopted them first for everything from supply-chain tracking to vending machines; Asia and Europe followed in the 2000s. The breakthrough in the West came when iOS 11 (September 2017) and Android (via Google Lens, also 2017) added native QR scanning to the camera app, eliminating the need for a separate scanning app. The 2020-2021 pandemic finished the job: every restaurant, every gym, every museum suddenly needed a contactless menu or check-in, and the QR code was already in every pocket.

Today the QR code carries hundreds of billions of scans per year. WeChat Pay and Alipay in China rest entirely on it; UPI in India ships QR-driven payments to a billion users; vCards on business cards have all but replaced typed contact details. It is one of the few 30-year-old standards that became more useful, not less, with time.

What QR codes can do

A QR code is a way to encode a text payload into a scannable image. What happens when someone scans it depends on the format of that text:

The QR code itself does not care; the scanning device's URL handlers decide.

How a QR code is built

A QR code is a square grid of black-and-white "modules" (the tiny squares). The structure is fixed:

QR codes come in 40 versions, from version 1 (21x21 modules, max ~25 alphanumeric characters at error-correction L) to version 40 (177x177 modules, max ~4,296 alphanumeric characters at L). The generator picks the smallest version that fits your payload at the chosen error-correction level.

How to create a QR code

  1. Choose the QR code type: URL, plain text, Wi-Fi network, vCard, email, phone, SMS, or geo. The tool builds the right payload format for you.
  2. Enter your content: paste the URL or fill in the structured fields. The QR preview updates as you type.
  3. Pick an error-correction level: L (low) for digital screens, M (medium) for general use, Q (quartile) for printed material that may get worn, H (high) if you want to overlay a logo.
  4. Customise look (optional): adjust foreground colour, background colour, module shape, and add a logo in the centre. Always keep enough contrast.
  5. Download: PNG for screens, SVG for print, PDF if you want to drop the code into a layout. The tool also generates a 32x32 thumbnail you can preview-test before exporting.

Understanding error correction

QR codes have built-in redundancy so they can still be scanned even if part of the code is damaged or obscured. There are four levels:

Level Recovery Best for
L (Low) ~7 % Clean digital screens, short data
M (Medium) ~15 % General use, the default
Q (Quartile) ~25 % Printed materials that may get worn
H (High) ~30 % Codes with a logo overlay, outdoor use, packaging that will get dirty

Higher error correction means the QR code has more data modules (more tiny squares), so the same payload becomes a denser code that needs to be printed slightly larger to remain scannable. The trade-off is reliability against size.

Practical uses

For businesses:

For events:

For personal use:

Tips for QR codes that work well

Common pitfalls

Alternatives and adjacent code formats

QR is the most universal 2D code but not the only one. Different formats win in different contexts.

Format Capacity Strength Where it shines
QR Code Up to ~4,296 alphanumeric chars Universal scanner support, free Marketing, menus, Wi-Fi, payments
Data Matrix (ISO/IEC 16022) Up to ~2,335 alphanumeric chars Very compact for short payloads Industrial part marking, pharmaceuticals
PDF417 (ISO/IEC 15438) Up to ~1,850 alphanumeric chars Long horizontal "stacked" format Boarding passes, driver licences
Aztec (ISO/IEC 24778) Up to ~3,067 alphanumeric chars No quiet zone required Train tickets, ID cards
Code 128 (linear) Short numeric/alphanumeric One-dimensional, fast for tiny printers Shipping labels, retail price tags
Maxicode Fixed 93 alphanumeric chars Designed for high-speed reading UPS shipping labels
Han Xin Code (GB/T 21049) Larger than QR Better at encoding Chinese characters China, government and logistics
micro-QR Up to 35 alphanumeric chars Tiny, fewer modules Small electronics labels
Apple App Clip Code URL only Built into iOS, no scanner needed App Clips on Apple devices

For nearly all consumer-facing uses, QR Code is the right answer because every modern phone scans it natively. The others are specialised.

Privacy and the generator

The QR code generator runs entirely in your browser. The URL, Wi-Fi password, vCard, or other payload you enter is rendered to a QR matrix by JavaScript on your device, the resulting PNG or SVG is offered as a download, and nothing is sent to a server. Nothing is logged, no shortened URL is created, and no third-party tracker is added to the destination. For payloads that genuinely matter (your home Wi-Fi password, an unreleased product URL, an internal Zoom link, your personal mobile number), that local-only flow is the difference between trusting a stranger's URL shortener and trusting no one. The whole tool can run offline once the page is loaded, which you can verify by switching off your network and regenerating the same code.

Frequently Asked Questions

What can I put in a QR code?

URLs, plain text, Wi-Fi credentials, contact cards (vCard), email addresses, phone numbers, geographic coordinates, calendar events. The QR code simply encodes a text payload, the scanning device decides what to do with it based on the prefix (https for a URL, WIFI for a Wi-Fi join, MATMSG for an email, etc.).

What format should I download, PNG or SVG?

Use PNG for digital screens (websites, social media, presentations). Use SVG for print materials (business cards, posters, flyers) because SVG scales to any size without losing sharpness. PDF is a third option for layouts that already use it.

How small can a QR code be printed?

The minimum practical size is about 2 cm (0.8 inches) square for short URLs. Codes with more data or higher error correction need to be larger because they contain more modules (the small squares). The rule of thumb is that each module should be at least 0.4 mm at the scanning distance. Always test by scanning before printing a large batch.

Do QR codes expire?

Static QR codes (like the ones generated by this tool) never expire. They encode the data directly, so they work as long as the destination exists. A QR code pointing to a URL will work forever, but if the website goes down, the link will not. Dynamic QR codes (offered by some paid services) point to a redirector you control, which lets you change the destination later at the cost of depending on that vendor staying alive.

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

Yes. The QR code error correction lets you cover 7-30 % of the surface (depending on the level you choose) and still scan reliably. Pick error correction H for a visible logo, keep the logo under 20 % of the area, and always test the scan with several phones before printing.

Are QR codes patented?

No. Denso Wave invented QR codes in 1994 and ISO standardised them as ISO/IEC 18004 in 2000. Denso Wave holds patents but has chosen not to enforce them, so QR codes are royalty-free for use under the published standard.