QR Code Generator

Generate a QR code from any text or URL. Customize colors and size, then download as PNG or SVG.

Updated

24 / 2,331
Customize

How It Works

QR codes (Quick Response codes) follow the ISO 18004 standard. Each code encodes data as a grid of black and white squares. When a smartphone camera scans the grid, it decodes the pattern back into text, a URL, or other data and acts on it - typically by opening a link.

This tool generates QR codes entirely in your browser. No text or URL is ever sent to a server. The preview updates in real time as you type, and you can download the result as a scalable SVG or a high-resolution 512x512 PNG.

Choosing the Right Error Correction Level

Every QR code includes redundant data so it can still be read even if part of the code is damaged or obscured. There are four levels:

  • L - Low (7%): The smallest, densest QR code. Use only for clean digital displays where nothing will cover or damage the code.
  • M - Medium (15%): The default and the right choice for most use cases - good balance of density and durability.
  • Q - Quartile (25%): A good pick for print materials like flyers or posters that might pick up minor scuffs.
  • H - High (30%): Maximum redundancy. Use when the code will be printed on a curved surface, embossed into packaging, or placed somewhere that could get dirty.

Higher error correction produces a more complex QR pattern, which can be slightly harder for older scanners to read. For typical uses, stick with M.

Tips for QR Codes That Scan Reliably

  • Keep enough contrast. Dark on light is the classic and most reliable combination. Avoid low-contrast color pairs like dark gray on black - most scanners need a clear difference between the foreground and background.
  • Size it appropriately. A printed QR code should be at least 2 cm x 2 cm (roughly 0.8 in). The further away the scanner will be held, the larger the code needs to be.
  • Leave a quiet zone. The white border around the QR code (the "quiet zone") is part of the spec. Do not crop it tightly or place the code directly against a busy background.
  • Test before distributing. Scan your own QR code with at least two different devices before printing or publishing it at scale.
  • Shorter URLs scan faster. If you are linking to a long URL, consider using a URL shortener first. A shorter input means a less dense QR pattern, which scans more reliably at smaller print sizes.

Frequently Asked Questions

What is a QR code?
A QR code (Quick Response code) is a two-dimensional barcode that encodes text, URLs, contact details, and more. Smartphone cameras can scan them to instantly open a link or read the data.
How much data can a QR code hold?
Up to 2,953 bytes - that is 2,953 ASCII characters, or fewer if your text contains multi-byte characters (like emoji or accented letters). This tool shows you a live byte count and blocks generation if you exceed the limit.
What error correction level should I use?
M (Medium, 15%) is the right default for most uses. Use H (High, 30%) for printed codes on surfaces that may get damaged. Use L (Low, 7%) only when you need to encode a lot of data and the display will always be pristine.
PNG or SVG - which should I download?
SVG for print, large formats, or anywhere you need infinite scalability. PNG for digital sharing, apps, or platforms that don't support SVG. The PNG is exported at 512x512 px for high resolution.
Is my data private?
Yes. Everything runs in your browser. Your text and URLs are never sent to any server.
Why won't my QR code scan?
Common causes: the code is too small, there is not enough contrast between foreground and background, or the quiet zone (white border) has been cropped. Try increasing the error correction level to Q or H, making the code larger, or switching to the classic black-on-white combination.

Explore More Tools

Send Feedback

QR Code Generator
Generate a QR code from any text or URL. Download as PNG or SVG instantly.
AI Token Calculator
Paste any text and instantly see token count, context usage, and estimated cost for GPT, Claude & Gemini models.
AI Prompt Improver
Score your AI prompt across 7 quality dimensions and get an improved version instantly.
Unix Timestamp Converter
Convert Unix timestamps to human-readable dates and back. See the current epoch time live, with timezone support.
Markdown to PDF
Convert Markdown to a clean, printable PDF. No installs required.
Username Generator
Generate unique usernames with style options and bulk generation.
Deep Link Tester
Test and debug deep links, Universal Links (iOS), and App Links (Android) directly in your browser.
Word Counter
Count words, characters, sentences, and estimate reading time.
Password Generator
Generate strong, secure passwords with custom length and character options.
URL Slug GeneratorSoon
Convert any title into a clean, SEO-friendly URL slug.