Skip to content

QR Code Generator

Make a QR code for a URL, text, a WiFi network or a vCard contact. Download as SVG or PNG up to 2,048 px. Codes are static, with no redirect or expiry.

Type

20 bytes · version 2 (25×25 modules) · 4-module quiet zone

Error correction (share of the code that can be damaged)
PNG size (pixels, square)

01 · Definition

What is a QR code?

A QR code is a square grid of dark and light modules that stores text, most often a URL, for a phone camera to read. It comes in 40 sizes, from 21 × 21 to 177 × 177 modules, and includes error-correction data so it still scans when part of it is dirty or covered.

02 · Overview

How the QR Code Generator works

Generate a QR code for a URL, plain text, WiFi login details or a vCard contact. The code is drawn in your browser and encodes exactly the text shown, so it is a static code: there is no redirect through our site, it does not expire, and it cannot be edited after printing. Download a scalable SVG, or a PNG at 256, 512, 1,024 or 2,048 pixels. Choose the code and background colours and one of the four error-correction levels (L 7%, M 15%, Q 25%, H 30%). Every download includes the 4-module quiet zone the QR standard requires.

03 · Guide

QR code error correction levels: L, M, Q and H

Every QR code carries redundant codewords so a scanner can rebuild data it cannot read. The four levels trade capacity for resilience: the more of the code that can be restored, the less room is left for your content, so the same text needs a larger grid at a higher level. This tool defaults to M.

The recovery figures are the approximate share of codewords each level can restore, as listed in the QR code article in the references. The other two columns were measured with the qrcode library this tool uses (version 1.5.4).

LevelRestores aboutBytes in a 37 × 37 codeGrid for https://generate.now
L (low)7%10625 × 25
M (medium)15%8425 × 25
Q (quartile)25%6025 × 25
H (high)30%4429 × 29
Error correction levels compared

04 · Guide

How much data fits in a QR code?

Capacity depends on the version (the grid size), the error correction level and the kind of characters. The table gives the most bytes that fit. For a URL in plain ASCII that is its length in characters; accented letters, emoji and other non-ASCII characters take 2 to 4 bytes each. The tool picks the smallest version that holds your content and shows the version and byte count under the code.

The figures were measured by encoding strings of lowercase letters with the qrcode library (version 1.5.4) at each version and level until it refused the input. Content made only of digits, or only of digits, capital letters and a few symbols, packs tighter: a version 40 code at level L holds 7,089 digits or 4,296 alphanumeric characters.

Version (modules)LMQH
1 (21 × 21)1714117
2 (25 × 25)32262014
3 (29 × 29)53423224
4 (33 × 33)78624634
5 (37 × 37)106846044
10 (57 × 57)271213151119
20 (97 × 97)858666482382
40 (177 × 177)2,9532,3311,6631,273
Maximum bytes per QR code version and error correction level

05 · Guide

What is in a WiFi QR code?

A WiFi QR code holds one line of text that starts with WIFI: and lists fields separated by semicolons, for example WIFI:T:WPA;S:Cafe Guest;P:espresso-2026;;. The format is the one documented on the ZXing project's Barcode Contents page. This tool writes T, S and P, adds H:true only for a hidden network, and leaves P out when security is set to None.

In a network name or password the characters \ ; , : and " are escaped with a backslash. The password is stored as plain text, so anyone who scans the code can read it.

FieldExampleMeaning
TWPASecurity type: WPA, WEP or nopass
SCafe GuestNetwork name (SSID)
Pespresso-2026Password; left out for an open network
HtrueMarks a hidden network; otherwise left out
Fields in the WIFI: text

06 · Use cases

When to use the QR Code Generator

  1. 01

    Put a link to a landing page on a printed flyer or poster

  2. 02

    Let guests join your WiFi by pointing a phone camera at a card

  3. 03

    Add a contact QR code to a business card or email signature

  4. 04

    Drop a QR code into a slide deck or PDF as SVG so it stays sharp

07 · Examples

QR Code Generator examples

https://generate.now

ex 01

Version 2 code, 25×25 modules, at error correction M

Short URLs give small codes that scan easily at small print sizes.

WiFi: name Cafe Guest, password espresso-2026, WPA / WPA2

ex 02

WIFI:T:WPA;S:Cafe Guest;P:espresso-2026;;

The encoded text. iOS and Android cameras offer to join the network when they scan it.

vCard: Jane Doe, Example Ltd, jane@example.com

ex 03

BEGIN:VCARD VERSION:3.0 N:Doe;Jane;;; FN:Jane Doe ORG:Example Ltd EMAIL;TYPE=INTERNET:jane@example.com END:VCARD

Scanning offers to save a contact instead of opening a browser.

mailto:hello@example.com?subject=Hello

ex 04

A code that opens a new email with the subject filled in

The URL type accepts any URI scheme, such as mailto:, tel:, sms: and geo:.

08 · FAQ

QR Code: frequently asked questions

What's error correction and which level should I pick?

Error correction stores redundant data so a code still scans when part of it is dirty, torn or covered. The four levels recover roughly 7% (L), 15% (M), 25% (Q) and 30% (H) of the code. Higher levels need more modules for the same content, so the code gets denser. M is a sensible default for screens and clean print. Use Q or H for labels that will get scuffed.

Are these QR codes static or dynamic? Do they expire?

They are static. The code contains the text you entered and nothing else. A URL code points straight at your URL with no redirect through generate.now, so it keeps working for as long as the destination does, and nothing about a scan is reported to us. The trade-off is that a static code cannot be changed after printing and has no scan statistics; that needs a dynamic code, which is a short link you control that redirects to the real destination.

Is my text sent to your server?

No. The code is computed in the page from what you type, and downloads are created in the browser. The page itself loads standard page analytics, which record the visit, not the content of the fields.

How does the WiFi QR code work?

It encodes a line such as WIFI:T:WPA;S:MyNetwork;P:MyPassword;; which phone cameras recognise as network details. T is the security type (WPA, WEP or nopass), S the network name, P the password, and H:true marks a hidden network. The characters \ ; , : and " in a name or password are escaped with a backslash, which the tool does for you. The password is readable by anyone who scans the code, so treat a printed code like a written-down password.

How much data fits in one QR code?

At the largest size (version 40, 177×177 modules) with error correction L, a QR code holds 7,089 digits, 4,296 alphanumeric characters or 2,953 bytes. Higher error correction lowers that; at H the byte limit is 1,273. If your content is too long the tool shows an error instead of a code. Short content scans far more reliably, so keep URLs short.

What size should I print a QR code?

A common rule of thumb is a width of about one tenth of the scanning distance: 2.5 cm for a code scanned from 25 cm, 10 cm for one scanned from a metre. Dense codes need to be larger. Keep the blank quiet zone around the code; the standard requires 4 modules on every side and the downloads here include it. Always test a print with a real phone.

Should I download the SVG or the PNG?

Use SVG for print and anywhere the size may change, since it stays sharp at any scale. Use PNG where you need pixels, such as an email or a slide, and choose 256, 512, 1,024 or 2,048 px. In the PNG every module is a whole number of pixels, so edges are crisp. Do not enlarge a PNG afterwards, because blurred edges make codes harder to scan.

Can I put a logo in the middle?

The tool does not add logos. If you overlay one yourself, generate the code at level H, keep the logo small and centred so it covers well under 30% of the code, and test the result on several phones before printing.

09 · Guides

QR Code guides

10 · Reference

Specs and further reading

These are the primary sources this tool follows. Where a specification defines the behaviour, we link the specification, not a summary of it.

11 · More

Tools that pair with QR Code

Last updated .