QR Code Generator

Type a URL, text or a Wi-Fi string and get a scannable PNG, made in your browser.

QR Code will appear above

What this QR code generator makes

Type or paste the content, press Generate, and the page draws a 200 by 200 pixel QR code with black modules on a white background. The drawing is done in your browser by the qrcodejs library (version 1.0.0, loaded from cdnjs), so the content never leaves your device. The result is a PNG image: right-click it and choose "Save image as" to keep it, or drag it into a document.

Two settings are fixed. Error correction is always level H, the strongest of the four levels, which makes the code tolerant of smudges and overlays but also the densest for a given text. The output is always 200 pixels square, so long content means tiny modules; keep it short if the code will be printed small. The library picks the smallest symbol version (1 to 40) that fits and encodes the text as UTF-8 bytes. In our tests, plain ASCII text up to about 1,270 characters produced a code and longer input showed "Error generating QR code". Accented and non-Latin characters take two to four bytes each, so the character limit is lower for them.

Error correction levels

Every QR code carries redundant Reed-Solomon codewords so a scanner can rebuild the data when part of the symbol is dirty, torn or covered. The standard defines four levels; the Wikipedia article on QR codes lists their approximate recovery capacity.

Level Data that can be restored Typical use
L (Low)About 7%Screens and clean environments where the most data per symbol matters
M (Medium)About 15%General printing; the level most often chosen in practice
Q (Quartile)About 25%Places where the code gets dirty, such as factories
H (High)About 30%Print that may be damaged, codes with a logo over the centre. This tool always uses H.

Higher levels spend more of the symbol on correction, which is why the same text needs a denser code at level H than at level L. Denso Wave, the company that invented the QR code, says on its error correction page that level M is the most frequently selected, with Q or H for dirty environments and L for clean ones with a lot of data.

Encoding links, Wi-Fi details and contacts

  • Web address: include the scheme, as in https://example.com/menu, so phones open it as a link instead of showing text. Before you print, confirm the address answers with the URL Status Checker; if it contains spaces or non-ASCII characters, run it through the URL Encoder first.
  • Wi-Fi network: WIFI:T:WPA;S:NetworkName;P:Password;; is the format phones recognise, documented in the ZXing barcode contents guide. Escape a semicolon, comma, colon, backslash or double quote inside the name or password with a backslash. The password sits in the code as plain text, so anyone who scans it can read it.
  • Email and phone: mailto:name@example.com opens the mail app and tel:+923001234567 the dialler, following the same guide.
  • Anything else is shown by the scanner as plain text, which is fine for a serial number or a short note.

Printing and scanning tips

  • Keep the quiet zone: the saved PNG has no white margin of its own. Denso Wave's guide to the code area requires a clear margin four modules wide on all sides, so leave white space around the code in your layout.
  • Mind the 200 pixel limit: that is sharp on screen, but enlarged for a poster the edges blur. For large print, generate the code in a vector tool or at a larger size; for a label or a screen, this output is enough.
  • Test before you print a batch: scan the final layout with more than one phone, at the distance a reader will stand.
  • Shorter content scans more easily: a short address gives a low-version code with large modules. If you recolour the code in an editor, keep dark modules on a light background and leave the three corner squares untouched.

Frequently Asked Questions

How much data can a QR code hold?

The largest symbol, version 40 with 177 by 177 modules at level L, holds 7,089 digits, 4,296 alphanumeric characters or 2,953 bytes according to the standard as summarised on Wikipedia. This tool always uses level H, so in our tests it accepted about 1,270 characters of plain text.

Do QR codes expire?

No. The content is encoded in the pattern itself, so a printed code keeps working for as long as it is legible. What can stop working is the thing it points to: a page that is taken down or a domain that lapses.

Can I pick a different error correction level or size?

Not here. The level is fixed at H and the image at 200 pixels. Level H is a safe default for printed codes and for codes with a logo on top; if you need a smaller symbol for a lot of data, you need a generator that offers level L or M.

Can I add colours or a logo?

Not in this tool, but you can edit the PNG afterwards. Keep strong contrast between modules and background, do not cover the three corner finder patterns, and keep the logo small; level H gives you room for a modest overlay, not a large one. Scan the result before using it.