QR Code Generator — Complete Guide
What is a QR Code?
A QR code (Quick Response code) is a 2D barcode that stores data — URLs, plain text, WiFi credentials, contact details, email, SMS — and can be scanned instantly by a smartphone camera. Unlike a traditional barcode, a QR code holds thousands of characters and scans at any angle.
This free QR code generator creates high-quality QR codes in your browser — no sign-up, no watermark, no server upload. Customize size, margin, colors, and error correction, then download as PNG (screen) or SVG (print).
How to Generate a QR Code
- Enter your content — a URL, plain text, phone number, or WiFi credentials.
- Set the size — from 128 px to 1024 px using the slider.
- Adjust the margin — the quiet zone around the QR pattern (4 modules is standard).
- Choose error correction — L, M, Q, or H. Use Q or H if printing small or adding a logo.
- Pick colors — dark foreground, light background for best scan rate.
- Download as PNG (screen) or SVG (print).
Tool Options Explained
Size (128–1024 px)
Output image dimensions. Larger = better for print.
Margin (0–16)
Quiet zone around the QR. Use 4+ for reliable scanning.
Error Correction
L / M / Q / H — higher survives more damage.
Colors
Foreground and background — keep high contrast.
PNG or SVG
PNG for screen, SVG for print and scaling.
Copy PNG
One-click copy the PNG image to the clipboard.
Error Correction Levels
| Level | Recovery | Best for |
|---|---|---|
| L | 7% | Clean digital displays |
| M | 15% | General use (default) |
| Q | 25% | Small print, logos |
| H | 30% | Harsh environments, branded QR codes |
What You Can Encode
URLs
Open a website, landing page, or menu.
Plain Text
Any text — up to ~3,000 characters.
WiFi
Share network name and password.
vCard
Save contact info on scan.
Pre-fill a message to a specific address.
Phone / SMS
Open dialer or compose SMS.
Best Practices
- Choose the right error correction: use Q or H for print, logos, or any harsh environment.
- Optimize for mobile scanning: 2 cm × 2 cm minimum for print; test on iOS and Android before publishing.
- Use short, clean URLs: simpler patterns scan faster. Add UTM tags for analytics.
- Print & branding: keep high contrast. Logos should cover less than 30% of the code and never obscure the three corner alignment squares.
- Quiet zone: leave a white margin of at least 4 modules around the QR code.
- Test scan: always scan with a phone before publishing.
Common Use Cases
- Restaurants: digital menus accessed by scanning at the table.
- Business cards: vCard QR — one scan saves the contact.
- WiFi sharing: guests connect without typing the password.
- Marketing: posters, flyers, and packaging that link to a landing page.
- Events: ticket check-in, schedules, or venue maps.
- Payments: UPI, PayPal, and other payment QR codes.
Common QR Code Mistakes
- Too small: QR codes under 2 cm are unreliable to scan in print.
- Low contrast: grey-on-white or colored QR codes often fail.
- Inverted colors: light QR on dark background is unreadable by many scanners.
- Logo covering alignment squares: keep the three corner squares visible.
- No quiet zone: missing margin prevents the scanner from finding the QR edges.
- Long URLs: longer URLs create denser patterns that are harder to scan.
Privacy & Security
All QR generation happens entirely in your browser using the open-source qrcode library. Your text or URL never leaves your device. No QR code you generate is uploaded, logged, or stored on a server. The generated image is created locally and downloaded directly.
Pro Tips
- Use SVG for print — it scales to any size without pixelation.
- Increase margin for print — use 4+ modules, more for small codes.
- Track with UTM parameters — measure scans with Google Analytics.
- Use dynamic QR codes for print so the destination URL can be updated without reprinting.
- Always test on multiple devices — iPhone and Android cameras behave differently.
Frequently Asked Questions
What is a QR code?
A QR (Quick Response) code is a 2D barcode that stores data — URLs, plain text, WiFi credentials, contact info — and can be scanned instantly by a smartphone camera. It holds far more data than a traditional barcode and scans at any angle.
What error correction level should I use for QR codes?
Use Q (25%) or H (30%) for small print or when adding a logo in the center. L (7%) and M (15%) are fine for clean, well-lit digital display. Higher levels survive more damage but store less data.
How big should my QR code be for printing?
Minimum 2 cm × 2 cm is recommended for print. As a rule of thumb, scan distance ÷ 10 = minimum size — a 1 m scan distance needs a 10 cm QR code. Always test on iOS and Android before printing.
What is the difference between PNG and SVG?
PNG is a raster image — fixed pixels. It is fine for screen use. SVG is a vector format — it scales to any size without pixelation, making it the best choice for print and logos. This tool generates both.
Do short URLs help QR code scanning?
Yes. Shorter URLs make the QR pattern simpler, which scans faster and is more reliable — especially at small sizes. Use a URL shortener or UTM-tagged tracking links so you can measure scans.
Can I customize the QR code colors?
Yes. Choose any foreground and background color. Keep high contrast — dark foreground on light background — for reliable scanning. Avoid inverted colors (light on dark) unless you test extensively.
What do the margin and size sliders do?
Size controls the output image dimensions (128–1024 px). Margin controls the quiet zone around the QR pattern — at least 4 modules is recommended. A larger margin makes scanning more reliable.
Does the QR code expire?
No. Static QR codes never expire — the data is baked into the pattern. As long as the destination URL is live, the QR code works. Dynamic QR codes (via a redirect) can be edited or expired, but they depend on a service.
Are QR codes safe?
QR codes themselves are safe — they are just data. The risk is what they link to. Always preview the URL after scanning before entering personal data or making a payment.