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

Common Mistakes to Avoid

How to Interpret Results

Related Standards & References

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.