3tej home
← Utilities

What is QR Code Generator?

A QR Code Generator produces a qr code on demand, using a deterministic algorithm or a cryptographically strong random source. Output is generated entirely in your browser so nothing is sent to a server. Common for sharing Wi-Fi credentials, URLs and contact cards.

Interactive generator

QR code generator

Type any text or URL to render a scannable QR code in the browser.

Rendered offline. Image is a data URI; right-click to save.

QR Code Generator

URL, vCard, WiFi, UPI, geo. 6 dot styles, custom colors, gradients, logo overlay. Download as PNG or SVG.

About this tool

The QR Code Generator creates scannable QR codes for URLs, text, vCard contacts, WiFi credentials, email, and geographic locations. All processing happens in your browser - your data never leaves your device. Download the generated QR code as a PNG image.

FAQ

What QR types are supported?

URL, plain text, vCard, WiFi auto-connect, email, and geo coordinates.

Is there a size limit?

QR codes can store up to ~4,296 alphanumeric characters. For best scanning, keep data under 500 characters.

How QR codes actually work

A QR (Quick Response) code is a two-dimensional matrix barcode invented by Masahiro Hara at Denso Wave (a Toyota subsidiary) in 1994 to track auto parts. Denso Wave still holds the trademark on "QR Code" but waived all patent royalties, which is why every modern phone can scan one for free. The standard is ISO/IEC 18004:2015.

Every QR code contains four structural elements:

  • Finder patterns - the three large squares in the corners. They tell the scanner where the code starts and what orientation it is in.
  • Alignment patterns - smaller squares scattered inside, used to correct for perspective distortion (camera tilt).
  • Timing patterns - alternating dark/light dots between the finder patterns; they encode the grid size.
  • Data + error-correction modules - the actual encoded message, interleaved with Reed-Solomon error-correction bytes.

Error correction levels

QR codes use Reed-Solomon error correction. You pick the level when generating:

LevelRecoveryBest whenCapacity tradeoff
L (Low)7%Clean printing, no logo, indoor displayMaximum capacity
M (Medium)15%Standard print or screen, no logoDefault for most generators
Q (Quartile)25%Some damage expected, small logo overlay20% less data than L
H (High)30%Outdoor, weathered, with logo, or expected scratching40% less data than L

Capacity vs error correction

Higher error correction means less data fits. Here is the maximum capacity at version 40 (the largest grid, 177x177 modules):

Data capacity by error correction level (alphanumeric chars, version 40)L (7% recovery)4,296M (15% recovery)3,391Q (25% recovery)2,420H (30% recovery)1,852

For a logo overlay, you almost always need level Q or H - the logo covers up to 25-30% of the modules. The error correction lets the scanner reconstruct the masked area.

QR Code versions and sizes

QR codes come in 40 versions. Version 1 is 21x21 modules and stores up to 25 alphanumeric characters. Each version adds 4 modules per side, so version 40 is 177x177 modules and stores up to 4,296 alphanumeric characters. Most generators (this one included) auto-pick the smallest version that fits your data plus error correction.

QR codes vs other 2D barcodes

FormatCapacityPatent / royaltyBest for
QR Code (ISO/IEC 18004)7,089 numeric / 4,296 alnum / 2,953 bytesFree, open standard since 2000URL, vCard, WiFi, payments, tickets
Data Matrix (ISO/IEC 16022)3,116 numeric / 2,335 alnumFreeSmall parts marking, electronics, medical
Aztec (ISO/IEC 24778)3,832 numeric / 3,067 alnumFree since 2008Transport tickets, boarding passes
PDF417 (ISO/IEC 15438)2,710 alnum (stacked)FreeID cards, shipping labels, US AAMVA driver licences

Practical tips for scannable QR codes

  • Contrast: dark modules on light background. Inverted (light on dark) works but cuts scan success ~15% on older scanners.
  • Quiet zone: always leave a 4-module border (about 4x the size of a single module) of white space around the code. Crops break scanning.
  • Minimum print size: ~2cm (0.8 in) per side at 30cm reading distance. Scale up for longer distances: rule of thumb is print size = distance / 10.
  • Logo overlay: keep logos under 25% of total area and centered. Use level Q or H. The logo overlap masks data modules; the error correction rebuilds them.
  • Test before deploying: scan with iOS Camera, Google Lens, and at least one dedicated QR app. Different parsers handle edge cases differently.

Where QR codes show up

  • Payments: UPI in India (over $3 trillion in 2024 alone), Alipay/WeChat in China, dynamic checkout codes globally.
  • Restaurant menus: ubiquitous post-2020; saves printing costs and lets restaurants update prices/availability instantly.
  • Tickets and boarding passes: contains booking reference + verification hash. Aztec is more common in aviation; QR is standard for events.
  • Business cards: vCard QR codes save your contact straight to the phone address book.
  • WiFi sharing: encode SSID + password + encryption type. iOS 11+ and Android 10+ auto-join when scanned.

Security considerations

QR codes are not signed or encrypted by default. The QR itself just encodes text - it's the consuming app that decides what to do with that text. Risks to be aware of:

  • Quishing (QR phishing): fake QR stickers slapped over real ones at parking meters, restaurants, charging stations. The URL inside redirects to a credential-harvesting page. Always preview the URL in your camera app before opening.
  • Sensitive data in plain QR: anyone who photographs your code can decode it. Don't put passwords, account numbers, or PII in a static QR.
  • WiFi QR caveat: scanning a WiFi QR auto-joins the network. If a malicious code points to an open evil-twin network, your phone joins silently.

Frequently asked questions

How long does a QR code last?

Indefinitely if the encoded URL stays alive. The QR itself doesn't expire. For dynamic redirects (where the URL points to a tracker that forwards), the QR works as long as the redirect service stays online.

Can I change the destination after printing?

Only if you use a dynamic QR service that maps the QR to an editable redirect. Plain static QRs encode the destination directly, so reprinting is the only way to change it.

Why does my QR fail to scan?

Most common reasons (in order): missing quiet zone, printed too small for the data density, low contrast, glossy reflection on the camera, or the logo overlay is too large for the error-correction level. Lower your data density (shorter URL) or raise the error-correction level.

Do QR codes work offline?

Yes - the data is encoded in the image itself. Scanning works offline. The action the scanner takes (opening a URL, joining WiFi, etc.) may require connectivity, but decoding doesn't.

Is there a maximum URL length?

Yes - 4,296 alphanumeric characters at error level L, but practical scanning starts to fail above ~500 characters because the modules get tiny on a phone screen. Use a URL shortener if your destination is long.

Can QR codes carry viruses?

The QR is just text. It cannot execute code. The risk is what happens after scanning - a malicious URL inside the QR may lead to a drive-by download or phishing page. Always preview the URL before opening.

IT
India Tools Editorial
Calculators & explainers maintained by the India Tools team.