QR Code Generator (WiFi, URL, Text)

Generate QR codes locally in your browser — URL, text, Wi-Fi login, email, phone. Pick a color and size, download PNG. No account, no watermark.

QR code
Embed this tool on your website / blog No code required · Copy and paste
HTML Embed Code (iframe):
<iframe src="https://lucentool.com/qr-code-generator" width="100%" height="650" style="border:1px solid #e5e0d8;border-radius:12px;max-width:850px;width:100%;" frameborder="0"></iframe>
<div style="font-size:12px;color:#78716c;margin-top:6px;font-family:sans-serif;">Powered by <a href="https://lucentool.com/qr-code-generator" target="_blank" style="color:#c85a32;text-decoration:none;">Lucentool - QR Code Generator (WiFi, URL, Text)</a></div>

Why QR codes work

QR codes pack up to ~3,000 bytes (roughly 2,900 ASCII characters, fewer for non-ASCII or dense content) into a square matrix readable by any phone camera. They're self-correcting: up to 30% of the pattern can be damaged and a phone can still decode it — that's the error correction level built in.

Tips from the real world

Under the hood

gen() hands the payload to the QR library, which draws the symbol onto a canvas; switchType() swaps the input template between plain text, URL, Wi-Fi credentials and contact details, and wifiEscape() escapes the characters that would otherwise break the Wi-Fi string — semicolons, commas and backslashes in an SSID are the usual culprits. The canvas is then converted to a PNG data URL so the image can be saved or embedded.

Formats, sizes and other limits

Density grows with payload length: the same physical size holds more modules, and modules that are too small stop being scannable on older phone cameras. When the payload exceeds the library's capacity the page clears the image and reports it rather than showing an unreadable code. Only WPA, WEP and open networks are supported — enterprise 802.1X needs extra fields. Output is raster PNG only, and there is no logo overlay, because covering the centre eats the error-correction budget.

Privacy: nothing is uploaded

The symbol is drawn on a canvas in this tab. A Wi-Fi password you encode exists only inside the image, and nothing about the payload is transmitted.

Frequently asked questions

Why will my phone not scan it?

Usually density or print size. Shorten the payload or render it larger; a code that fills a business card is harder to read than one on a poster.

Can I add a logo in the middle?

Not here. Covering modules reduces the error-correction margin — the code may still look fine and still fail to scan.

Is the PNG suitable for print?

At small sizes the modules blur. Export larger, or generate a vector code in a design tool for anything going to press.