QR Code Generator
Generate QR codes from text or URLs. Generates QR codes following ISO/IEC 18004 standard with configurable error correction levels (L/M/Q/H), allowing 7-30%…
Generates QR codes following ISO/IEC 18004 standard with configurable error correction levels (L/M/Q/H), allowing 7-30% data recovery if the code is damaged.
How Do QR Codes Work?
A QR (Quick Response) code is a two-dimensional matrix barcode defined by ISO/IEC 18004. Data is encoded as dark and light modules arranged in a square grid, with three finder patterns in the corners enabling fast detection at any orientation. The standard supports numeric, alphanumeric, byte, and kanji encoding modes.
Error correction is built into every QR code using Reed-Solomon coding. Four levels are available: L (7% recovery), M (15%), Q (25%), and H (30%). Higher error correction allows the code to remain readable even when partially obscured or damaged, at the cost of increased module count.
QR code versions range from 1 (21×21 modules) to 40 (177×177 modules). The encoder automatically selects the smallest version that can hold the input data at the chosen error correction level.
Formula: Capacity (Version 1, Level L): Numeric: 41 characters Alphanumeric: 25 characters Byte: 17 characters Modules per side = 4 × Version + 17
Example Calculation
Encoding the URL 'https://example.com' (19 bytes) at error correction level M requires Version 2 (25×25 modules). With level H, the same data needs Version 3 (29×29) to accommodate the additional error correction codewords.
When to Use This Calculator
- A marketing team generating QR codes for product packaging, flyers, or business cards linking to a website or app
- A warehouse manager creating QR labels for inventory tracking, bin location identification, or asset tagging
- An event organizer generating QR codes for digital tickets, check-in systems, or Wi-Fi network sharing
- A developer embedding QR codes in an application for data transfer, authentication, or deep linking
Common Mistakes to Avoid
- Choosing too low an error correction level for printed materials — outdoor signs, packaging, and labels get damaged; use Level Q or H for physical prints and Level L only for clean digital displays
- Generating QR codes with too much data — long URLs or text strings create dense codes that are hard to scan, especially at small sizes; keep content under 300 characters or use URL shorteners
- Not testing the QR code on multiple devices before printing — different cameras and scanning apps have varying capabilities; test on at least 3 different phones before mass production
- Using low contrast colors — dark-on-light provides the best scan reliability; avoid light gray on white or dark blue on black; the standard black-on-white is optimal
How to Interpret Results
- The character count shows how much data is encoded — more characters force a higher QR version with a denser module grid, which becomes harder to scan at small print sizes
- If the generated code looks very dense, shorten the content (e.g., use a URL shortener) or select a lower error correction level — both reduce the number of modules
- Higher error correction (L through H) lets the code survive damage or a logo overlay at the cost of density — use Q or H for printed labels in harsh environments and L only for clean digital displays
- Test-scan the preview with several different phones or scanner apps before mass printing — a code that reads on screen can still fail at the final printed size, material, or lighting
- If scanning fails after customizing colors, revert to a dark foreground on a light background — black on white remains the most reliably scannable combination
Related Standards & References
- ISO/IEC 18004:2015 — QR Code bar code symbology specification, defining encoding modes, error correction, and module layout
- GS1 Digital Link — Standard for encoding product identification data in QR codes for retail and supply chain
Frequently Asked Questions
Which error correction level should I choose?
Use Level L for clean digital displays where damage is unlikely (smallest code). Use Level M for general-purpose printing. Choose Level Q or H when the code will be printed on packaging, outdoor signs, or when you plan to overlay a logo on the code — the higher redundancy lets scanners read the code even with 25-30% obscured.
Is there a maximum data size for QR codes?
The largest QR code (Version 40, Level L) can store 7,089 numeric characters, 4,296 alphanumeric characters, or 2,953 bytes. In practice, keeping content under ~300 characters ensures fast scanning on all devices. For long URLs, use a URL shortener first.
Can I put a logo in the center of a QR code?
Yes, if you use error correction level H (30% recovery). The logo obscures some modules, but the Reed-Solomon coding allows the scanner to reconstruct the missing data. Keep the logo under 20% of the QR code area and test scanning reliability on multiple devices before production use.