QR Code Generator

Generate and download QR codes for any URL or text. Customize size, colors, and error correction level.

runs locally on your browser. Your data never leaves your device.

Size

Error correction level

256 × 256px · Error correction: M

Common Use Cases

Generate a QR code for your business website or landing page to print on flyers, business cards, or product packaging so customers can reach your site with one scan
Create a Wi-Fi QR code by encoding the connection string (format: WIFI:S:NetworkName;T:WPA;P:Password;;) so guests can join your network without typing credentials
Build a QR code for a payment link or invoice URL to add to receipts or invoices, allowing clients to pay instantly from their phone
Produce a high-error-correction QR code (level H) with a custom color scheme to overlay your logo on the center, maintaining brand identity while keeping the code scannable

About QR Code Generator

A QR code (Quick Response code) is a two-dimensional matrix barcode invented by Denso Wave in 1994. It encodes data as a pattern of black and white squares that any camera-enabled device can read instantly. Unlike one-dimensional barcodes, QR codes can store hundreds of characters (URLs, contact cards, Wi-Fi credentials, plain text, and more) in a compact, scannable image.

How QR codes work: Data is encoded using Reed-Solomon error correction, which means a QR code remains readable even when part of it is damaged, dirty, or obscured. The error correction level you choose (L, M, Q, H) controls how much of the code can be lost while still allowing full recovery: L handles 7%, H handles 30%. Higher correction makes the code denser but more resilient.

Size and resolution: The physical size of a QR code doesn't affect what it encodes, but it does affect scan reliability. A 256 px image is ideal for web and digital use. 512 px or 1024 px are better for print materials where you need crisp output at larger sizes.

Color customization: Any high-contrast foreground/background combination works. The scanner measures the contrast between dark modules and the light background, so ensure at least a 4:1 contrast ratio. Avoid light-on-dark QR codes in environments where readers may not support inverted colors.

Where QR codes are used: Product packaging, restaurant menus, business cards, event tickets, Wi-Fi sharing, payment links, marketing campaigns, and app deep links. They bridge physical and digital worlds with a single camera scan, requiring no app on modern smartphones.

Frequently Asked Questions

What types of content can a QR code encode?
QR codes can encode URLs, plain text, email addresses, phone numbers, SMS messages, Wi-Fi credentials (SSID + password), vCards (contact info), and geographic coordinates. This tool accepts any URL or plain text and encodes it directly.
What is error correction and which level should I choose?
Error correction lets a QR code be read even when partially damaged or obscured. Level L (7% recovery) produces the smallest code and is fine for clean digital displays. Level M (15%) is the safe default. Level Q (25%) is good for print materials that may get dirty. Level H (30%) is best when you plan to overlay a logo on the QR code, since the logo covers part of the pattern.
Can I use a colored QR code instead of black and white?
Yes: any color combination works as long as the foreground and background have sufficient contrast. Dark foreground on light background is the most reliable. Light-on-dark can fail with some older readers. Avoid similar colors (e.g. dark blue on black) as they may be unreadable.
Should I download PNG or SVG?
Use PNG for web pages, social media, and anywhere a raster image is expected. Use SVG for print, large-format materials, or anywhere you need the QR code to scale without pixelation, since SVG is infinitely sharp at any size.
Is the QR code generated on my device or sent to a server?
Entirely on your device. The qrcode library runs client-side in your browser, so no data is sent to any server. This means your URLs and text stay private, and generation works offline once the page has loaded.
What size should I use for print vs. digital?
256 px is ideal for digital use (websites, emails, presentations). For print, use 512 px or 1024 px, or download the SVG which scales losslessly. As a rule of thumb, the printed QR code should be at least 2 cm × 2 cm (about 0.8 in × 0.8 in) to be reliably scanned from a normal distance.