ModernCalcs

Qr Code Generator

Free high-precision, offline-first client-side Qr Code tools with dynamic sliders and calculations.

Workspace Controls

Calculated Sum (A + B)
-
Double-precision floating-point compliance active.
Analysis Parameters
Difference Result (A - B)-
Multiplying Output (A * B)-
Proportion Ratio (A / B)-

How QR Codes Work — and How to Generate One That Scans Reliably

A QR (Quick Response) code is a 2D matrix barcode that encodes data as a pattern of black and white squares. Unlike a 1D barcode that stores only ~20 characters, a QR code stores thousands — URLs, contact cards, WiFi credentials, or any text — and can be read from any angle, even when partially damaged. This generator runs entirely in your browser: nothing you encode is sent to any server.

Formula
Maximum binary capacity = 2,953 bytes at Version 40, Error Correction Level L

Each step up in error correction level reduces capacity by roughly 25–30%. For reliable URL encoding, keep your URL under 500 characters and use error correction Level M.

QR Data Encoding: Four Modes

QR codes encode data in one of four modes based on the character set used. Numeric mode (digits 0–9 only) is the most compact — 3.33 bits per character. Alphanumeric mode adds uppercase letters and 9 symbols (space, $, %, *, +, -, ., /, :). Byte/Binary mode handles full UTF-8 text including lowercase letters, which URLs require — at 8 bits per character. Kanji mode encodes double-byte Japanese and Chinese characters efficiently. The encoder automatically selects the best mode for your input.

Error Correction Levels Explained

Every QR code contains Reed-Solomon error-correction data so it can be decoded even when part of the code is damaged. The four levels — L, M, Q, H — allow 7%, 15%, 25%, and 30% of the code surface to be destroyed and still recover correctly. Higher error correction means more redundant data, which makes the code physically larger or denser. For print materials that may get dirty or worn, use Level Q or H. For a clean digital screen, Level L or M is sufficient and produces a smaller, cleaner code.

Print Size and Quiet Zone Rules

Two rules ensure your printed QR code actually scans. First, size: the physical side length should be at least 1/10th of the expected scanning distance. A code meant to be scanned from 3 meters needs to be at least 3 cm (about 1.2 inches) on each side. Second, quiet zone: every QR code requires a blank white border of at least 4 module-widths on all sides. Printing the code flush to the edge of a box or label — without this quiet zone — is the most common reason codes fail to scan in the real world.

Static vs Dynamic QR Codes

This generator creates static QR codes — the full destination URL or data is encoded permanently in the image. They work forever with no server dependency and no subscription. Dynamic QR codes, offered by paid services, encode a short redirect URL; the destination can be updated later and scan counts tracked. The tradeoff: if the redirect service goes down or you cancel, every code printed stops working. For personal use, events, and most business cards, static codes are the right choice.

Frequently Asked Questions

How much data can a QR code hold?

It depends on the data type and QR version. A Version 40 QR code (the largest) can hold up to 7,089 numeric characters, 4,296 alphanumeric characters, or 2,953 bytes of binary data. Practical URLs with UTM parameters typically fit comfortably within a Version 10–15 code.

What is QR code error correction?

Error correction lets a QR code be read even when part of it is damaged, dirty, or obscured. There are four levels: L (7% of data can be restored), M (15%), Q (25%), and H (30%). Higher correction means more redundancy — the code becomes denser. Level H is ideal for printed codes that may get worn; Level L works fine for clean digital displays.

What size should a QR code be for printing?

A practical rule: the minimum side length in cm should be at least 1/10th of the scanning distance in cm. For a poster read from 3 meters, you need at least a 3 cm (1.2 inch) QR code. Always include a quiet zone — a blank white border of at least 4 module-widths — around the entire code, or scanners will fail.

Can a QR code expire?

Static QR codes — like those generated here — encode the data directly into the image and never expire. They will work forever as long as the URL or content they point to remains valid. Dynamic QR codes (offered by paid platforms) use a redirect URL that can be deactivated, but they depend on the provider's servers staying online.

What is the difference between static and dynamic QR codes?

A static QR code bakes the full destination into the code itself — it cannot be changed after generation. A dynamic QR code uses a short redirect URL; the destination can be edited at any time without reprinting, and scan analytics are available. Static codes (like ours) are simpler, fully private, and work indefinitely without a third-party service.

Can I customize the appearance of a QR code?

Yes, but carefully. Custom colors, embedded logos, and rounded dots are all possible. The key constraint: error correction must be set to Level H (30%) when adding a logo, since the logo covers part of the code — that covered area is subtracted from the error correction budget. Always use a dark color for modules and a light background; inverting this causes most scanners to fail.

What data formats does a QR code recognize automatically?

Smartphone cameras auto-detect several standard formats: plain URLs (https://...), email addresses (mailto:...), phone numbers (tel:...), SMS (smsto:...), WiFi credentials (WIFI:S:SSID;T:WPA;P:password;;), and vCard contact data. For anything else, the scanner displays the raw text.

Is my data sent anywhere when I generate a QR code here?

No. The entire QR code is generated client-side using JavaScript. Your URL, text, or contact data never leaves your device. There are no server requests made during generation, and no account is required.