QR Code Generator

Generate free QR codes online in 2026 with yhstky's QR code generator. Turn any text or URL into a scannable code and download it as PNG — no sign-up.

  • ✓ Free forever
  • ✓ No sign-up
  • ✓ Private — runs in your browser

Loading tool…

About this qr code generator

QR Code Generator

A QR code generator turns any text or URL into a scannable square barcode that phones can read with their camera. Type or paste your content, pick the image size, and the tool draws the code instantly — ready to download as a PNG and print, share, or embed anywhere.

How to use it

  1. Enter your content in the Text or URL field — a link, plain text, Wi-Fi details, or contact info.
  2. Choose the Size — the pixel dimensions of the output image (larger for print, smaller for screens).
  3. Preview the code and check that it scans with your phone camera.
  4. Click Download PNG to save the QR code image to your device.

The method behind it

QR codes follow the ISO/IEC 18004 standard. Your input is converted into binary data, wrapped with an error-correction layer, and laid out as a grid of black and white modules (the little squares). Three large finder patterns in the corners let any scanner orient the code, while smaller alignment patterns keep it readable even when printed at an angle or slightly damaged. Error correction is the key feature: at level M (medium), up to 15% of the code can be obscured or damaged and it still scans. That is why QR codes keep working on wrinkled receipts and partially covered posters. Larger inputs automatically produce a higher "version" — a denser grid — because the standard defines fixed data capacities per version and error-correction level.

Frequently asked questions

Are the QR codes generated here free for commercial use?

Yes. Codes you generate are free to use anywhere — packaging, advertising, menus, business cards — with no watermark and no attribution required. The QR pattern itself is an open ISO standard (ISO/IEC 18004), so no license is needed to display or print a code you create.

Do QR codes expire?

A static QR code like the ones this tool generates never expires: the pattern directly encodes your text or URL, so it works as long as the content itself is valid. A printed code only "breaks" if the link it points to stops working. (Dynamic QR services that redirect through their own servers can expire — this tool does not use redirects.)

What error correction level should I choose?

Medium (M) is the right default for almost everything: it tolerates up to 15% damage while keeping the code compact. Choose a higher level (Q or H) if the code will be printed small, placed outdoors, or partially covered — for example a sticker on equipment. Higher correction makes the grid denser, so very long URLs may need a larger size.

What size should I download the QR code at?

For screens, 512 × 512 px is plenty. For print, use at least 1024 × 1024 px so the modules stay sharp — a good rule is a minimum printed size of 2 × 2 cm with the quiet zone (blank margin) intact. Never stretch the image non-uniformly; distorted modules can fail to scan.

Can I track how many people scan my QR code?

Not with a static QR code: the pattern encodes the destination directly, so there is nothing to count scans. Scan tracking requires a dynamic QR service that routes scans through a redirect server. If you need analytics, use a URL shortener with stats and encode the shortened link instead.

Worked example

Input: the 25-character URL https://example.com/menu.

Because the URL contains lowercase letters, the encoder must use byte mode (the alphanumeric mode only covers uppercase letters, digits, and a few symbols). Per the ISO/IEC 18004 capacity tables:

  • A Version 1 symbol (21 × 21 modules) at error-correction level M holds at most 14 data bytes — too small for 25 bytes.
  • A Version 2 symbol (25 × 25 modules) at level M holds up to 26 data bytes — enough.

So the generator produces a Version 2 code: a 25 × 25 grid of modules. At the default 512 × 512 px size, each module renders at roughly 20 px with the required quiet zone (blank margin) around it. Paste the URL, keep the default settings, and the downloadable PNG encodes exactly those 25 bytes — any phone camera will resolve it back to https://example.com/menu.

Related tools