QR Code Generator

Type or paste text, a URL, or any message. Get a QR code you can download or print.
Your QR code will appear here.
Privacy note: QR codes are generated entirely in your browser. Nothing you type is sent to any server.

How QR code generation works

A QR code is a two-dimensional barcode that encodes text, URLs, or other data in a pattern of black and white squares. A phone camera reads the pattern and decodes the content. The tool produces valid QR codes using the qrcode-generator library — a well-tested, widely-used implementation that produces reliably scannable codes.

How the encoding works

The QR code spec defines 40 different "versions" — grid sizes from 21×21 to 177×177 modules. Each version can hold more data. The tool automatically picks the smallest version that fits your content at the error correction level you've chosen.

Within each version, the data is encoded as bytes (UTF-8), grouped into blocks, and supplemented with Reed–Solomon error correction codes. Then the pattern is drawn: three large position markers at the corners, smaller alignment markers, timing patterns, and the data modules filled in between.

Error correction levels

The QR code spec defines four levels of error correction. Higher levels make the code more robust to damage — a scuffed print, a bit of a coffee stain, or a partially obscured code can still scan — but they also reduce the amount of data that can fit in a given version.

Sizing recommendations

The physical size of the QR code matters when scanning. A code that will be printed small (like on a business card) needs a simpler version — shorter content, lower error correction. A code for a billboard can be complex because it's physically large enough to scan at a distance.

Rule of thumb: scan distance ≈ 10× the width of the QR code.

A 2-inch QR code can be scanned from about 20 inches away. A 4-inch code from about 40 inches. Keep that ratio in mind when sizing for print.

Common questions

← Back to Your Online Helper